comment update

This commit is contained in:
Wladimir J. van der Laan 2011-06-05 11:04:14 +02:00
parent 75ff9d841b
commit afacb3406d
2 changed files with 6 additions and 3 deletions

View File

@ -14,7 +14,7 @@ This has been implemented:
- GUI only functionality (copy to clipboard, select address, address/transaction filter proxys) - GUI only functionality (copy to clipboard, select address, address/transaction filter proxys)
- Bitcoin core is made compatible with Qt4, and linked against - Bitcoin core is made compatible with Qt4
- Send coins dialog: address and input validation - Send coins dialog: address and input validation

View File

@ -9,8 +9,8 @@
ClientModel::ClientModel(QObject *parent) : ClientModel::ClientModel(QObject *parent) :
QObject(parent), optionsModel(0), addressTableModel(0) QObject(parent), optionsModel(0), addressTableModel(0)
{ {
/* Until we build signal notifications into the bitcoin core, /* Until signal notifications is built into the bitcoin core,
simply update everything using a timer. simply update everything after polling using a timer.
*/ */
QTimer *timer = new QTimer(this); QTimer *timer = new QTimer(this);
connect(timer, SIGNAL(timeout()), this, SLOT(update())); connect(timer, SIGNAL(timeout()), this, SLOT(update()));
@ -58,6 +58,9 @@ int ClientModel::getNumTransactions()
void ClientModel::update() void ClientModel::update()
{ {
/* Plainly emit all signals for now. To be precise this should check
wether the values actually changed first.
*/
emit balanceChanged(getBalance()); emit balanceChanged(getBalance());
emit addressChanged(getAddress()); emit addressChanged(getAddress());
emit numConnectionsChanged(getNumConnections()); emit numConnectionsChanged(getNumConnections());