work on transaction list model

This commit is contained in:
Wladimir J. van der Laan
2011-05-27 18:38:30 +02:00
parent 213f763630
commit 0856c1a03e
5 changed files with 375 additions and 84 deletions

8
gui/include/guiutil.h Normal file
View File

@@ -0,0 +1,8 @@
#ifndef GUIUTIL_H
#define GUIUTIL_H
#include <QString>
QString DateTimeStr(qint64 nTime);
#endif // GUIUTIL_H

View File

@@ -26,10 +26,11 @@ public:
TypeRole = Qt::UserRole
} RoleIndex;
/* Transaction type */
/* TypeRole values */
static const QString Sent;
static const QString Received;
static const QString Generated;
static const QString Other;
int rowCount(const QModelIndex &parent) const;
int columnCount(const QModelIndex &parent) const;