VirtualBox

Changeset 55938 in vbox for trunk


Ignore:
Timestamp:
May 19, 2015 3:41:56 PM (10 years ago)
Author:
vboxsync
Message:

FE/Qt: 6278: Runtime UI: Mini tool-bar: Enable use of the HiDPI icons.

File:
1 edited

Legend:

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

    r52891 r55938  
    645645void UIMiniToolBar::prepare()
    646646{
     647    /* Determine icon metric: */
     648    const QStyle *pStyle = QApplication::style();
     649    const int iIconMetric = pStyle->pixelMetric(QStyle::PM_SmallIconSize);
     650
    647651    /* Configure toolbar: */
    648     setIconSize(QSize(16, 16));
     652    setIconSize(QSize(iIconMetric, iIconMetric));
    649653
    650654    /* Left margin: */
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