00001 #ifndef ACCOUNTSTABLEDELEGATE_H
00002 #define ACCOUNTSTABLEDELEGATE_H
00003
00004 #include <QStyledItemDelegate>
00005 #include <QLineEdit>
00006
00007
00008
00009
00010 class AccountsTableDelegate : public QStyledItemDelegate
00011 {
00012 public:
00013 AccountsTableDelegate(QWidget *parent = 0);
00014
00015 QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const;
00016 void setEditorData(QWidget *editor, const QModelIndex &index) const;
00017 void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const;
00018 void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index ) const;
00019 };
00020
00021 #endif // ACCOUNTSTABLEDELEGATE_H