예제 #1
0
void Condition::setData(const QVariantMap& data)
{
    doRestore(data);
    emit dataChanged(data);

    if(running()) doStart();
}
예제 #2
0
void Action::stop(bool running)
{
    if(mStartTimerId)
    {
        killTimer(mStartTimerId);
        mStartTimerId = 0;
        mRunning = false;
    }

    if(mRunning)
    {
        if(mRestore) doRestore();
        doStop(running);
        mRunning = false;
    }
}
예제 #3
0
파일: wmdisim.c 프로젝트: hubei/open-watcom
/*
 * doRestoreAll - set all children as needing restoration
 */
static void doRestoreAll( void )
{
    mdi_data    *md;

    if( !childrenMaximized ) {
        return;
    }
    _wpi_setwindowtext( mdiInfo.root, mdiInfo.main_name );
    childrenMaximized = FALSE;
    md = mdiHead;
    while( md != NULL ) {
        doRestore( md->hwnd );
        md = md->next;
    }
    MDIClearMaximizedMenuConfig();
    deleteMaximizedMenuConfig();

} /* doRestoreAll */
예제 #4
0
 virtual UndoItem *restore()
 {
     return doRestore();
 }