SciDAVis  1.D4
Public Member Functions | Private Attributes
TableItemDelegate Class Reference

Item delegate for TableView. More...

#include <TableItemDelegate.h>

List of all members.

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.

Detailed Description

Item delegate for TableView.


Constructor & Destructor Documentation

TableItemDelegate::TableItemDelegate ( QObject *  parent = 0)

Standard constructor.

References d_masking_color.


Member Function Documentation

QColor TableItemDelegate::maskingColor ( ) const
inline

Return the color for masked cells.

References d_masking_color.

void TableItemDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
virtual

Custom cell painting.

References d_masking_color, and TableModel::MaskingRole.

void TableItemDelegate::setEditorData ( QWidget *  editor,
const QModelIndex &  index 
) const
void TableItemDelegate::setMaskingColor ( const QColor &  color)
inline

Set the color for masked cells.

References d_masking_color.

void TableItemDelegate::setModelData ( QWidget *  editor,
QAbstractItemModel *  model,
const QModelIndex &  index 
) const

Member Data Documentation

QColor TableItemDelegate::d_masking_color
private

The color for masked cells.

Referenced by maskingColor(), paint(), setMaskingColor(), and TableItemDelegate().


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