VirtualBox

Changeset 55928 in vbox for trunk


Ignore:
Timestamp:
May 19, 2015 10:23:41 AM (10 years ago)
Author:
vboxsync
Message:

FE/Qt: 6278: Global Settings dialog: Enable use of the HiDPI icons.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsExtension.cpp

    r52730 r55928  
    106106            this, SLOT(sltShowContextMenu(const QPoint&)));
    107107
     108    /* Determine icon metric: */
     109    const QStyle *pStyle = QApplication::style();
     110    const int iIconMetric = pStyle->pixelMetric(QStyle::PM_SmallIconSize);
     111
    108112    /* Setup tool-bar: */
    109     m_pPackagesToolbar->setIconSize(QSize(16, 16));
     113    m_pPackagesToolbar->setIconSize(QSize(iIconMetric, iIconMetric));
    110114    m_pPackagesToolbar->setOrientation(Qt::Vertical);
    111115    m_pActionAdd = m_pPackagesToolbar->addAction(UIIconPool::iconSet(":/extension_pack_install_16px.png",
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetwork.cpp

    r53285 r55928  
    456456    }
    457457
     458    /* Determine icon metric: */
     459    const QStyle *pStyle = QApplication::style();
     460    const int iIconMetric = pStyle->pixelMetric(QStyle::PM_SmallIconSize);
     461
    458462    /* Prepare NAT network toolbar: */
    459463    {
    460         m_pToolbarNetworkNAT->setIconSize(QSize(16, 16));
     464        m_pToolbarNetworkNAT->setIconSize(QSize(iIconMetric, iIconMetric));
    461465        m_pToolbarNetworkNAT->setOrientation(Qt::Vertical);
    462466        m_pToolbarNetworkNAT->addAction(m_pActionAddNetworkNAT);
     
    466470    /* Prepare Host network toolbar: */
    467471    {
    468         m_pToolbarNetworkHost->setIconSize(QSize(16, 16));
     472        m_pToolbarNetworkHost->setIconSize(QSize(iIconMetric, iIconMetric));
    469473        m_pToolbarNetworkHost->setOrientation(Qt::Vertical);
    470474        m_pToolbarNetworkHost->addAction(m_pActionAddNetworkHost);
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