Computer Assited Medical Intervention Tool Kit  version 4.1
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
QtBrowserItem Class Reference

The QtBrowserItem class represents a property in a property browser instance. More...

#include <qtpropertybrowser.h>

Public Member Functions

QtAbstractPropertyBrowserbrowser () const
 
QList< QtBrowserItem * > children () const
 
QtBrowserItemparent () const
 
QtPropertyproperty () const
 

Private Member Functions

 QtBrowserItem (QtAbstractPropertyBrowser *browser, QtProperty *property, QtBrowserItem *parent)
 
 ~QtBrowserItem ()
 

Private Attributes

QtBrowserItemPrivated_ptr
 

Friends

class QtAbstractPropertyBrowserPrivate
 

Detailed Description

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().

See also
QtAbstractPropertyBrowser, QtProperty

Constructor & Destructor Documentation

◆ QtBrowserItem()

QtBrowserItem::QtBrowserItem ( QtAbstractPropertyBrowser browser,
QtProperty property,
QtBrowserItem parent 
)
explicitprivate

◆ ~QtBrowserItem()

QtBrowserItem::~QtBrowserItem ( )
private

Member Function Documentation

◆ browser()

QtAbstractPropertyBrowser * QtBrowserItem::browser ( ) const

Returns the property browser which owns this item.

References QtAbstractPropertyManager::d_ptr.

◆ children()

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:

QList<QtBrowserItem *> childrenItems = item->children();
QList<QtProperty *> childrenProperties = item->property()->subProperties();

The childrenItems list represents the same list as childrenProperties.

References QtAbstractPropertyManager::d_ptr.

Referenced by QtAbstractPropertyBrowserPrivate::clearIndex(), and QtAbstractPropertyBrowserPrivate::removeBrowserIndex().

◆ parent()

QtBrowserItem * QtBrowserItem::parent ( ) const

◆ property()

QtProperty * QtBrowserItem::property ( ) const

Friends And Related Function Documentation

◆ QtAbstractPropertyBrowserPrivate

friend class QtAbstractPropertyBrowserPrivate
friend

Member Data Documentation

◆ d_ptr

QtBrowserItemPrivate* QtBrowserItem::d_ptr
private

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