scidavis  2.3.0
About: SciDAVis is a free application for Scientific Data Analysis and Visualization (a fork off of QtiPlot).
  Fossies Dox: scidavis-2.3.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

TableItemDelegate.h
Go to the documentation of this file.
1 
11 
30 #include <QItemDelegate>
31 #include <QtDebug>
32 #include <QMetaProperty>
33 #include <QAbstractItemModel>
34 
36 class TableItemDelegate : public QItemDelegate
37 {
38  Q_OBJECT
39 
40  public:
42  TableItemDelegate(QObject * parent = 0);
44  virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
46  void setMaskingColor(const QColor& color) { d_masking_color = color; }
48  QColor maskingColor() const { return d_masking_color; }
49  void setEditorData ( QWidget * editor, const QModelIndex & index ) const;
50  void setModelData ( QWidget * editor, QAbstractItemModel * model, const QModelIndex & index ) const;
51 
52  private:
55 };
TableItemDelegate::maskingColor
QColor maskingColor() const
Return the color for masked cells.
Definition: TableItemDelegate.h:48
TableItemDelegate::paint
virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
Custom cell painting.
Definition: TableItemDelegate.cpp:41
TableItemDelegate::setModelData
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
Definition: TableItemDelegate.cpp:53
TableItemDelegate::TableItemDelegate
TableItemDelegate(QObject *parent=0)
Standard constructor.
Definition: TableItemDelegate.cpp:35
TableItemDelegate::setEditorData
void setEditorData(QWidget *editor, const QModelIndex &index) const
Definition: TableItemDelegate.cpp:58
TableItemDelegate::d_masking_color
QColor d_masking_color
The color for masked cells.
Definition: TableItemDelegate.h:54
TableItemDelegate::setMaskingColor
void setMaskingColor(const QColor &color)
Set the color for masked cells.
Definition: TableItemDelegate.h:46
TableItemDelegate
Item delegate for TableView.
Definition: TableItemDelegate.h:37