1 #ifndef TRANSACTIONTABLEMODEL_H
2 #define TRANSACTIONTABLEMODEL_H
4 #include <QAbstractTableModel>
7 class TransactionTableModel : public QAbstractTableModel
11 explicit TransactionTableModel(QObject *parent = 0);
22 /* Transaction type */
23 static const QString Sent;
24 static const QString Received;
25 static const QString Generated;
27 int rowCount(const QModelIndex &parent) const;
28 int columnCount(const QModelIndex &parent) const;
29 QVariant data(const QModelIndex &index, int role) const;
30 QVariant headerData(int section, Qt::Orientation orientation, int role) const;
31 Qt::ItemFlags flags(const QModelIndex &index) const;