VirtualBox

Changeset 69701 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 15, 2017 12:09:27 PM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:8694: Selector UI: HiDPI support fix for graphics code (chooser/details): Take into account device-pixel ratio of Retina screens (s.a. r119003).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItemGroup.cpp

    r69639 r69701  
    413413    m_groupsPixmap = UIIconPool::iconSet(":/group_abstract_16px.png").pixmap(iIconMetric, iIconMetric);
    414414    m_machinesPixmap = UIIconPool::iconSet(":/machine_abstract_16px.png").pixmap(iIconMetric, iIconMetric);
    415     m_pixmapSizeGroups = m_groupsPixmap.size();
    416     m_pixmapSizeMachines = m_machinesPixmap.size();
     415    m_pixmapSizeGroups = m_groupsPixmap.size() / m_groupsPixmap.devicePixelRatio();
     416    m_pixmapSizeMachines = m_machinesPixmap.size() / m_machinesPixmap.devicePixelRatio();
    417417    m_minimumHeaderSize = QSize(0, 0);
    418418
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