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

Method slotTransactionAdded

kdevplatform/shell/progresswidget/progressdialog.cpp:267–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267void 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
288void ProgressDialog::slotTransactionCompleted( ProgressItem *item )
289{

Callers

nothing calls this directly

Calls 7

constEndMethod · 0.80
addSubTransactionMethod · 0.80
emptyMethod · 0.80
addTransactionItemMethod · 0.80
parentMethod · 0.45
constFindMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected