SciDAVis
1.D4
|
Item delegate for TableView. More...
#include <TableItemDelegate.h>
Public Member Functions | |
QColor | maskingColor () const |
Return the color for masked cells. | |
virtual void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const |
Custom cell painting. | |
void | setEditorData (QWidget *editor, const QModelIndex &index) const |
void | setMaskingColor (const QColor &color) |
Set the color for masked cells. | |
void | setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const |
TableItemDelegate (QObject *parent=0) | |
Standard constructor. |
Private Attributes | |
QColor | d_masking_color |
The color for masked cells. |
Item delegate for TableView.
TableItemDelegate::TableItemDelegate | ( | QObject * | parent = 0 | ) |
Standard constructor.
References d_masking_color.
|
inline |
Return the color for masked cells.
References d_masking_color.
|
virtual |
Custom cell painting.
References d_masking_color, and TableModel::MaskingRole.
void TableItemDelegate::setEditorData | ( | QWidget * | editor, |
const QModelIndex & | index | ||
) | const |
|
inline |
Set the color for masked cells.
References d_masking_color.
void TableItemDelegate::setModelData | ( | QWidget * | editor, |
QAbstractItemModel * | model, | ||
const QModelIndex & | index | ||
) | const |
|
private |
The color for masked cells.
Referenced by maskingColor(), paint(), setMaskingColor(), and TableItemDelegate().