VirtualBox

Ignore:
Timestamp:
Jul 23, 2012 9:27:05 AM (13 years ago)
Author:
vboxsync
Message:

FE/Qt: attempt to fix auto-resize in the face of host resolution changes.

File:
1 edited

Legend:

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

    r42248 r42318  
    181181    QString strKey = makeExtraDataKeyPerMonitor(GUI_LastGuestSizeHintWasFullscreen);
    182182    machine.SetExtraData(strKey, isFullscreenOrSeamless() ? "true" : "");
     183}
     184
     185void UIMachineView::sltDesktopResized()
     186{
     187    setMaxGuestSize();
    183188}
    184189
     
    494499}
    495500
     501void UIMachineView::prepareConnections()
     502{
     503    /* Desktop resolution change (e.g. monitor hotplug): */
     504    connect(QApplication::desktop(), SIGNAL(resized(int)), this,
     505            SLOT(sltDesktopResized()));
     506}
     507
    496508void UIMachineView::prepareConsoleConnections()
    497509{
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