MCPcopy Create free account
hub / github.com/KDE/kdevelop / slotTransactionCompleted

Method slotTransactionCompleted

kdevplatform/shell/progresswidget/progressdialog.cpp:288–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288void 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
303void ProgressDialog::slotTransactionCanceled( ProgressItem * )
304{

Callers

nothing calls this directly

Calls 5

setItemCompleteMethod · 0.80
slotItemCompletedMethod · 0.80
emptyMethod · 0.80
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected