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

Method singleItem

kdevplatform/shell/progresswidget/progressmanager.cpp:219–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219ProgressItem *ProgressManager::singleItem() const
220{
221 ProgressItem *item = nullptr;
222 for (ProgressItem* transactionItem : mTransactions) {
223 // No single item for progress possible, as one of them is a busy indicator one.
224 if (transactionItem->usesBusyIndicator())
225 return nullptr;
226
227 if (!transactionItem->parent()) { // if it's a top level one, only those count
228 if ( item ) {
229 return nullptr; // we found more than one
230 } else {
231 item = transactionItem;
232 }
233 }
234 }
235 return item;
236}
237
238void ProgressManager::slotAbortAll()
239{

Callers 1

connectSingleItemMethod · 0.80

Calls 2

usesBusyIndicatorMethod · 0.80
parentMethod · 0.45

Tested by

no test coverage detected