itom
|
The QtButtonPropertyBrowser class provides a drop down QToolButton based property browser. More...
Signals | |
void | collapsed (QtBrowserItem *item) |
void | expanded (QtBrowserItem *item) |
Signals inherited from QtAbstractPropertyBrowser | |
void | currentItemChanged (QtBrowserItem *) |
Public Member Functions | |
QtButtonPropertyBrowser (QWidget *parent=0) | |
~QtButtonPropertyBrowser () | |
void | setExpanded (QtBrowserItem *item, bool expanded) |
bool | isExpanded (QtBrowserItem *item) const |
Public Member Functions inherited from QtAbstractPropertyBrowser | |
QtAbstractPropertyBrowser (QWidget *parent=0) | |
~QtAbstractPropertyBrowser () | |
QList< QtProperty * > | properties () const |
QList< QtBrowserItem * > | items (QtProperty *property) const |
QtBrowserItem * | topLevelItem (QtProperty *property) const |
QList< QtBrowserItem * > | topLevelItems () const |
void | clear () |
template<class PropertyManager > | |
void | setFactoryForManager (PropertyManager *manager, QtAbstractEditorFactory< PropertyManager > *factory) |
void | unsetFactoryForManager (QtAbstractPropertyManager *manager) |
QtBrowserItem * | currentItem () const |
void | setCurrentItem (QtBrowserItem *) |
Protected Member Functions | |
virtual void | itemInserted (QtBrowserItem *item, QtBrowserItem *afterItem) |
virtual void | itemRemoved (QtBrowserItem *item) |
virtual void | itemChanged (QtBrowserItem *item) |
Protected Member Functions inherited from QtAbstractPropertyBrowser | |
virtual QWidget * | createEditor (QtProperty *property, QWidget *parent) |
Private Member Functions | |
Q_PRIVATE_SLOT (d_func(), void slotUpdate()) Q_PRIVATE_SLOT(d_func() | |
void | slotEditorDestroyed ()) Q_PRIVATE_SLOT(d_func() |
Private Attributes | |
QtButtonPropertyBrowserPrivate * | d_ptr |
Additional Inherited Members | |
Public Slots inherited from QtAbstractPropertyBrowser | |
QtBrowserItem * | addProperty (QtProperty *property) |
QtBrowserItem * | insertProperty (QtProperty *property, QtProperty *afterProperty) |
void | removeProperty (QtProperty *property) |
The QtButtonPropertyBrowser class provides a drop down QToolButton based property browser.
A property browser is a widget that enables the user to edit a given set of properties. Each property is represented by a label specifying the property's name, and an editing widget (e.g. a line edit or a combobox) holding its value. A property can have zero or more subproperties.
QtButtonPropertyBrowser provides drop down button for all nested properties, i.e. subproperties are enclosed by a container associated with the drop down button. The parent property's name is displayed as button text. For example:
Use the QtAbstractPropertyBrowser API to add, insert and remove properties from an instance of the QtButtonPropertyBrowser class. The properties themselves are created and managed by implementations of the QtAbstractPropertyManager class.
QtButtonPropertyBrowser::QtButtonPropertyBrowser | ( | QWidget * | parent = 0 | ) |
Creates a property browser with the given parent.
QtButtonPropertyBrowser::~QtButtonPropertyBrowser | ( | ) |
Destroys this property browser.
Note that the properties that were inserted into this browser are not destroyed since they may still be used in other browsers. The properties are owned by the manager that created them.
|
signal |
This signal is emitted when the item is collapsed.
|
signal |
This signal is emitted when the item is expanded.
bool QtButtonPropertyBrowser::isExpanded | ( | QtBrowserItem * | item | ) | const |
Returns true if the item is expanded; otherwise returns false.
|
protectedvirtual |
\reimp
Implements QtAbstractPropertyBrowser.
|
protectedvirtual |
\reimp
Implements QtAbstractPropertyBrowser.
|
protectedvirtual |
\reimp
Implements QtAbstractPropertyBrowser.
void QtButtonPropertyBrowser::setExpanded | ( | QtBrowserItem * | item, |
bool | expanded ) |
Sets the item to either collapse or expanded, depending on the value of expanded.