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

A QItemDelegate for showing model properties in a QTableView. More...

#include <DesignPropertyTable.h>

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

Public Member Functions

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

Protected Attributes

MaterialWidgetm_click_material_widget
 
MaterialWidgetm_draw_material_widget
 
DesignSortFilterProxyModelm_table_model
 

Detailed Description

A QItemDelegate for showing model properties in a QTableView.


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 file: