Changeset 27148 in vbox
- Timestamp:
- Mar 7, 2010 5:03:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.cpp
r27096 r27148 163 163 : UIVisualState(pParent, pSession, pActionsPool) {} 164 164 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 165 178 UIVisualStateType visualStateType() const { return UIVisualStateType_Fullscreen; } 166 179 … … 201 214 UIVisualStateSeamless(QObject *pParent, UISession *pSession, UIActionsPool *pActionsPool) 202 215 : 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 } 203 229 204 230 UIVisualStateType visualStateType() const { return UIVisualStateType_Seamless; }
Note:
See TracChangeset
for help on using the changeset viewer.