3 #ifndef __table_editor_delegate_hpp
4 #define __table_editor_delegate_hpp
6 #include <QItemDelegate>
35 void paint(QPainter *painter,
const QStyleOptionViewItem &option,
36 const QModelIndex &index)
const;
38 QSize sizeHint(
const QStyleOptionViewItem &option,
39 const QModelIndex &index )
const;
41 virtual QWidget* createEditor(QWidget *parent,
42 const QStyleOptionViewItem &option,
43 const QModelIndex &index )
const;
45 virtual void setModelData(QWidget *editor,
46 QAbstractItemModel *model,
47 const QModelIndex &index)
const;
49 virtual void setEditorData(QWidget *editor,
const QModelIndex &index)
const;
51 virtual void updateEditorGeometry(QWidget *editor,
52 const QStyleOptionViewItem &option,
53 const QModelIndex&)
const;
Definition: table_doc.hpp:12
TableEditorDelegate(QObject *parent=0)
void attachDoc(TableDoc &doc)
TableDoc * mp_doc
Definition: table_editor_delegate.hpp:58
Definition: table_editor_delegate.hpp:15