VirtualBox

Changeset 55932 in vbox


Ignore:
Timestamp:
May 19, 2015 11:13:30 AM (10 years ago)
Author:
vboxsync
Message:

FE/Qt: 6278: Arrow Splitter: Enable use of the HiDPI icons.

File:
1 edited

Legend:

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

    r52730 r55932  
    241241        AssertPtrReturnVoid(pButtonLayout);
    242242        {
     243            /* Determine icon metric: */
     244            const QStyle *pStyle = QApplication::style();
     245            const int iIconMetric = pStyle->pixelMetric(QStyle::PM_SmallIconSize) * .625;
    243246            /* Configure button-layout: */
    244247            pButtonLayout->setContentsMargins(0, 0, 0, 0);
     
    249252            {
    250253                /* Configure switch-button: */
    251                 m_pSwitchButton->setIconSize(QSize(10, 10));
     254                m_pSwitchButton->setIconSize(QSize(iIconMetric, iIconMetric));
    252255                m_pSwitchButton->setIconForButtonState(QIArrowButtonSwitch::ButtonState_Collapsed,
    253256                                                       UIIconPool::iconSet(":/arrow_right_10px.png"));
     
    266269            {
    267270                /* Configure back-button: */
    268                 m_pBackButton->setIconSize(QSize(10, 10));
     271                m_pBackButton->setIconSize(QSize(iIconMetric, iIconMetric));
    269272                m_pBackButton->setIcon(UIIconPool::iconSet(":/arrow_left_10px.png"));
    270273                connect(m_pBackButton, SIGNAL(sigClicked()), this, SLOT(sltSwitchDetailsPageBack()));
     
    277280            {
    278281                /* Configure next-button: */
    279                 m_pNextButton->setIconSize(QSize(10, 10));
     282                m_pNextButton->setIconSize(QSize(iIconMetric, iIconMetric));
    280283                m_pNextButton->setIcon(UIIconPool::iconSet(":/arrow_right_10px.png"));
    281284                connect(m_pNextButton, SIGNAL(sigClicked()), this, SLOT(sltSwitchDetailsPageNext()));
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