auto-update transaction list
This commit is contained in:
11
gui/include/guiconstants.h
Normal file
11
gui/include/guiconstants.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#ifndef GUICONSTANTS_H
|
||||
#define GUICONSTANTS_H
|
||||
|
||||
/* milliseconds between model updates */
|
||||
static const int MODEL_UPDATE_DELAY = 250;
|
||||
|
||||
/* size of cache */
|
||||
static const unsigned int WALLET_CACHE_SIZE = 100;
|
||||
|
||||
|
||||
#endif // GUICONSTANTS_H
|
||||
@@ -75,6 +75,8 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
/* Decompose CWallet transaction to model transaction records.
|
||||
*/
|
||||
static bool showTransaction(const CWalletTx &wtx);
|
||||
static QList<TransactionRecord> decomposeTransaction(const CWalletTx &wtx);
|
||||
|
||||
|
||||
@@ -37,8 +37,6 @@ public:
|
||||
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;
|
||||
public slots:
|
||||
void updateWallet();
|
||||
private:
|
||||
QStringList columns;
|
||||
TransactionTableImpl *impl;
|
||||
@@ -48,6 +46,9 @@ private:
|
||||
QVariant formatTxDescription(const TransactionRecord *wtx) const;
|
||||
QVariant formatTxDebit(const TransactionRecord *wtx) const;
|
||||
QVariant formatTxCredit(const TransactionRecord *wtx) const;
|
||||
|
||||
private slots:
|
||||
void update();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user