VirtualBox

Changeset 66658 in vbox for trunk


Ignore:
Timestamp:
Apr 24, 2017 5:18:51 PM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6911: Fixing a couple of HiDPI icon issues (in import/export appliance wizards), possible since r115030.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
2 edited

Legend:

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

    r66657 r66658  
    517517                }
    518518            }
    519             else if (iColumn == ApplianceViewSection_ConfigValue &&
    520                      m_enmVSDType == KVirtualSystemDescriptionType_OS)
    521             {
    522                 const QStyle *pStyle = QApplication::style();
    523                 const int iIconMetric = pStyle->pixelMetric(QStyle::PM_SmallIconSize);
    524                 value = vboxGlobal().vmGuestOSTypePixmapDefault(m_strConfigValue).scaledToHeight(iIconMetric, Qt::SmoothTransformation);
    525             }
     519            else if (iColumn == ApplianceViewSection_ConfigValue && m_enmVSDType == KVirtualSystemDescriptionType_OS)
     520                value = vboxGlobal().vmGuestOSTypeIcon(m_strConfigValue);
    526521            break;
    527522        }
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic1.cpp

    r66657 r66658  
    5656        if (machine.GetAccessible())
    5757        {
    58             pixIcon = vboxGlobal().vmGuestOSTypePixmapDefault(machine.GetOSTypeId()).scaled(iIconMetric, iIconMetric, Qt::IgnoreAspectRatio, Qt::SmoothTransformation);
     58            pixIcon = vboxGlobal().vmGuestOSTypePixmapDefault(machine.GetOSTypeId());
    5959            strName = machine.GetName();
    6060            strUuid = machine.GetId();
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