VirtualBox

Changeset 64621 in vbox for trunk


Ignore:
Timestamp:
Nov 9, 2016 5:55:45 PM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:8636: Some instrumentation for UIDesktopWidgetWatchdog.

File:
1 edited

Legend:

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

    r64447 r64621  
    365365}
    366366
    367 void UIDesktopWidgetWatchdog::sltHandleHostScreenResized(const QRect & /* geometry */)
     367void UIDesktopWidgetWatchdog::sltHandleHostScreenResized(const QRect &geometry)
    368368{
    369369    /* Get the screen: */
     
    374374    const int iHostScreenIndex = qApp->screens().indexOf(pScreen);
    375375    AssertReturnVoid(iHostScreenIndex != -1);
    376 //    printf("UIDesktopWidgetWatchdog::sltHandleHostScreenResized(%d)\n", iHostScreenIndex);
     376    LogRel(("GUI: UIDesktopWidgetWatchdog::sltHandleHostScreenResized: "
     377            "Screen %d is formally resized to: %dx%d x %dx%d\n",
     378            iHostScreenIndex, geometry.x(), geometry.y(),
     379            geometry.width(), geometry.height()));
    377380
    378381# ifdef VBOX_WS_X11
     
    385388}
    386389
    387 void UIDesktopWidgetWatchdog::sltHandleHostScreenWorkAreaResized(const QRect & /* availableGeometry */)
     390void UIDesktopWidgetWatchdog::sltHandleHostScreenWorkAreaResized(const QRect &availableGeometry)
    388391{
    389392    /* Get the screen: */
     
    394397    const int iHostScreenIndex = qApp->screens().indexOf(pScreen);
    395398    AssertReturnVoid(iHostScreenIndex != -1);
    396 //    printf("UIDesktopWidgetWatchdog::sltHandleHostScreenWorkAreaResized(%d)\n", iHostScreenIndex);
     399    LogRel(("GUI: UIDesktopWidgetWatchdog::sltHandleHostScreenWorkAreaResized: "
     400            "Screen %d work area is formally resized to: %dx%d x %dx%d\n",
     401            iHostScreenIndex, availableGeometry.x(), availableGeometry.y(),
     402            availableGeometry.width(), availableGeometry.height()));
    397403
    398404# ifdef VBOX_WS_X11
     
    410416void UIDesktopWidgetWatchdog::sltHandleHostScreenAvailableGeometryCalculated(int iHostScreenIndex, QRect availableGeometry)
    411417{
    412 //    printf("UIDesktopWidgetWatchdog::sltHandleHostScreenAvailableGeometryCalculated(%d): %dx%d x %dx%d\n",
    413 //           iHostScreenIndex, availableGeometry.x(), availableGeometry.y(), availableGeometry.width(), availableGeometry.height());
     418    LogRel(("GUI: UIDesktopWidgetWatchdog::sltHandleHostScreenAvailableGeometryCalculated: "
     419            "Screen %d work area is actually resized to: %dx%d x %dx%d\n",
     420            iHostScreenIndex, availableGeometry.x(), availableGeometry.y(),
     421            availableGeometry.width(), availableGeometry.height()));
    414422
    415423    /* Apply received data: */
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