![]() |
ImFusion SDK 4.3
|
#include <ImFusion/GUI/DataWidgetItemDelegate.h>
Default implementation of the DataWidgetDelegate that is used for instance in the ImFusion Suite. More...
Inheritance diagram for DefaultDataWidgetItemDelegate:Default implementation of the DataWidgetDelegate that is used for instance in the ImFusion Suite.
Public Member Functions | |
| DefaultDataWidgetItemDelegate (QTreeView *parent) | |
| void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override |
| Renders the individual items of the model. | |
| QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const override |
| bool | editorEvent (QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) override |
| bool | helpEvent (QHelpEvent *event, QAbstractItemView *view, const QStyleOptionViewItem &option, const QModelIndex &index) override |
| void | updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override |
| void | resetHover () override |
| Called if the parent DataWidget received a Qt::LeaveEvent to remove any potential hover effect renderings. | |
Protected Member Functions | |
| void | initStyleOption (QStyleOptionViewItem *option, const QModelIndex &index) const override |
|
override |
Renders the individual items of the model.
Depending on the column in the model index, it renders thumbnail+name or the visibility button(s).
|
overridevirtual |
Called if the parent DataWidget received a Qt::LeaveEvent to remove any potential hover effect renderings.
Implements DataWidgetItemDelegate.