Changeset 53057 in vbox
- Timestamp:
- Oct 14, 2014 3:29:38 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 96555
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.cpp
r53050 r53057 266 266 #endif /* Q_WS_X11 */ 267 267 268 void UIMachineWindow::closeEvent(QCloseEvent *pEvent) 268 void UIMachineWindow::showEvent(QShowEvent *pShowEvent) 269 { 270 /* Call to base class: */ 271 QMainWindow::showEvent(pShowEvent); 272 273 /* Update appearance for indicator-pool: */ 274 updateAppearanceOf(UIVisualElement_IndicatorPoolStuff); 275 } 276 277 void UIMachineWindow::closeEvent(QCloseEvent *pCloseEvent) 269 278 { 270 279 /* Always ignore close-event first: */ 271 p Event->ignore();280 pCloseEvent->ignore(); 272 281 273 282 /* Make sure machine is in one of the allowed states: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.h
r52819 r53057 99 99 /* Event handlers: */ 100 100 #ifdef Q_WS_X11 101 /** X11: Native event handler. */ 101 102 bool x11Event(XEvent *pEvent); 102 103 #endif /* Q_WS_X11 */ 103 void closeEvent(QCloseEvent *pEvent); 104 105 /** Show event handler. */ 106 void showEvent(QShowEvent *pShowEvent); 107 108 /** Close event handler. */ 109 void closeEvent(QCloseEvent *pCloseEvent); 104 110 105 111 #ifdef Q_WS_MAC -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp
r53050 r53057 166 166 statusBar()->setVisible(pActionStatusBarSwitch->isChecked()); 167 167 /* Update status-bar indicators-pool: */ 168 m_pIndicatorsPool->setAutoUpdateIndicatorStates(statusBar()->isVisible() );168 m_pIndicatorsPool->setAutoUpdateIndicatorStates(statusBar()->isVisible() && uisession()->isRunning()); 169 169 170 170 /* Normalize geometry without moving: */ … … 328 328 /* Update status-bar visibility: */ 329 329 statusBar()->setVisible(actionPool()->action(UIActionIndexRT_M_View_M_StatusBar_T_Visibility)->isChecked()); 330 m_pIndicatorsPool->setAutoUpdateIndicatorStates(statusBar()->isVisible() );330 m_pIndicatorsPool->setAutoUpdateIndicatorStates(statusBar()->isVisible() && uisession()->isRunning()); 331 331 } 332 332 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.cpp
r52891 r53057 286 286 287 287 #if defined(VBOX_WITH_TRANSLUCENT_SEAMLESS) && defined(Q_WS_WIN) 288 void UIMachineWindowSeamless::showEvent(QShowEvent*) 289 { 288 void UIMachineWindowSeamless::showEvent(QShowEvent *pShowEvent) 289 { 290 /* Call to base class: */ 291 UIMachineWindow::showEvent(pShowEvent); 292 290 293 /* Following workaround allows to fix the next Qt BUG: 291 294 * https://bugreports.qt-project.org/browse/QTBUG-17548
Note:
See TracChangeset
for help on using the changeset viewer.