Computer Assited Medical Intervention Tool Kit  version 5.0
QtTreePropertyBrowserPrivate Class Reference
+ Collaboration diagram for QtTreePropertyBrowserPrivate:

Public Member Functions

QColor calculatedBackgroundColor (QtBrowserItem *item) const
 
QWidget * createEditor (QtProperty *property, QWidget *parent) const
 
QtBrowserItemcurrentItem () const
 
void disableItem (QTreeWidgetItem *item) const
 
QTreeWidgetItem * editedItem () const
 
void editItem (QtBrowserItem *browserItem)
 
void enableItem (QTreeWidgetItem *item) const
 
bool hasValue (QTreeWidgetItem *item) const
 
QtBrowserItemindexToBrowserItem (const QModelIndex &index) const
 
QTreeWidgetItem * indexToItem (const QModelIndex &index) const
 
QtPropertyindexToProperty (const QModelIndex &index) const
 
void init (QWidget *parent)
 
bool lastColumn (int column) const
 
bool markPropertiesWithoutValue () const
 
void propertyChanged (QtBrowserItem *index)
 
void propertyInserted (QtBrowserItem *index, QtBrowserItem *afterIndex)
 
void propertyRemoved (QtBrowserItem *index)
 
 QtTreePropertyBrowserPrivate ()
 
void setCurrentItem (QtBrowserItem *browserItem, bool block)
 
void slotCollapsed (const QModelIndex &index)
 
void slotCurrentBrowserItemChanged (QtBrowserItem *item)
 
void slotCurrentTreeItemChanged (QTreeWidgetItem *newItem, QTreeWidgetItem *)
 
void slotExpanded (const QModelIndex &index)
 
QtPropertyEditorViewtreeWidget () const
 

Private Member Functions

void updateItem (QTreeWidgetItem *item)
 

Private Attributes

bool m_browserChangedBlocked {false}
 
class QtPropertyEditorDelegatem_delegate
 
QIcon m_expandIcon
 
bool m_headerVisible {true}
 
QMap< QtBrowserItem *, QColor > m_indexToBackgroundColor
 
QMap< QtBrowserItem *, QTreeWidgetItem * > m_indexToItem
 
QMap< QTreeWidgetItem *, QtBrowserItem * > m_itemToIndex
 
bool m_markPropertiesWithoutValue {false}
 
QtTreePropertyBrowser::ResizeMode m_resizeMode {QtTreePropertyBrowser::Stretch}
 
QtPropertyEditorViewm_treeWidget {nullptr}
 
QtTreePropertyBrowserq_ptr
 

Constructor & Destructor Documentation

◆ QtTreePropertyBrowserPrivate()

QtTreePropertyBrowserPrivate::QtTreePropertyBrowserPrivate ( )

Member Function Documentation

◆ calculatedBackgroundColor()

QColor QtTreePropertyBrowserPrivate::calculatedBackgroundColor ( QtBrowserItem item) const

References m_indexToBackgroundColor, and QtBrowserItem::parent().

Referenced by QtTreePropertyBrowser::calculatedBackgroundColor(), QtPropertyEditorView::drawRow(), and QtPropertyEditorDelegate::paint().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createEditor()

QWidget* QtTreePropertyBrowserPrivate::createEditor ( QtProperty property,
QWidget *  parent 
) const
inline

References QtAbstractPropertyBrowser::createEditor(), and q_ptr.

Referenced by QtPropertyEditorDelegate::createEditor().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ currentItem()

QtBrowserItem * QtTreePropertyBrowserPrivate::currentItem ( ) const

References m_itemToIndex, and m_treeWidget.

Referenced by slotCurrentBrowserItemChanged().

+ Here is the caller graph for this function:

◆ disableItem()

void QtTreePropertyBrowserPrivate::disableItem ( QTreeWidgetItem *  item) const

References QtPropertyEditorDelegate::closeEditor(), m_delegate, and m_itemToIndex.

Referenced by updateItem().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ editedItem()

QTreeWidgetItem * QtTreePropertyBrowserPrivate::editedItem ( ) const

References QtPropertyEditorDelegate::editedItem(), and m_delegate.

Referenced by QtPropertyEditorView::keyPressEvent(), and QtPropertyEditorView::mousePressEvent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ editItem()

void QtTreePropertyBrowserPrivate::editItem ( QtBrowserItem browserItem)

References m_indexToItem, and m_treeWidget.

Referenced by QtTreePropertyBrowser::editItem().

+ Here is the caller graph for this function:

◆ enableItem()

void QtTreePropertyBrowserPrivate::enableItem ( QTreeWidgetItem *  item) const

References m_itemToIndex.

Referenced by updateItem().

+ Here is the caller graph for this function:

◆ hasValue()

bool QtTreePropertyBrowserPrivate::hasValue ( QTreeWidgetItem *  item) const

References QtProperty::hasValue(), m_itemToIndex, and QtBrowserItem::property().

Referenced by QtPropertyEditorView::mousePressEvent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ indexToBrowserItem()

QtBrowserItem * QtTreePropertyBrowserPrivate::indexToBrowserItem ( const QModelIndex &  index) const

References QtPropertyEditorView::indexToItem(), m_itemToIndex, and m_treeWidget.

Referenced by QtPropertyEditorView::drawRow(), and QtPropertyEditorDelegate::paint().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ indexToItem()

QTreeWidgetItem * QtTreePropertyBrowserPrivate::indexToItem ( const QModelIndex &  index) const

References QtPropertyEditorView::indexToItem(), and m_treeWidget.

Referenced by QtPropertyEditorDelegate::createEditor(), QtPropertyEditorDelegate::indentation(), slotCollapsed(), and slotExpanded().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ indexToProperty()

