- Timestamp:
- May 19, 2015 10:23:41 AM (10 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/settings/global
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsExtension.cpp
r52730 r55928 106 106 this, SLOT(sltShowContextMenu(const QPoint&))); 107 107 108 /* Determine icon metric: */ 109 const QStyle *pStyle = QApplication::style(); 110 const int iIconMetric = pStyle->pixelMetric(QStyle::PM_SmallIconSize); 111 108 112 /* Setup tool-bar: */ 109 m_pPackagesToolbar->setIconSize(QSize( 16, 16));113 m_pPackagesToolbar->setIconSize(QSize(iIconMetric, iIconMetric)); 110 114 m_pPackagesToolbar->setOrientation(Qt::Vertical); 111 115 m_pActionAdd = m_pPackagesToolbar->addAction(UIIconPool::iconSet(":/extension_pack_install_16px.png", -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetwork.cpp
r53285 r55928 456 456 } 457 457 458 /* Determine icon metric: */ 459 const QStyle *pStyle = QApplication::style(); 460 const int iIconMetric = pStyle->pixelMetric(QStyle::PM_SmallIconSize); 461 458 462 /* Prepare NAT network toolbar: */ 459 463 { 460 m_pToolbarNetworkNAT->setIconSize(QSize( 16, 16));464 m_pToolbarNetworkNAT->setIconSize(QSize(iIconMetric, iIconMetric)); 461 465 m_pToolbarNetworkNAT->setOrientation(Qt::Vertical); 462 466 m_pToolbarNetworkNAT->addAction(m_pActionAddNetworkNAT); … … 466 470 /* Prepare Host network toolbar: */ 467 471 { 468 m_pToolbarNetworkHost->setIconSize(QSize( 16, 16));472 m_pToolbarNetworkHost->setIconSize(QSize(iIconMetric, iIconMetric)); 469 473 m_pToolbarNetworkHost->setOrientation(Qt::Vertical); 470 474 m_pToolbarNetworkHost->addAction(m_pActionAddNetworkHost);
Note:
See TracChangeset
for help on using the changeset viewer.