ImFusion SDK 4.3
DefaultDataWidgetItemDelegate Class Reference

#include <ImFusion/GUI/DataWidgetItemDelegate.h>

Default implementation of the DataWidgetDelegate that is used for instance in the ImFusion Suite. More...

+ Inheritance diagram for DefaultDataWidgetItemDelegate:

Detailed Description

Default implementation of the DataWidgetDelegate that is used for instance in the ImFusion Suite.

See also
DataWidget

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
 

Member Function Documentation

◆ paint()

void paint ( QPainter * painter,
const QStyleOptionViewItem & option,
const QModelIndex & index ) const
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).

◆ resetHover()

void resetHover ( )
overridevirtual

Called if the parent DataWidget received a Qt::LeaveEvent to remove any potential hover effect renderings.

Implements DataWidgetItemDelegate.


The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close