VirtualBox

Changeset 44848 in vbox


Ignore:
Timestamp:
Feb 27, 2013 6:58:32 PM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: Multi-screen support: Rebuild multi-screen layout on guest-monitor-change event.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp

    r44846 r44848  
    117117}
    118118#endif /* Q_WS_MAC */
     119
     120void UIMachineLogicFullscreen::sltGuestMonitorChange(KGuestMonitorChangedEventType changeType, ulong uScreenId, QRect screenGeo)
     121{
     122    /* Update multi-screen layout before any window update: */
     123    if (changeType == KGuestMonitorChangedEventType_Enabled ||
     124        changeType == KGuestMonitorChangedEventType_Disabled)
     125        m_pScreenLayout->rebuild();
     126
     127    /* Call to base-class: */
     128    UIMachineLogic::sltGuestMonitorChange(changeType, uScreenId, screenGeo);
     129}
    119130
    120131void UIMachineLogicFullscreen::prepareActionGroups()
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.h

    r44825 r44848  
    5252    void sltScreenLayoutChanged();
    5353#endif /* Q_WS_MAC */
     54    void sltGuestMonitorChange(KGuestMonitorChangedEventType changeType, ulong uScreenId, QRect screenGeo);
    5455
    5556private:
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.cpp

    r44846 r44848  
    9292}
    9393
     94void UIMachineLogicSeamless::sltGuestMonitorChange(KGuestMonitorChangedEventType changeType, ulong uScreenId, QRect screenGeo)
     95{
     96    /* Update multi-screen layout before any window update: */
     97    if (changeType == KGuestMonitorChangedEventType_Enabled ||
     98        changeType == KGuestMonitorChangedEventType_Disabled)
     99        m_pScreenLayout->rebuild();
     100
     101    /* Call to base-class: */
     102    UIMachineLogic::sltGuestMonitorChange(changeType, uScreenId, screenGeo);
     103}
     104
    94105void UIMachineLogicSeamless::prepareActionGroups()
    95106{
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.h

    r44825 r44848  
    4343    int hostScreenForGuestScreen(int iScreenId) const;
    4444
     45private slots:
     46
     47    void sltGuestMonitorChange(KGuestMonitorChangedEventType changeType, ulong uScreenId, QRect screenGeo);
     48
    4549private:
    4650
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