QtProperty * QtTreePropertyBrowserPrivate::indexToProperty ( const QModelIndex &  index) const

References QtPropertyEditorView::indexToItem(), m_itemToIndex, m_treeWidget, and QtBrowserItem::property().

Referenced by QtPropertyEditorDelegate::createEditor(), QtPropertyEditorView::drawRow(), and QtPropertyEditorDelegate::paint().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ init()

void QtTreePropertyBrowserPrivate::init ( QWidget *  parent)

References drawIndicatorIcon(), m_delegate, m_expandIcon, m_treeWidget, q_ptr, QtPropertyEditorView::setEditorPrivate(), QtPropertyEditorDelegate::setEditorPrivate(), slotCollapsed(), slotCurrentTreeItemChanged(), and slotExpanded().

Referenced by QtTreePropertyBrowser::QtTreePropertyBrowser().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ lastColumn()

bool QtTreePropertyBrowserPrivate::lastColumn ( int  column) const

References m_treeWidget.

Referenced by QtPropertyEditorDelegate::paint().

+ Here is the caller graph for this function:

◆ markPropertiesWithoutValue()

bool QtTreePropertyBrowserPrivate::markPropertiesWithoutValue ( ) const
inline

References m_markPropertiesWithoutValue.

Referenced by QtPropertyEditorView::drawRow(), QtPropertyEditorView::mousePressEvent(), QtPropertyEditorDelegate::paint(), and updateItem().

+ Here is the caller graph for this function:

◆ propertyChanged()

void QtTreePropertyBrowserPrivate::propertyChanged ( QtBrowserItem index)

References m_indexToItem, and updateItem().

Referenced by QtTreePropertyBrowser::itemChanged().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ propertyInserted()

void QtTreePropertyBrowserPrivate::propertyInserted ( QtBrowserItem index,
QtBrowserItem afterIndex 
)

References m_indexToItem, m_itemToIndex, m_treeWidget, QtBrowserItem::parent(), and updateItem().

Referenced by QtTreePropertyBrowser::itemInserted().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ propertyRemoved()

void QtTreePropertyBrowserPrivate::propertyRemoved ( QtBrowserItem index)

References m_indexToBackgroundColor, m_indexToItem, m_itemToIndex, and m_treeWidget.

Referenced by QtTreePropertyBrowser::itemRemoved().

+ Here is the caller graph for this function:

◆ setCurrentItem()

void QtTreePropertyBrowserPrivate::setCurrentItem ( QtBrowserItem browserItem,
bool  block 
)

References m_indexToItem, and m_treeWidget.

Referenced by slotCurrentBrowserItemChanged().

+ Here is the caller graph for this function:

◆ slotCollapsed()

void QtTreePropertyBrowserPrivate::slotCollapsed ( const QModelIndex &  index)

References QtTreePropertyBrowser::collapsed(), indexToItem(), m_itemToIndex, and q_ptr.

Referenced by init().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ slotCurrentBrowserItemChanged()

void QtTreePropertyBrowserPrivate::slotCurrentBrowserItemChanged ( QtBrowserItem item)

References currentItem(), m_browserChangedBlocked, and setCurrentItem().

+ Here is the call graph for this function:

◆ slotCurrentTreeItemChanged()

void QtTreePropertyBrowserPrivate::slotCurrentTreeItemChanged ( QTreeWidgetItem *  newItem,
QTreeWidgetItem *   
)

References m_browserChangedBlocked, m_itemToIndex, q_ptr, and QtAbstractPropertyBrowser::setCurrentItem().

Referenced by init().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ slotExpanded()

void QtTreePropertyBrowserPrivate::slotExpanded ( const QModelIndex &  index)

References QtTreePropertyBrowser::expanded(), indexToItem(), m_itemToIndex, and q_ptr.

Referenced by init().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ treeWidget()

QtPropertyEditorView* QtTreePropertyBrowserPrivate::treeWidget ( ) const
inline

References m_treeWidget.

Referenced by QtPropertyEditorDelegate::indentation().

+ Here is the caller graph for this function:

◆ updateItem()

void QtTreePropertyBrowserPrivate::updateItem ( QTreeWidgetItem *  item)
private

References disableItem(), enableItem(), m_expandIcon, m_itemToIndex, m_treeWidget, and markPropertiesWithoutValue().

Referenced by propertyChanged(), propertyInserted(), QtTreePropertyBrowser::setPropertiesWithoutValueMarked(), and QtTreePropertyBrowser::setRootIsDecorated().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_browserChangedBlocked

bool QtTreePropertyBrowserPrivate::m_browserChangedBlocked {false}
private

◆ m_delegate

class QtPropertyEditorDelegate* QtTreePropertyBrowserPrivate::m_delegate
private
Initial value:
{
nullptr
}

Referenced by disableItem(), editedItem(), and init().

◆ m_expandIcon

QIcon QtTreePropertyBrowserPrivate::m_expandIcon
private

Referenced by init(), and updateItem().

◆ m_headerVisible

bool QtTreePropertyBrowserPrivate::m_headerVisible {true}
private

◆ m_indexToBackgroundColor

QMap<QtBrowserItem*, QColor> QtTreePropertyBrowserPrivate::m_indexToBackgroundColor
private

◆ m_indexToItem

◆ m_itemToIndex

◆ m_markPropertiesWithoutValue

bool QtTreePropertyBrowserPrivate::m_markPropertiesWithoutValue {false}
private

◆ m_resizeMode

QtTreePropertyBrowser::ResizeMode QtTreePropertyBrowserPrivate::m_resizeMode {QtTreePropertyBrowser::Stretch}
private

◆ m_treeWidget

◆ q_ptr


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