#include "aboutdialog.h"
#include "ui_aboutdialog.h"
-
-#include "util.h"
+#include "clientmodel.h"
AboutDialog::AboutDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::AboutDialog)
{
ui->setupUi(this);
- ui->versionLabel->setText(QString::fromStdString(FormatFullVersion()));
+
+}
+
+void AboutDialog::setModel(ClientModel *model)
+{
+ ui->versionLabel->setText(model->formatFullVersion());
}
AboutDialog::~AboutDialog()
#include "addresstablemodel.h"
#include "transactionview.h"
-#include "headers.h"
-
#include <QApplication>
#include <QMainWindow>
#include <QMenuBar>
void BitcoinGUI::aboutClicked()
{
AboutDialog dlg;
+ dlg.setModel(clientModel);
dlg.exec();
}
void BitcoinGUI::setBalance(qint64 balance)
{
- labelBalance->setText(QString::fromStdString(FormatMoney(balance)) + QString(" BTC"));
+ labelBalance->setText(GUIUtil::formatMoney(balance) + QString(" BTC"));
}
void BitcoinGUI::setAddress(const QString &addr)
QString strMessage =
tr("This transaction is over the size limit. You can still send it for a fee of %1, "
"which goes to the nodes that process your transaction and helps to support the network. "
- "Do you want to pay the fee?").arg(QString::fromStdString(FormatMoney(nFeeRequired)));
+ "Do you want to pay the fee?").arg(GUIUtil::formatMoney(nFeeRequired));
QMessageBox::StandardButton retval = QMessageBox::question(
this, tr("Sending..."), strMessage,
QMessageBox::Yes|QMessageBox::Cancel, QMessageBox::Yes);
trayIcon->showMessage(tr("Incoming transaction"),
tr("Date: ") + date + "\n" +
- tr("Amount: ") + QString::fromStdString(FormatMoney(amount, true)) + "\n" +
+ tr("Amount: ") + GUIUtil::formatMoney(amount, true) + "\n" +
tr("Type: ") + type + "\n" +
tr("Address: ") + address + "\n",
QSystemTrayIcon::Information);