- Timestamp:
- May 18, 2015 5:23:05 PM (10 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIStatusBarIndicator.cpp
r52730 r55917 24 24 # include <QPainter> 25 25 # include <QHBoxLayout> 26 # include <QApplication> 27 # include <QStyle> 26 28 # include <QLabel> 27 29 # ifdef Q_WS_MAC … … 90 92 { 91 93 /* Adjust size-hint: */ 92 m_size = m_size.expandedTo(icon.availableSizes().first()); 94 const QStyle *pStyle = QApplication::style(); 95 const int iIconMetric = pStyle->pixelMetric(QStyle::PM_SmallIconSize); 96 m_size = QSize(iIconMetric, iIconMetric); 93 97 /* Cache passed-icon: */ 94 98 m_icons[iState] = icon; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIStatusBarEditorWindow.cpp
r54529 r55917 125 125 /* Prepare icon for assigned type: */ 126 126 const QIcon icon = gpConverter->toIcon(m_type); 127 m_pixmapSize = icon.availableSizes().first(); 127 const QStyle *pStyle = QApplication::style(); 128 const int iIconMetric = pStyle->pixelMetric(QStyle::PM_SmallIconSize); 129 m_pixmapSize = QSize(iIconMetric, iIconMetric); 128 130 m_pixmap = icon.pixmap(m_pixmapSize); 129 131
Note:
See TracChangeset
for help on using the changeset viewer.