VirtualBox

Changeset 48832 in vbox for trunk


Ignore:
Timestamp:
Oct 3, 2013 1:04:18 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
89500
Message:

FE/Qt: Runtime UI: Fullscreen/seamless modes: Handle desktop full/available geometry changes.

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

Legend:

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

    r48801 r48832  
    544544}
    545545
     546void UIMachineLogic::sltHostScreenResized(int /*iHostScreenNumber*/)
     547{
     548    /* Deliver event to all machine-windows: */
     549    foreach (UIMachineWindow *pMachineWindow, machineWindows())
     550        pMachineWindow->handleScreenResize();
     551}
     552
    546553UIMachineLogic::UIMachineLogic(QObject *pParent, UISession *pSession, UIVisualStateType visualStateType)
    547554    : QIWithRetranslateUI3<QObject>(pParent)
     
    714721    connect(uisession(), SIGNAL(sigHostScreenCountChanged(int)),
    715722            this, SLOT(sltHostScreenCountChanged(int)));
     723
     724    /* Host-screen-resize updaters: */
     725    connect(uisession(), SIGNAL(sigHostScreenFullGeometryResized(int)),
     726            this, SLOT(sltHostScreenResized(int)));
     727    connect(uisession(), SIGNAL(sigHostScreenAvailableGeometryResized(int)),
     728            this, SLOT(sltHostScreenResized(int)));
    716729}
    717730
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h

    r48519 r48832  
    113113    /* Qt callback handler: */
    114114    virtual void sltHostScreenCountChanged(int cHostScreenCount);
     115    virtual void sltHostScreenResized(int iHostScreenNumber);
    115116
    116117protected:
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.cpp

    r48706 r48832  
    439439}
    440440
     441void UIMachineWindow::handleScreenResize()
     442{
     443    showInNecessaryMode();
     444}
     445
    441446void UIMachineWindow::updateAppearanceOf(int iElement)
    442447{
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.h

    r48705 r48832  
    111111    /* Visibility stuff: */
    112112    void handleScreenCountChange();
     113    void handleScreenResize();
    113114
    114115    /* Update stuff: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp

    r48515 r48832  
    875875    connect(QApplication::desktop(), SIGNAL(screenCountChanged(int)),
    876876            this, SIGNAL(sigHostScreenCountChanged(int)));
     877
     878    connect(QApplication::desktop(), SIGNAL(resized(int)),
     879            this, SIGNAL(sigHostScreenFullGeometryResized(int)));
     880    connect(QApplication::desktop(), SIGNAL(workAreaResized(int)),
     881            this, SIGNAL(sigHostScreenAvailableGeometryResized(int)));
    877882}
    878883
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h

    r48515 r48832  
    206206    /* Qt callback signal: */
    207207    void sigHostScreenCountChanged(int cHostScreenCount);
     208    void sigHostScreenFullGeometryResized(int iHostScreenNumber);
     209    void sigHostScreenAvailableGeometryResized(int iHostScreenNumber);
    208210
    209211    /* Session signals: */
Note: See TracChangeset for help on using the changeset viewer.

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