VirtualBox

Changeset 63173 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 8, 2016 2:46:46 PM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:8422: Desktop-widget watchdog rework (part 13): Extend interface with few more required wrappers to existing methods.

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

Legend:

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

    r63044 r63173  
    146146}
    147147
     148int UIDesktopWidgetWatchdog::overallDesktopWidth() const
     149{
     150    /* Redirect call to desktop-widget: */
     151    return QApplication::desktop()->width();
     152}
     153
     154int UIDesktopWidgetWatchdog::overallDesktopHeight() const
     155{
     156    /* Redirect call to desktop-widget: */
     157    return QApplication::desktop()->height();
     158}
     159
    148160int UIDesktopWidgetWatchdog::screenCount() const
    149161{
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDesktopWidgetWatchdog.h

    r63044 r63173  
    6363    /** Destroys the static instance of the desktop-widget watchdog. */
    6464    static void destroy();
     65
     66    /** Returns overall desktop width. */
     67    int overallDesktopWidth() const;
     68    /** Returns overall desktop height. */
     69    int overallDesktopHeight() const;
    6570
    6671    /** Returns the number of host-screens currently available on the system. */
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