Changeset 55914 in vbox
- Timestamp:
- May 18, 2015 4:46:37 PM (10 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIIconPool.cpp
r55877 r55914 379 379 nullPixmap); 380 380 381 /* Determine desired icon size: */ 382 const QStyle *pStyle = QApplication::style(); 383 const int iIconMetric = pStyle->pixelMetric(QStyle::PM_LargeIconSize); 384 const QSize iconSize = QSize(iIconMetric, iIconMetric); 385 381 386 /* Pass up logical size if necessary: */ 382 387 if (pLogicalSize) 383 *pLogicalSize = availableSizes.first();388 *pLogicalSize = iconSize; 384 389 385 390 /* Return pixmap of first available size: */ 386 return icon.pixmap( availableSizes.first());387 } 388 391 return icon.pixmap(iconSize); 392 } 393 -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItemMachine.cpp
r55417 r55914 239 239 void UIGChooserItemMachine::updateStatePixmap() 240 240 { 241 /* Determine the icon metric: */ 242 const QStyle *pStyle = QApplication::style(); 243 const int iIconMetric = pStyle->pixelMetric(QStyle::PM_SmallIconSize); 241 244 /* Get new state-pixmap and state-pixmap size: */ 242 245 const QIcon stateIcon = machineStateIcon(); 243 246 AssertReturnVoid(!stateIcon.isNull()); 244 const QSize statePixmapSize = stateIcon.availableSizes().first();247 const QSize statePixmapSize = QSize(iIconMetric, iIconMetric); 245 248 const QPixmap statePixmap = stateIcon.pixmap(statePixmapSize); 246 249 /* Update linked values: */
Note:
See TracChangeset
for help on using the changeset viewer.