void ProgressItem::setComplete() { if ( !m_canceled ) setProgress( 100 ); emit progressItemCompleted( this ); deleteLater(); }
void ProgressItem::removeChild( ProgressItem *kiddo ) { mChildren.remove( kiddo ); // in case we were waiting for the last kid to go away, now is the time if ( mChildren.count() == 0 && mWaitingForKids ) { emit progressItemCompleted( this ); deleteLater(); } }