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

Method removeChild

kdevplatform/shell/progresswidget/progressmanager.cpp:54–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void ProgressItem::removeChild( ProgressItem *kiddo )
55{
56 if ( mChildren.isEmpty() ) {
57 mWaitingForKids = false;
58 return;
59 }
60
61 if ( mChildren.remove( kiddo ) == 0 ) {
62 // do nothing if the specified item is not in the map
63 return;
64 }
65
66 // in case we were waiting for the last kid to go away, now is the time
67 if ( mChildren.count() == 0 && mWaitingForKids ) {
68 emit progressItemCompleted( this );
69 }
70}
71
72void ProgressItem::cancel()
73{

Callers 1

setCompleteMethod · 0.45

Calls 3

isEmptyMethod · 0.45
removeMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected