VirtualBox

Ignore:
Timestamp:
Jan 31, 2017 3:32:00 PM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:8636: Runtime UI: Mini-toolbar: A bit of logging for adjusting procedure.

File:
1 edited

Legend:

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

    r65536 r65546  
    667667        case GeometryType_Available:
    668668        {
    669             /* Set appropriate window geometry: */
    670             resize(workingArea.size());
    671             move(workingArea.topLeft());
     669            /* Set appropriate window size: */
     670            const QSize newSize = workingArea.size();
     671            LogRel2(("GUI: UIMiniToolBar::sltAdjust: Resize window to: %dx%d\n",
     672                     newSize.width(), newSize.height()));
     673            resize(newSize);
     674
     675            /* Move window onto required screen: */
     676            const QPoint newPosition = workingArea.topLeft();
     677            LogRel2(("GUI: UIMiniToolBar::sltAdjust: Move window to: %dx%d\n",
     678                     newPosition.x(), newPosition.y()));
     679            move(newPosition);
     680
    672681            break;
    673682        }
     
    675684        {
    676685            /* Map window onto required screen: */
    677             Assert(iHostScreen < qApp->screens().size());
     686            LogRel2(("GUI: UIMiniToolBar::sltAdjust: Map window to screen: %d of: %d\n",
     687                     iHostScreen, qApp->screens().size()));
    678688            windowHandle()->setScreen(qApp->screens().at(iHostScreen));
     689
    679690            /* Set appropriate window size: */
    680             resize(workingArea.size());
     691            const QSize newSize = workingArea.size();
     692            LogRel2(("GUI: UIMiniToolBar::sltAdjust: Resize window to: %dx%d\n",
     693                     newSize.width(), newSize.height()));
     694            resize(newSize);
     695
    681696            break;
    682697        }
     
    694709    }
    695710
    696     /* Set appropriate window geometry: */
    697     resize(workingArea.size());
    698     move(workingArea.topLeft());
     711    /* Set appropriate window size: */
     712    const QSize newSize = workingArea.size();
     713    LogRel(("GUI: UIMiniToolBar::sltAdjust: Resize window to: %dx%d\n",
     714            newSize.width(), newSize.height()));
     715    resize(newSize);
     716
     717    /* Move window onto required screen: */
     718    const QPoint newPosition = workingArea.topLeft();
     719    LogRel(("GUI: UIMiniToolBar::sltAdjust: Move window to: %dx%d\n",
     720            newPosition.x(), newPosition.y()));
     721    move(newPosition);
    699722
    700723    /* Re-apply the full-screen state lost on above move(): */
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