Changeset 97972 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jan 4, 2023 8:19:40 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPoolRuntime.cpp
r97681 r97972 4044 4044 /* Get corresponding screen index: */ 4045 4045 const int iGuestScreenIndex = pMenu->property("Guest Screen Index").toInt(); 4046 const bool fScreenEnabled = m_mapGuestScreenIsVisible.value(iGuestScreenIndex); 4047 4048 /* For non-primary screens: */ 4049 if (iGuestScreenIndex > 0) 4050 { 4051 /* Create 'toggle' action: */ 4052 QAction *pToggleAction = pMenu->addAction(QApplication::translate("UIActionPool", "Enable", "Virtual Screen"), 4053 this, SLOT(sltHandleActionTriggerViewScreenToggle())); 4054 if (pToggleAction) 4055 { 4056 /* Configure 'toggle' action: */ 4057 pToggleAction->setEnabled(m_fGuestSupportsGraphics); 4058 pToggleAction->setProperty("Guest Screen Index", iGuestScreenIndex); 4059 pToggleAction->setCheckable(true); 4060 pToggleAction->setChecked(fScreenEnabled); 4061 /* Add separator: */ 4062 pMenu->addSeparator(); 4063 } 4064 } 4046 4065 4047 4066 /* Create exclusive 'remap' action-group: */ … … 4061 4080 { 4062 4081 /* Configure exclusive 'remap' action: */ 4063 pAction->set Checkable(true);4082 pAction->setEnabled(m_fGuestSupportsGraphics && fScreenEnabled); 4064 4083 pAction->setProperty("Guest Screen Index", iGuestScreenIndex); 4065 4084 pAction->setProperty("Host Screen Index", iHostScreenIndex); 4085 pAction->setCheckable(true); 4066 4086 if ( m_mapHostScreenForGuestScreen.contains(iGuestScreenIndex) 4067 4087 && m_mapHostScreenForGuestScreen.value(iGuestScreenIndex) == iHostScreenIndex)
Note:
See TracChangeset
for help on using the changeset viewer.