Changeset 56870 in vbox
- Timestamp:
- Jul 8, 2015 3:12:32 PM (9 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r56869 r56870 1053 1053 #ifndef Q_WS_MAC 1054 1054 connect(actionPool()->action(UIActionIndexRT_M_View_S_MinimizeWindow), SIGNAL(triggered()), 1055 this, SLOT(sltMinimizeActiveMachineWindow()) );1055 this, SLOT(sltMinimizeActiveMachineWindow()), Qt::QueuedConnection); 1056 1056 #endif /* !Q_WS_MAC */ 1057 1057 connect(actionPool()->action(UIActionIndexRT_M_View_S_AdjustWindow), SIGNAL(triggered()), … … 1112 1112 /* 'Window' action connections: */ 1113 1113 connect(actionPool()->action(UIActionIndex_M_Window_S_Minimize), SIGNAL(triggered()), 1114 this, SLOT(sltMinimizeActiveMachineWindow()) );1114 this, SLOT(sltMinimizeActiveMachineWindow()), Qt::QueuedConnection); 1115 1115 #endif /* Q_WS_MAC */ 1116 1116 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.h
r56869 r56870 98 98 virtual void sltMachineStateChanged(); 99 99 100 /** Shows window minimized. */ 101 virtual void showMinimized() { QMainWindow::showMinimized(); } 102 100 103 protected: 101 104 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.cpp
r56869 r56870 187 187 activateWindow(); 188 188 #endif /* Q_WS_MAC || Q_WS_X11 */ 189 } 190 191 void UIMachineWindowFullscreen::showMinimized() 192 { 193 #ifdef Q_WS_X11 194 /* If there is mini-toolbar: */ 195 if (m_pMiniToolBar) 196 { 197 /* Minimize it first: */ 198 m_pMiniToolBar->showMinimized(); 199 } 200 #endif /* Q_WS_X11 */ 201 202 /* Call to base-class: */ 203 UIMachineWindow::showMinimized(); 189 204 } 190 205 … … 247 262 gEDataManager->autoHideMiniToolbar(vboxGlobal().managedVMUuid())); 248 263 m_pMiniToolBar->addMenus(actionPool()->menus()); 249 connect(m_pMiniToolBar, SIGNAL(sigMinimizeAction()), this, SLOT(showMinimized()) );264 connect(m_pMiniToolBar, SIGNAL(sigMinimizeAction()), this, SLOT(showMinimized()), Qt::QueuedConnection); 250 265 connect(m_pMiniToolBar, SIGNAL(sigExitAction()), 251 266 actionPool()->action(UIActionIndexRT_M_View_T_Fullscreen), SLOT(trigger())); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.h
r56869 r56870 75 75 void sltRevokeFocus(); 76 76 77 /** Shows window minimized. */ 78 void showMinimized(); 79 77 80 private: 78 81 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.cpp
r56869 r56870 78 78 activateWindow(); 79 79 #endif /* Q_WS_MAC || Q_WS_X11 */ 80 } 81 82 void UIMachineWindowSeamless::showMinimized() 83 { 84 #ifdef Q_WS_X11 85 /* If there is mini-toolbar: */ 86 if (m_pMiniToolBar) 87 { 88 /* Minimize it first: */ 89 m_pMiniToolBar->showMinimized(); 90 } 91 #endif /* Q_WS_X11 */ 92 93 /* Call to base-class: */ 94 UIMachineWindow::showMinimized(); 80 95 } 81 96 … … 131 146 m_pMiniToolBar->show(); 132 147 m_pMiniToolBar->addMenus(actionPool()->menus()); 133 connect(m_pMiniToolBar, SIGNAL(sigMinimizeAction()), this, SLOT(showMinimized()) );148 connect(m_pMiniToolBar, SIGNAL(sigMinimizeAction()), this, SLOT(showMinimized()), Qt::QueuedConnection); 134 149 connect(m_pMiniToolBar, SIGNAL(sigExitAction()), 135 150 actionPool()->action(UIActionIndexRT_M_View_T_Seamless), SLOT(trigger())); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.h
r56869 r56870 46 46 /** Revokes keyboard-focus. */ 47 47 void sltRevokeFocus(); 48 49 /** Shows window minimized. */ 50 void showMinimized(); 48 51 49 52 private:
Note:
See TracChangeset
for help on using the changeset viewer.