VirtualBox

Changeset 26213 in vbox


Ignore:
Timestamp:
Feb 3, 2010 5:14:10 PM (15 years ago)
Author:
vboxsync
Message:

FE/Qt4: Make sure guest in fullscreen mode will get the maximum possible resolution according whole screen-geometry.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
2 edited

Legend:

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

    r25901 r26213  
    41674167         * and things, but this is unfortunately not true for the more
    41684168         * complex case of a desktop spanning multiple screens. */
    4169         QRect desktop = QApplication::desktop()->availableGeometry (this);
     4169        QRect desktop = availableGeometry();
    41704170        /* The area taken up by the console window on the desktop,
    41714171         * including window frame, title and menu bar and whatnot. */
     
    42084208}
    42094209
     4210QRect VBoxConsoleView::availableGeometry() const
     4211{
     4212    return mMainWnd->isWindowFullScreen() ?
     4213           QApplication::desktop()->screenGeometry(this) :
     4214           QApplication::desktop()->availableGeometry(this);
     4215}
     4216
    42104217int VBoxConsoleView::contentsWidth() const
    42114218{
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.h

    r25304 r26213  
    262262    void calculateDesktopGeometry();
    263263    void maybeRestrictMinimumSize();
     264    QRect availableGeometry() const;
    264265
    265266    VBoxConsoleWnd *mMainWnd;
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