Changeset 70543 in vbox for trunk/src/VBox
- Timestamp:
- Jan 11, 2018 3:48:54 PM (7 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/selector
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp
r70185 r70543 1850 1850 { 1851 1851 /* Configure toolbar: */ 1852 const int iIconMetric = QApplication::style()->pixelMetric(QStyle::PM_LargeIconSize); 1853 m_pToolBar->setIconSize(QSize(iIconMetric, iIconMetric)); 1852 1854 m_pToolBar->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed); 1853 1855 m_pToolBar->setContextMenuPolicy(Qt::CustomContextMenu); 1854 1856 m_pToolBar->setToolButtonStyle(Qt::ToolButtonTextUnderIcon); 1855 /// @todo Get rid of hard-coded stuff:1856 const QSize toolBarIconSize = m_pToolBar->iconSize();1857 if (toolBarIconSize.width() < 32 || toolBarIconSize.height() < 32)1858 m_pToolBar->setIconSize(QSize(32, 32));1859 1857 1860 1858 /* Add main actions block: */ -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIToolsToolbar.cpp
r70185 r70543 25 25 # include <QHBoxLayout> 26 26 # include <QLabel> 27 # include <QStyle> 27 28 # include <QToolButton> 28 29 … … 275 276 { 276 277 /* Configure toolbar: */ 278 const int iIconMetric = QApplication::style()->pixelMetric(QStyle::PM_LargeIconSize); 279 m_pToolBar->setIconSize(QSize(iIconMetric, iIconMetric)); 277 280 m_pToolBar->setToolButtonStyle(Qt::ToolButtonTextUnderIcon); 278 /// @todo Get rid of hard-coded stuff:279 const QSize toolBarIconSize = m_pToolBar->iconSize();280 if (toolBarIconSize.width() < 32 || toolBarIconSize.height() < 32)281 m_pToolBar->setIconSize(QSize(32, 32));282 281 283 282 /* Add actions: */
Note:
See TracChangeset
for help on using the changeset viewer.