VirtualBox

儲存庫 vbox 的更動 62914


忽略:
時間撮記:
2016-8-3 下午01:41:44 (8 年 以前)
作者:
vboxsync
訊息:

FE/Qt: bugref:8505: X11: Runtime UI: Restore the cached window geometries when available working area changed.

位置:
trunk/src/VBox/Frontends/VirtualBox/src/runtime
檔案:
修改 4 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineLogicNormal.cpp

    r62493 r62914  
    251251}
    252252
     253void UIMachineLogicNormal::sltHostScreenAvailableAreaChange()
     254{
     255#if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000
     256    /* Make sure all machine-window(s) have previous but normalized geometry: */
     257    foreach (UIMachineWindow *pMachineWindow, machineWindows())
     258        pMachineWindow->restoreCachedGeometry();
     259#endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000 */
     260
     261    /* Call to base-class: */
     262    UIMachineLogic::sltHostScreenAvailableAreaChange();
     263}
     264
    253265void UIMachineLogicNormal::prepareActionConnections()
    254266{
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineLogicNormal.h

    r62493 r62914  
    6969    void sltHandleActionTriggerViewScreenResize(int iIndex, const QSize &size);
    7070
     71    /** Handles host-screen available-area change. */
     72    virtual void sltHostScreenAvailableAreaChange() /* override */;
     73
    7174private:
    7275
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineLogicScale.cpp

    r62493 r62914  
    7575#endif /* !VBOX_WS_MAC */
    7676
     77void UIMachineLogicScale::sltHostScreenAvailableAreaChange()
     78{
     79#if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000
     80    /* Make sure all machine-window(s) have previous but normalized geometry: */
     81    foreach (UIMachineWindow *pMachineWindow, machineWindows())
     82        pMachineWindow->restoreCachedGeometry();
     83#endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000 */
     84
     85    /* Call to base-class: */
     86    UIMachineLogic::sltHostScreenAvailableAreaChange();
     87}
     88
    7789void UIMachineLogicScale::prepareActionGroups()
    7890{
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineLogicScale.h

    r62493 r62914  
    3838    virtual Qt::WindowFlags windowFlags(ulong uScreenId) const { Q_UNUSED(uScreenId); return Qt::Window; }
    3939
    40 #ifndef RT_OS_DARWIN
    4140private slots:
    4241
     42#ifndef RT_OS_DARWIN
    4343    /** Invokes popup-menu. */
    4444    void sltInvokePopupMenu();
    4545#endif /* !RT_OS_DARWIN */
     46
     47    /** Handles host-screen available-area change. */
     48    virtual void sltHostScreenAvailableAreaChange() /* override */;
    4649
    4750private:
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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