VirtualBox

Ignore:
Timestamp:
Jan 4, 2023 8:19:40 AM (2 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10342: Providing user with possibility to manually toggle auxiliary guest screens on/off for full-screen/seamless modes; That actually means syncing functionality with normal/scale modes where this possibility existed for years.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPoolRuntime.cpp

    r97681 r97972  
    40444044    /* Get corresponding screen index: */
    40454045    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    }
    40464065
    40474066    /* Create exclusive 'remap' action-group: */
     
    40614080            {
    40624081                /* Configure exclusive 'remap' action: */
    4063                 pAction->setCheckable(true);
     4082                pAction->setEnabled(m_fGuestSupportsGraphics && fScreenEnabled);
    40644083                pAction->setProperty("Guest Screen Index", iGuestScreenIndex);
    40654084                pAction->setProperty("Host Screen Index", iHostScreenIndex);
     4085                pAction->setCheckable(true);
    40664086                if (   m_mapHostScreenForGuestScreen.contains(iGuestScreenIndex)
    40674087                    && m_mapHostScreenForGuestScreen.value(iGuestScreenIndex) == iHostScreenIndex)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette