Computer Assited Medical Intervention Tool Kit
version 4.1
|
The QtBrowserItem class represents a property in a property browser instance. More...
#include <qtpropertybrowser.h>
Public Member Functions | |
QtAbstractPropertyBrowser * | browser () const |
QList< QtBrowserItem * > | children () const |
QtBrowserItem * | parent () const |
QtProperty * | property () const |
Private Member Functions | |
QtBrowserItem (QtAbstractPropertyBrowser *browser, QtProperty *property, QtBrowserItem *parent) | |
~QtBrowserItem () | |
Private Attributes | |
QtBrowserItemPrivate * | d_ptr |
Friends | |
class | QtAbstractPropertyBrowserPrivate |
The QtBrowserItem class represents a property in a property browser instance.
Browser items are created whenever a QtProperty is inserted to the property browser. A QtBrowserItem uniquely identifies a browser's item. Thus, if the same QtProperty is inserted multiple times, each occurrence gets its own unique QtBrowserItem. The items are owned by QtAbstractPropertyBrowser and automatically deleted when they are removed from the browser.
You can traverse a browser's properties by calling parent() and children(). The property and the browser associated with an item are available as property() and browser().
|
explicitprivate |
References QtAbstractPropertyManager::d_ptr, and QtAbstractPropertyManagerPrivate::q_ptr.
|
private |
References QtAbstractPropertyManager::d_ptr.
QtAbstractPropertyBrowser * QtBrowserItem::browser | ( | ) | const |
Returns the property browser which owns this item.
References QtAbstractPropertyManager::d_ptr.
QList< QtBrowserItem * > QtBrowserItem::children | ( | ) | const |
Returns the children items of this item. The properties reproduced from children items are always the same as reproduced from associated property' children, for example:
The childrenItems list represents the same list as childrenProperties.
References QtAbstractPropertyManager::d_ptr.
Referenced by QtAbstractPropertyBrowserPrivate::clearIndex(), and QtAbstractPropertyBrowserPrivate::removeBrowserIndex().
QtBrowserItem * QtBrowserItem::parent | ( | ) | const |
Returns the parent item of this item. Returns 0 if this item is associated with top-level property in item's property browser.
References QtAbstractPropertyManager::d_ptr.
Referenced by QtTreePropertyBrowserPrivate::calculatedBackgroundColor(), QtAbstractPropertyBrowserPrivate::createBrowserIndexes(), QtGroupBoxPropertyBrowserPrivate::propertyInserted(), QtButtonPropertyBrowserPrivate::propertyInserted(), QtTreePropertyBrowserPrivate::propertyInserted(), QtAbstractPropertyBrowserPrivate::removeBrowserIndex(), and QtAbstractPropertyBrowserPrivate::removeBrowserIndexes().
QtProperty * QtBrowserItem::property | ( | ) | const |
Returns the property which is accosiated with this item. Note that several items can be associated with the same property instance in the same property browser.
References QtAbstractPropertyManager::d_ptr.
Referenced by QtAbstractPropertyBrowserPrivate::createBrowserIndexes(), QtTreePropertyBrowserPrivate::hasValue(), QtTreePropertyBrowserPrivate::indexToProperty(), QtGroupBoxPropertyBrowserPrivate::propertyInserted(), QtButtonPropertyBrowserPrivate::propertyInserted(), QtAbstractPropertyBrowserPrivate::removeBrowserIndex(), QtAbstractPropertyBrowserPrivate::removeBrowserIndexes(), and MainWindow::updateExpandState().
|
friend |
|
private |