Somewhat confident now, tested on GNOME+KDE, with all types of transactions. Next...
[novacoin.git] / gui / include / transactiontablemodel.h
index b484a59..5974c0e 100644 (file)
@@ -23,7 +23,8 @@ public:
     } ColumnIndex;
 
     enum {
-        TypeRole = Qt::UserRole
+        TypeRole = Qt::UserRole,
+        LongDescriptionRole = Qt::UserRole+1
     } RoleIndex;
 
     /* TypeRole values */
@@ -36,7 +37,7 @@ public:
     QVariant data(const QModelIndex &index, int role) const;
     QVariant headerData(int section, Qt::Orientation orientation, int role) const;
     Qt::ItemFlags flags(const QModelIndex &index) const;
-    QModelIndex index ( int row, int column, const QModelIndex & parent = QModelIndex() ) const;
+    QModelIndex index(int row, int column, const QModelIndex & parent = QModelIndex()) const;
 private:
     QStringList columns;
     TransactionTablePriv *priv;
@@ -49,6 +50,8 @@ private:
 
 private slots:
     void update();
+
+    friend class TransactionTablePriv;
 };
 
 #endif