|
|
@ -93,7 +93,7 @@ void WalletView::setBitcoinGUI(BitcoinGUI *gui) |
|
|
|
connect(this, SIGNAL(encryptionStatusChanged(int)), gui, SLOT(setEncryptionStatus(int))); |
|
|
|
connect(this, SIGNAL(encryptionStatusChanged(int)), gui, SLOT(setEncryptionStatus(int))); |
|
|
|
|
|
|
|
|
|
|
|
// Pass through transaction notifications
|
|
|
|
// Pass through transaction notifications
|
|
|
|
connect(this, SIGNAL(incomingTransaction(QString,int,CAmount,QString,QString)), gui, SLOT(incomingTransaction(QString,int,CAmount,QString,QString))); |
|
|
|
connect(this, SIGNAL(incomingTransaction(QString,int,CAmount,QString,QString,QString)), gui, SLOT(incomingTransaction(QString,int,CAmount,QString,QString,QString))); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -149,9 +149,11 @@ void WalletView::processNewTransaction(const QModelIndex& parent, int start, int |
|
|
|
QString date = ttm->index(start, TransactionTableModel::Date, parent).data().toString(); |
|
|
|
QString date = ttm->index(start, TransactionTableModel::Date, parent).data().toString(); |
|
|
|
qint64 amount = ttm->index(start, TransactionTableModel::Amount, parent).data(Qt::EditRole).toULongLong(); |
|
|
|
qint64 amount = ttm->index(start, TransactionTableModel::Amount, parent).data(Qt::EditRole).toULongLong(); |
|
|
|
QString type = ttm->index(start, TransactionTableModel::Type, parent).data().toString(); |
|
|
|
QString type = ttm->index(start, TransactionTableModel::Type, parent).data().toString(); |
|
|
|
QString address = ttm->index(start, TransactionTableModel::ToAddress, parent).data().toString(); |
|
|
|
QModelIndex index = ttm->index(start, 0, parent); |
|
|
|
|
|
|
|
QString address = ttm->data(index, TransactionTableModel::AddressRole).toString(); |
|
|
|
|
|
|
|
QString label = ttm->data(index, TransactionTableModel::LabelRole).toString(); |
|
|
|
|
|
|
|
|
|
|
|
emit incomingTransaction(date, walletModel->getOptionsModel()->getDisplayUnit(), amount, type, address); |
|
|
|
emit incomingTransaction(date, walletModel->getOptionsModel()->getDisplayUnit(), amount, type, address, label); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void WalletView::gotoOverviewPage() |
|
|
|
void WalletView::gotoOverviewPage() |
|
|
|