| 217 | } |
| 218 | |
| 219 | ProgressItem *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 | |
| 238 | void ProgressManager::slotAbortAll() |
| 239 | { |
no test coverage detected