VirtualBox

Changeset 27148 in vbox


Ignore:
Timestamp:
Mar 7, 2010 5:03:12 PM (15 years ago)
Author:
vboxsync
Message:

FE/Qt4: New running VM core: bug fix in fullscreen/seamless actions state when switching between non-default (windowed) visual states like fullscreen/seamless directly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.cpp

    r27096 r27148  
    163163        : UIVisualState(pParent, pSession, pActionsPool) {}
    164164
     165    /* Fullscreen visual state holder destructor: */
     166    virtual ~UIVisualStateFullscreen()
     167    {
     168        /* This visual state should take care of own action: */
     169        QAction *pActionFullscreen = m_pActionsPool->action(UIActionIndex_Toggle_Fullscreen);
     170        if (pActionFullscreen->isChecked())
     171        {
     172            pActionFullscreen->blockSignals(true);
     173            pActionFullscreen->setChecked(false);
     174            pActionFullscreen->blockSignals(false);
     175        }
     176    }
     177
    165178    UIVisualStateType visualStateType() const { return UIVisualStateType_Fullscreen; }
    166179
     
    201214    UIVisualStateSeamless(QObject *pParent, UISession *pSession, UIActionsPool *pActionsPool)
    202215        : UIVisualState(pParent, pSession, pActionsPool) {}
     216
     217    /* Seamless visual state holder destructor: */
     218    virtual ~UIVisualStateSeamless()
     219    {
     220        /* This visual state should take care of own action: */
     221        QAction *pActionSeamless = m_pActionsPool->action(UIActionIndex_Toggle_Seamless);
     222        if (pActionSeamless->isChecked())
     223        {
     224            pActionSeamless->blockSignals(true);
     225            pActionSeamless->setChecked(false);
     226            pActionSeamless->blockSignals(false);
     227        }
     228    }
    203229
    204230    UIVisualStateType visualStateType() const { return UIVisualStateType_Seamless; }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette