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

Public Member Functions

void closeEditor (QtProperty *property)
 
QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
QTreeWidgetItem * editedItem () const
 
bool eventFilter (QObject *object, QEvent *event) override
 
void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
 QtPropertyEditorDelegate (QObject *parent=nullptr)
 
void setEditorData (QWidget *, const QModelIndex &) const override
 
void setEditorPrivate (QtTreePropertyBrowserPrivate *editorPrivate)
 
void setModelData (QWidget *, QAbstractItemModel *, const QModelIndex &) const override
 
QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
void updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 

Protected Member Functions

void drawDecoration (QPainter *painter, const QStyleOptionViewItem &option, const QRect &rect, const QPixmap &pixmap) const override
 
void drawDisplay (QPainter *painter, const QStyleOptionViewItem &option, const QRect &rect, const QString &text) const override
 

Private Types

typedef QMap< QWidget *, QtProperty * > EditorToPropertyMap
 
typedef QMap< QtProperty *, QWidget * > PropertyToEditorMap
 

Private Slots

void slotEditorDestroyed (QObject *object)
 

Private Member Functions

int indentation (const QModelIndex &index) const
 

Private Attributes

bool m_disablePainting {false}
 
QTreeWidgetItem * m_editedItem {nullptr}
 
QWidget * m_editedWidget {nullptr}
 
QtTreePropertyBrowserPrivatem_editorPrivate {nullptr}
 
EditorToPropertyMap m_editorToProperty
 
PropertyToEditorMap m_propertyToEditor
 

Member Typedef Documentation

◆ EditorToPropertyMap

◆ PropertyToEditorMap

Constructor & Destructor Documentation

◆ QtPropertyEditorDelegate()

QtPropertyEditorDelegate::QtPropertyEditorDelegate ( QObject *  parent = nullptr)
inline

Member Function Documentation

◆ closeEditor()

void QtPropertyEditorDelegate::closeEditor ( QtProperty property)

References m_propertyToEditor.

Referenced by QtTreePropertyBrowserPrivate::disableItem().

+ Here is the caller graph for this function:

◆ createEditor()

QWidget * QtPropertyEditorDelegate::createEditor ( QWidget *  parent,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override

References QtTreePropertyBrowserPrivate::createEditor(), QtTreePropertyBrowserPrivate::indexToItem(), QtTreePropertyBrowserPrivate::indexToProperty(), m_editedItem, m_editedWidget, m_editorPrivate, m_editorToProperty, m_propertyToEditor, and slotEditorDestroyed().

+ Here is the call graph for this function:

◆ drawDecoration()

void QtPropertyEditorDelegate::drawDecoration ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QRect &  rect,
const QPixmap &  pixmap 
) const
overrideprotected

References m_disablePainting.

◆ drawDisplay()

void QtPropertyEditorDelegate::drawDisplay ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QRect &  rect,
const QString &  text 
) const
overrideprotected

References m_disablePainting.

◆ editedItem()

QTreeWidgetItem* QtPropertyEditorDelegate::editedItem ( ) const
inline

References m_editedItem.

Referenced by QtTreePropertyBrowserPrivate::editedItem().

+ Here is the caller graph for this function:

◆ eventFilter()

bool QtPropertyEditorDelegate::eventFilter ( QObject *  object,
QEvent *  event 
)
override

◆ indentation()

int QtPropertyEditorDelegate::indentation ( const QModelIndex &  index) const
private

References QtTreePropertyBrowserPrivate::indexToItem(), m_editorPrivate, and QtTreePropertyBrowserPrivate::treeWidget().

+ Here is the call graph for this function:

◆ paint()

void QtPropertyEditorDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override

◆ setEditorData()

void QtPropertyEditorDelegate::setEditorData ( QWidget *  ,
const QModelIndex &   
) const
inlineoverride

◆ setEditorPrivate()

void QtPropertyEditorDelegate::setEditorPrivate ( QtTreePropertyBrowserPrivate editorPrivate)
inline

References m_editorPrivate.

Referenced by QtTreePropertyBrowserPrivate::init().

+ Here is the caller graph for this function:

◆ setModelData()

void QtPropertyEditorDelegate::setModelData ( QWidget *  ,
QAbstractItemModel *  ,
const QModelIndex &   
) const
inlineoverride

◆ sizeHint()

QSize QtPropertyEditorDelegate::sizeHint ( const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override

◆ slotEditorDestroyed

void QtPropertyEditorDelegate::slotEditorDestroyed ( QObject *  object)
privateslot

References m_editedItem, m_editedWidget, m_editorToProperty, and m_propertyToEditor.

Referenced by createEditor().

+ Here is the caller graph for this function:

◆ updateEditorGeometry()

void QtPropertyEditorDelegate::updateEditorGeometry ( QWidget *  editor,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override

Member Data Documentation

◆ m_disablePainting

bool QtPropertyEditorDelegate::m_disablePainting {false}
mutableprivate

Referenced by drawDecoration(), and drawDisplay().

◆ m_editedItem

QTreeWidgetItem* QtPropertyEditorDelegate::m_editedItem {nullptr}
mutableprivate

◆ m_editedWidget

QWidget* QtPropertyEditorDelegate::m_editedWidget {nullptr}
mutableprivate

◆ m_editorPrivate

QtTreePropertyBrowserPrivate* QtPropertyEditorDelegate::m_editorPrivate {nullptr}
private

◆ m_editorToProperty

EditorToPropertyMap QtPropertyEditorDelegate::m_editorToProperty
mutableprivate

◆ m_propertyToEditor

PropertyToEditorMap QtPropertyEditorDelegate::m_propertyToEditor
mutableprivate

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