add all (unpopulated) dialogs
[novacoin.git] / TransactionTableModel.h
1 #ifndef TRANSACTIONTABLEMODEL_H
2 #define TRANSACTIONTABLEMODEL_H
3
4 #include <QAbstractTableModel>
5 #include <QStringList>
6
7 class TransactionTableModel : public QAbstractTableModel
8 {
9     Q_OBJECT
10 public:
11     explicit TransactionTableModel(QObject *parent = 0);
12
13     enum {
14         Status = 0,
15         Date = 1,
16         Description = 2,
17         Debit = 3,
18         Credit = 4
19     } ColumnIndex;
20
21     int rowCount(const QModelIndex &parent) const;
22     int columnCount(const QModelIndex &parent) const;
23     QVariant data(const QModelIndex &index, int role) const;
24     QVariant headerData(int section, Qt::Orientation orientation, int role) const;
25     Qt::ItemFlags flags(const QModelIndex &index) const;
26 private:
27     QStringList columns;
28 };
29
30 #endif
31