| 265 | } |
| 266 | |
| 267 | void ProgressDialog::slotTransactionAdded( ProgressItem *item ) |
| 268 | { |
| 269 | if ( item->parent() ) { |
| 270 | const auto parentItemIt = mTransactionsToListviewItems.constFind(item->parent()); |
| 271 | if (parentItemIt != mTransactionsToListviewItems.constEnd()) { |
| 272 | TransactionItem* parent = *parentItemIt; |
| 273 | parent->addSubTransaction( item ); |
| 274 | } |
| 275 | } else { |
| 276 | const bool first = mTransactionsToListviewItems.empty(); |
| 277 | TransactionItem *ti = mScrollView->addTransactionItem( item, first ); |
| 278 | if ( ti ) { |
| 279 | mTransactionsToListviewItems.insert( item, ti ); |
| 280 | } |
| 281 | if ( first && mWasLastShown ) { |
| 282 | QTimer::singleShot( 1000, this, &ProgressDialog::slotShow ); |
| 283 | } |
| 284 | |
| 285 | } |
| 286 | } |
| 287 | |
| 288 | void ProgressDialog::slotTransactionCompleted( ProgressItem *item ) |
| 289 | { |
nothing calls this directly
no test coverage detected