API Documentation
Loading...
Searching...
No Matches
ModelTableDelegate Class Reference

#include <DesignPropertyTable.h>

Inheritance diagram for ModelTableDelegate:
[legend]
Collaboration diagram for ModelTableDelegate:
[legend]

Public Member Functions

 ModelTableDelegate (DesignSortFilterProxyModel *model, QObject *parent=nullptr)
 
void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
bool editorEvent (QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) override
 
void setModel (DesignSortFilterProxyModel *model)
 

Protected Attributes

DesignSortFilterProxyModelm_table_model
 
MaterialWidgetm_draw_material_widget
 
MaterialWidgetm_click_material_widget
 

Constructor & Destructor Documentation

◆ ModelTableDelegate()

ModelTableDelegate ( DesignSortFilterProxyModel * model,
QObject * parent = nullptr )
explicit

Member Function Documentation

◆ editorEvent()

bool editorEvent ( QEvent * event,
QAbstractItemModel * model,
const QStyleOptionViewItem & option,
const QModelIndex & index )
override

◆ paint()

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

◆ setModel()

void setModel ( DesignSortFilterProxyModel * model)
inline

Member Data Documentation

◆ m_click_material_widget

MaterialWidget* m_click_material_widget
mutableprotected

◆ m_draw_material_widget

MaterialWidget* m_draw_material_widget
mutableprotected

◆ m_table_model

DesignSortFilterProxyModel* m_table_model
protected

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