Changeset 55930 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- May 19, 2015 11:10:48 AM (10 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsNetwork.cpp
r52733 r55930 61 61 Ui::UIMachineSettingsNetwork::setupUi(this); 62 62 63 /* Determine icon metric: */ 64 const QStyle *pStyle = QApplication::style(); 65 const int iIconMetric = pStyle->pixelMetric(QStyle::PM_SmallIconSize) * .625; 66 63 67 /* Setup widgets: */ 64 68 m_pAdapterNameCombo->setInsertPolicy(QComboBox::NoInsert); … … 66 70 m_pMACEditor->setMinimumWidthByText(QString().fill('0', 12)); 67 71 m_pMACButton->setIcon(UIIconPool::iconSet(":/refresh_16px.png")); 68 m_pAdvancedArrow->setIconSize(QSize( 10, 10));72 m_pAdvancedArrow->setIconSize(QSize(iIconMetric, iIconMetric)); 69 73 m_pAdvancedArrow->setIconForButtonState(QIArrowButtonSwitch::ButtonState_Collapsed, 70 74 UIIconPool::iconSet(":/arrow_right_10px.png")); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSF.cpp
r55258 r55930 192 192 ":/sf_remove_disabled_16px.png")); 193 193 194 /* Determine icon metric: */ 195 const QStyle *pStyle = QApplication::style(); 196 const int iIconMetric = pStyle->pixelMetric(QStyle::PM_SmallIconSize); 197 194 198 /* Prepare tool-bar: */ 195 m_pFoldersToolBar->setIconSize(QSize( 16, 16));199 m_pFoldersToolBar->setIconSize(QSize(iIconMetric, iIconMetric)); 196 200 m_pFoldersToolBar->setOrientation(Qt::Vertical); 197 201 m_pFoldersToolBar->addAction(mNewAction); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.cpp
r55827 r55930 123 123 nullPixmap); 124 124 125 /* Determine icon metric: */ 126 const QStyle *pStyle = QApplication::style(); 127 const int iIconMetric = pStyle->pixelMetric(QStyle::PM_SmallIconSize); 128 125 129 /* Return pixmap of first available size: */ 126 return icon.pixmap( availableSizes.first());130 return icon.pixmap(QSize(iIconMetric, iIconMetric)); 127 131 } 128 132 … … 1419 1423 case R_IconSize: 1420 1424 { 1421 return 16;1425 return QApplication::style()->pixelMetric(QStyle::PM_SmallIconSize); 1422 1426 } 1423 1427 … … 2025 2029 mTwStorageTree->setCurrentIndex (mStorageModel->root()); 2026 2030 2031 /* Determine icon metric: */ 2032 const QStyle *pStyle = QApplication::style(); 2033 const int iIconMetric = pStyle->pixelMetric(QStyle::PM_SmallIconSize); 2034 2027 2035 /* Storage ToolBar */ 2028 mTbStorageBar->setIconSize (QSize ( 16, 16));2036 mTbStorageBar->setIconSize (QSize (iIconMetric, iIconMetric)); 2029 2037 mTbStorageBar->addAction (mAddAttAction); 2030 2038 mTbStorageBar->addAction (mDelAttAction); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSB.cpp
r55330 r55930 187 187 ":/usb_movedown_disabled_16px.png")); 188 188 189 /* Determine icon metric: */ 190 const QStyle *pStyle = QApplication::style(); 191 const int iIconMetric = pStyle->pixelMetric(QStyle::PM_SmallIconSize); 192 189 193 /* Prepare tool-bar: */ 190 m_pFiltersToolBar->setIconSize(QSize( 16, 16));194 m_pFiltersToolBar->setIconSize(QSize(iIconMetric, iIconMetric)); 191 195 m_pFiltersToolBar->setOrientation(Qt::Vertical); 192 196 m_pFiltersToolBar->addAction(mNewAction); -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPortForwardingTable.cpp
r53328 r55930 595 595 m_pToolBar = new UIToolBar; 596 596 { 597 /* Determine icon metric: */ 598 const QStyle *pStyle = QApplication::style(); 599 const int iIconMetric = pStyle->pixelMetric(QStyle::PM_SmallIconSize); 597 600 /* Configure toolbar: */ 598 m_pToolBar->setIconSize(QSize( 16, 16));601 m_pToolBar->setIconSize(QSize(iIconMetric, iIconMetric)); 599 602 m_pToolBar->setOrientation(Qt::Vertical); 600 603 /* Create 'add' action: */
Note:
See TracChangeset
for help on using the changeset viewer.