VirtualBox

Changeset 69667 in vbox for trunk


Ignore:
Timestamp:
Nov 13, 2017 9:49:45 AM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:8694: HiDPI support for VBoxAboutDlg.

File:
1 edited

Legend:

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

    r69500 r69667  
    125125
    126126    /* Load image: */
     127    const int iIconMetric = QApplication::style()->pixelMetric(QStyle::PM_LargeIconSize);
     128    const double dRatio = (double)iIconMetric / 32;
    127129    const QIcon icon = UIIconPool::iconSet(strPath);
    128130    m_size = icon.availableSizes().first();
     131    m_size *= dRatio;
    129132    m_pixmap = icon.pixmap(m_size);
    130133
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