| 286 | } |
| 287 | |
| 288 | void ProgressDialog::slotTransactionCompleted( ProgressItem *item ) |
| 289 | { |
| 290 | const auto itemIt = mTransactionsToListviewItems.find(item); |
| 291 | if (itemIt != mTransactionsToListviewItems.end()) { |
| 292 | TransactionItem* ti = *itemIt; |
| 293 | mTransactionsToListviewItems.erase(itemIt); |
| 294 | ti->setItemComplete(); |
| 295 | QTimer::singleShot( 3000, mScrollView, [=] { mScrollView->slotItemCompleted(ti); } ); |
| 296 | } |
| 297 | // This was the last item, hide. |
| 298 | if ( mTransactionsToListviewItems.empty() ) { |
| 299 | QTimer::singleShot( 3000, this, &ProgressDialog::slotHide ); |
| 300 | } |
| 301 | } |
| 302 | |
| 303 | void ProgressDialog::slotTransactionCanceled( ProgressItem * ) |
| 304 | { |
nothing calls this directly
no test coverage detected