solve warnings at startup
This commit is contained in:
parent
2a097fc5ed
commit
77b615ceba
6 changed files with 4 additions and 10 deletions
|
@ -84,7 +84,7 @@ BitcoinGUI::BitcoinGUI(QWidget *parent):
|
||||||
QVBoxLayout *vbox = new QVBoxLayout();
|
QVBoxLayout *vbox = new QVBoxLayout();
|
||||||
|
|
||||||
transactionView = new TransactionView(this);
|
transactionView = new TransactionView(this);
|
||||||
connect(transactionView, SIGNAL(doubleClicked(const QModelIndex&)), transactionView, SLOT(transactionDetails()));
|
connect(transactionView, SIGNAL(doubleClicked(const QModelIndex&)), transactionView, SLOT(showDetails()));
|
||||||
vbox->addWidget(transactionView);
|
vbox->addWidget(transactionView);
|
||||||
|
|
||||||
transactionsPage = new QWidget(this);
|
transactionsPage = new QWidget(this);
|
||||||
|
|
|
@ -49,7 +49,7 @@ void OverviewPage::setModel(WalletModel *model)
|
||||||
|
|
||||||
// Keep up to date with wallet
|
// Keep up to date with wallet
|
||||||
setBalance(model->getBalance(), model->getUnconfirmedBalance());
|
setBalance(model->getBalance(), model->getUnconfirmedBalance());
|
||||||
connect(model, SIGNAL(balanceChanged(qint64)), this, SLOT(setBalance(qint64)));
|
connect(model, SIGNAL(balanceChanged(qint64, qint64)), this, SLOT(setBalance(qint64, qint64)));
|
||||||
|
|
||||||
setNumTransactions(model->getNumTransactions());
|
setNumTransactions(model->getNumTransactions());
|
||||||
connect(model, SIGNAL(numTransactionsChanged(int)), this, SLOT(setNumTransactions(int)));
|
connect(model, SIGNAL(numTransactionsChanged(int)), this, SLOT(setNumTransactions(int)));
|
||||||
|
|
|
@ -125,11 +125,6 @@ void SendCoinsDialog::on_addressBookButton_clicked()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SendCoinsDialog::on_buttonBox_rejected()
|
|
||||||
{
|
|
||||||
reject();
|
|
||||||
}
|
|
||||||
|
|
||||||
void SendCoinsDialog::on_payTo_textChanged(const QString &address)
|
void SendCoinsDialog::on_payTo_textChanged(const QString &address)
|
||||||
{
|
{
|
||||||
ui->addAsLabel->setText(model->getAddressTableModel()->labelForAddress(address));
|
ui->addAsLabel->setText(model->getAddressTableModel()->labelForAddress(address));
|
||||||
|
|
|
@ -29,7 +29,6 @@ private:
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void on_payTo_textChanged(const QString &address);
|
void on_payTo_textChanged(const QString &address);
|
||||||
void on_buttonBox_rejected();
|
|
||||||
void on_addressBookButton_clicked();
|
void on_addressBookButton_clicked();
|
||||||
void on_pasteButton_clicked();
|
void on_pasteButton_clicked();
|
||||||
void on_sendButton_clicked();
|
void on_sendButton_clicked();
|
||||||
|
|
|
@ -48,7 +48,7 @@ void WalletModel::update()
|
||||||
// Plainly emit all signals for now. To be more efficient this should check
|
// Plainly emit all signals for now. To be more efficient this should check
|
||||||
// whether the values actually changed first, although it'd be even better if these
|
// whether the values actually changed first, although it'd be even better if these
|
||||||
// were events coming in from the bitcoin core.
|
// were events coming in from the bitcoin core.
|
||||||
emit balanceChanged(getBalance());
|
emit balanceChanged(getBalance(), wallet->GetUnconfirmedBalance());
|
||||||
emit numTransactionsChanged(getNumTransactions());
|
emit numTransactionsChanged(getNumTransactions());
|
||||||
|
|
||||||
addressTableModel->update();
|
addressTableModel->update();
|
||||||
|
|
|
@ -47,7 +47,7 @@ private:
|
||||||
TransactionTableModel *transactionTableModel;
|
TransactionTableModel *transactionTableModel;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void balanceChanged(qint64 balance);
|
void balanceChanged(qint64 balance, qint64 unconfirmedBalance);
|
||||||
void numTransactionsChanged(int count);
|
void numTransactionsChanged(int count);
|
||||||
|
|
||||||
// Asynchronous error notification
|
// Asynchronous error notification
|
||||||
|
|
Loading…
Reference in a new issue