Changeset 99561 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- May 2, 2023 10:19:01 AM (20 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r99526 r99561 399 399 m_pRunningActions->setEnabled(uimachine()->isRunning()); 400 400 m_pRunningOrPausedActions->setEnabled(uimachine()->isRunning() || uimachine()->isPaused()); 401 m_pRunningOrPausedOrSt ackedActions->setEnabled(uimachine()->isRunning() || uimachine()->isPaused() || uimachine()->isStuck());401 m_pRunningOrPausedOrStuckActions->setEnabled(uimachine()->isRunning() || uimachine()->isPaused() || uimachine()->isStuck()); 402 402 403 403 switch (state) … … 756 756 , m_pRunningActions(0) 757 757 , m_pRunningOrPausedActions(0) 758 , m_pRunningOrPausedOrSt ackedActions(0)758 , m_pRunningOrPausedOrStuckActions(0) 759 759 , m_pSharedClipboardActions(0) 760 760 , m_pDragAndDropActions(0) … … 906 906 * Note that only actions whose enabled state depends exclusively on the 907 907 * execution state of the VM are added to this group. */ 908 m_pRunningOrPausedOrSt ackedActions = new QActionGroup(this);909 m_pRunningOrPausedOrSt ackedActions->setExclusive(false);908 m_pRunningOrPausedOrStuckActions = new QActionGroup(this); 909 m_pRunningOrPausedOrStuckActions->setExclusive(false); 910 910 911 911 /* Move actions into running actions group: */ … … 979 979 m_pRunningOrPausedActions->addAction(actionPool()->action(UIActionIndex_M_Window_S_Minimize)); 980 980 #endif /* VBOX_WS_MAC */ 981 982 /* Move actions into running-n-paused-n-stuck actions group: */ 981 983 #ifdef VBOX_WITH_DEBUGGER_GUI 982 m_pRunningOrPaused Actions->addAction(actionPool()->action(UIActionIndexRT_M_Debug));983 m_pRunningOrPaused Actions->addAction(actionPool()->action(UIActionIndexRT_M_Debug_S_ShowStatistics));984 m_pRunningOrPaused Actions->addAction(actionPool()->action(UIActionIndexRT_M_Debug_S_ShowCommandLine));985 m_pRunningOrPaused Actions->addAction(actionPool()->action(UIActionIndexRT_M_Debug_T_Logging));986 m_pRunningOrPaused Actions->addAction(actionPool()->action(UIActionIndexRT_M_Debug_S_GuestControlConsole));984 m_pRunningOrPausedOrStuckActions->addAction(actionPool()->action(UIActionIndexRT_M_Debug)); 985 m_pRunningOrPausedOrStuckActions->addAction(actionPool()->action(UIActionIndexRT_M_Debug_S_ShowStatistics)); 986 m_pRunningOrPausedOrStuckActions->addAction(actionPool()->action(UIActionIndexRT_M_Debug_S_ShowCommandLine)); 987 m_pRunningOrPausedOrStuckActions->addAction(actionPool()->action(UIActionIndexRT_M_Debug_T_Logging)); 988 m_pRunningOrPausedOrStuckActions->addAction(actionPool()->action(UIActionIndexRT_M_Debug_S_GuestControlConsole)); 987 989 #endif /* VBOX_WITH_DEBUGGER_GUI */ 988 989 /* Move actions into running-n-paused-n-stucked actions group: */ 990 m_pRunningOrPausedOrStackedActions->addAction(actionPool()->action(UIActionIndexRT_M_Machine_S_PowerOff)); 990 m_pRunningOrPausedOrStuckActions->addAction(actionPool()->action(UIActionIndexRT_M_Machine_S_PowerOff)); 991 991 } 992 992 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h
r99436 r99561 371 371 QActionGroup *m_pRunningActions; 372 372 QActionGroup *m_pRunningOrPausedActions; 373 QActionGroup *m_pRunningOrPausedOrSt ackedActions;373 QActionGroup *m_pRunningOrPausedOrStuckActions; 374 374 QActionGroup *m_pSharedClipboardActions; 375 375 QActionGroup *m_pDragAndDropActions;
Note:
See TracChangeset
for help on using the changeset viewer.