Logo Search packages:      
Sourcecode: qsapecng version File versions  Download package

Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes

QtButtonPropertyBrowser Class Reference

The QtButtonPropertyBrowser class provides a drop down QToolButton based property browser. More...

Inheritance diagram for QtButtonPropertyBrowser:
Inheritance graph
Collaboration diagram for QtButtonPropertyBrowser:
Collaboration graph

List of all members.

Public Slots

QtBrowserItemaddProperty (QtProperty *property)
QtBrowserIteminsertProperty (QtProperty *property, QtProperty *afterProperty)
void removeProperty (QtProperty *property)


void collapsed (QtBrowserItem *item)
void currentItemChanged (QtBrowserItem *)
void expanded (QtBrowserItem *item)

Public Member Functions

void clear ()
QtBrowserItemcurrentItem () const
bool isExpanded (QtBrowserItem *item) const
QList< QtBrowserItem * > items (QtProperty *property) const
QList< QtProperty * > properties () const
 QtButtonPropertyBrowser (QWidget *parent=0)
void setCurrentItem (QtBrowserItem *)
void setExpanded (QtBrowserItem *item, bool expanded)
template<class PropertyManager >
void setFactoryForManager (PropertyManager *manager, QtAbstractEditorFactory< PropertyManager > *factory)
QtBrowserItemtopLevelItem (QtProperty *property) const
QList< QtBrowserItem * > topLevelItems () const
void unsetFactoryForManager (QtAbstractPropertyManager *manager)
 ~QtButtonPropertyBrowser ()

Protected Member Functions

virtual QWidget * createEditor (QtProperty *property, QWidget *parent)
virtual void itemChanged (QtBrowserItem *item)
virtual void itemInserted (QtBrowserItem *item, QtBrowserItem *afterItem)
virtual void itemRemoved (QtBrowserItem *item)

Private Member Functions

 Q_PRIVATE_SLOT (d_func(), void slotUpdate()) Q_PRIVATE_SLOT(d_func()
void slotEditorDestroyed ()) Q_PRIVATE_SLOT(d_func()

Private Attributes


Detailed Description

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.

See also:
QtTreePropertyBrowser, QtAbstractPropertyBrowser

Definition at line 99 of file qtbuttonpropertybrowser.h.

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index