예제 #1
0
void ProgressItem::setComplete()
{
    if ( !m_canceled )
        setProgress( 100 );
    emit progressItemCompleted( this );
    deleteLater();
}
예제 #2
0
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();
   }
}