VirtualBox

Changeset 108984 in vbox


Ignore:
Timestamp:
Apr 15, 2025 2:37:49 PM (5 days ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
168504
Message:

FE/Qt: bugref:10814: VBox Manager / Tool-pane: Make font and icon size common for global and machine tools.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsItem.cpp

    r108983 r108984  
    442442            fnt.setWeight(QFont::Bold);
    443443
    444             /* Make Machine tool font smaller: */
    445             if (itemClass() == UIToolClass_Machine)
    446                 fnt.setPointSize(fnt.pointSize() - 1);
     444            /* Make font a bit smaller: */
     445            fnt.setPointSize(fnt.pointSize() - 1);
    447446
    448447            /* Return font: */
     
    458457void UIToolsItem::updatePixmap()
    459458{
    460     /* Smaller Machine tool icons: */
    461     const int iIconMetric = itemClass() == UIToolClass_Machine
    462                           ? QApplication::style()->pixelMetric(QStyle::PM_SmallIconSize)
    463                           : QApplication::style()->pixelMetric(QStyle::PM_SmallIconSize) * 1.5;
     459    /* Make icons a bit smaller: */
     460    const int iIconMetric = QApplication::style()->pixelMetric(QStyle::PM_SmallIconSize);
    464461
    465462    /* Prepare new pixmap size: */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette