| 126 | } |
| 127 | |
| 128 | void WalletView::processNewTransaction(const QModelIndex& parent, int start, int /*end*/) |
| 129 | { |
| 130 | // Prevent balloon-spam when initial block download is in progress |
| 131 | if (!clientModel || clientModel->node().isInitialBlockDownload()) { |
| 132 | return; |
| 133 | } |
| 134 | |
| 135 | TransactionTableModel *ttm = walletModel->getTransactionTableModel(); |
| 136 | if (!ttm || ttm->processingQueuedTransactions()) |
| 137 | return; |
| 138 | |
| 139 | QString date = ttm->index(start, TransactionTableModel::Date, parent).data().toString(); |
| 140 | QString assetamount_str = ttm->index(start, TransactionTableModel::Amount, parent).data().toString(); |
| 141 | QString type = ttm->index(start, TransactionTableModel::Type, parent).data().toString(); |
| 142 | QModelIndex index = ttm->index(start, 0, parent); |
| 143 | QString address = ttm->data(index, TransactionTableModel::AddressRole).toString(); |
| 144 | QString label = GUIUtil::HtmlEscape(ttm->data(index, TransactionTableModel::LabelRole).toString()); |
| 145 | |
| 146 | Q_EMIT incomingTransaction(date, assetamount_str, type, address, label, GUIUtil::HtmlEscape(walletModel->getWalletName())); |
| 147 | } |
| 148 | |
| 149 | void WalletView::gotoOverviewPage() |
| 150 | { |
nothing calls this directly
no test coverage detected