VirtualBox

Changeset 55934 in vbox for trunk


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

FE/Qt: 6278: Selector UI: Snapshot widget: Enable HiDPI icon usage for snapshots tool-bar.

File:
1 edited

Legend:

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

    r55880 r55934  
    389389    m_onlineSnapshotIcon = UIIconPool::iconSet(":/snapshot_online_16px.png");
    390390
     391    /* Determine icon metric: */
     392    const QStyle *pStyle = QApplication::style();
     393    const int iIconMetric = pStyle->pixelMetric(QStyle::PM_SmallIconSize) * 1.375;
     394
    391395    /* ToolBar creation */
    392396    UIToolBar *toolBar = new UIToolBar (this);
    393     toolBar->setIconSize (QSize (22, 22));
     397    toolBar->setIconSize (QSize (iIconMetric, iIconMetric));
    394398    toolBar->setSizePolicy (QSizePolicy::Fixed, QSizePolicy::Fixed);
    395399
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