|
|
@ -66,7 +66,6 @@ BitcoinGUI::BitcoinGUI(QWidget *parent): |
|
|
|
hbox_address->addWidget(new QLabel(tr("Your Bitcoin Address:"))); |
|
|
|
hbox_address->addWidget(new QLabel(tr("Your Bitcoin Address:"))); |
|
|
|
address = new QLineEdit(); |
|
|
|
address = new QLineEdit(); |
|
|
|
address->setReadOnly(true); |
|
|
|
address->setReadOnly(true); |
|
|
|
address->setText("0123456789"); /* test */ |
|
|
|
|
|
|
|
hbox_address->addWidget(address); |
|
|
|
hbox_address->addWidget(address); |
|
|
|
|
|
|
|
|
|
|
|
QPushButton *button_new = new QPushButton(tr("&New...")); |
|
|
|
QPushButton *button_new = new QPushButton(tr("&New...")); |
|
|
@ -253,6 +252,11 @@ void BitcoinGUI::setBalance(double balance) |
|
|
|
labelBalance->setText(QLocale::system().toString(balance, 8)); |
|
|
|
labelBalance->setText(QLocale::system().toString(balance, 8)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void BitcoinGUI::setAddress(const QString &addr) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
address->setText(addr); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void BitcoinGUI::setNumConnections(int count) |
|
|
|
void BitcoinGUI::setNumConnections(int count) |
|
|
|
{ |
|
|
|
{ |
|
|
|
labelConnections->setText(QLocale::system().toString(count)+" "+tr("connections")); |
|
|
|
labelConnections->setText(QLocale::system().toString(count)+" "+tr("connections")); |
|
|
|