29 #ifndef PROPERTY_TREE_WIDGET_H 30 #define PROPERTY_TREE_WIDGET_H 57 QModelIndexList indexes = selectedIndexes();
58 int num_selected = indexes.size();
60 QList<Type*> objects_out;
62 for(
int i = 0; i < num_selected; i++ )
64 if( indexes[ i ].column() == 0 )
69 Type* obj = qobject_cast<Type*>( prop );
72 objects_out.push_back( obj );
89 virtual void currentChanged(
const QModelIndex& current,
const QModelIndex& previous );
93 virtual void selectionChanged(
const QItemSelection& selected,
const QItemSelection& deselected );
107 void expandEntries(
const QSet<QString>& expanded_full_names,
108 const QModelIndex& parent_index,
109 const QString& prefix );
117 #endif // PROPERTY_TREE_WIDGET_H
A single element of a property tree, with a name, value, description, and possibly children...
A tall skinny invisible widget providing left-right sliding column separator adjustment for a two-col...
Configuration data storage class.
Property * getProp(const QModelIndex &index) const
return the Property at the given index, or the root property if the index is invalid.
Property * getRoot() const