VirtualBox

Changeset 72711 in vbox for trunk


Ignore:
Timestamp:
Jun 27, 2018 6:33:40 PM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:8694: Adjust icons when moving GUI between screen with different DPI: Details pane, additionally to r123240.

File:
1 edited

Legend:

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

    r71452 r72711  
    2929# include "UIIconPool.h"
    3030# include "UIExtraDataManager.h"
     31# include "UIModalWindowManager.h"
    3132
    3233/* COM includes: */
     
    524525            *pLogicalSize = iconSize;
    525526
    526         /* Get pixmap of requested size: */
    527         pixmap = icon.pixmap(iconSize);
     527        /* Get pixmap of requested size (take into account the DPI of the main shown window, if possible): */
     528        if (windowManager().mainWindowShown() && windowManager().mainWindowShown()->windowHandle())
     529            pixmap = icon.pixmap(windowManager().mainWindowShown()->windowHandle(), iconSize);
     530        else
     531            pixmap = icon.pixmap(iconSize);
    528532    }
    529533
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