Changeset 43779 in vbox
- Timestamp:
- Oct 31, 2012 10:22:48 AM (12 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItemGroup.cpp
r43778 r43779 327 327 case GroupItemData_MajorSpacing: return 10; 328 328 case GroupItemData_MinorSpacing: return 3; 329 /* Pixmaps: */330 case GroupItemData_GroupPixmap: return UIIconPool::iconSet(":/nw_16px.png");331 case GroupItemData_MachinePixmap: return UIIconPool::iconSet(":/machine_16px.png");332 329 /* Fonts: */ 333 330 case GroupItemData_NameFont: … … 409 406 } 410 407 case GroupItemData_GroupPixmapSize: 411 return isMainRoot() ? QSize F(0, 0) : data(GroupItemData_GroupPixmap).value<QIcon>().availableSizes().at(0);408 return isMainRoot() ? QSize(0, 0) : m_groupsPixmap.size(); 412 409 case GroupItemData_MachinePixmapSize: 413 return isMainRoot() ? QSize F(0, 0) : data(GroupItemData_MachinePixmap).value<QIcon>().availableSizes().at(0);410 return isMainRoot() ? QSize(0, 0) : m_machinesPixmap.size(); 414 411 case GroupItemData_GroupCountTextSize: 415 412 { … … 498 495 m_iCornerRadius = 10; 499 496 m_iBlackoutDarkness = 110; 497 m_groupsPixmap = QPixmap(":/nw_16px.png"); 498 m_machinesPixmap = QPixmap(":/machine_16px.png"); 500 499 501 500 /* Non root item only: */ … … 1518 1517 QString strGroupCountText = data(GroupItemData_GroupCountText).toString(); 1519 1518 QString strMachineCountText = data(GroupItemData_MachineCountText).toString(); 1520 QPixmap groupPixmap = data(GroupItemData_GroupPixmap).value<QIcon>().pixmap(groupPixmapSize);1521 QPixmap machinePixmap = data(GroupItemData_MachinePixmap).value<QIcon>().pixmap(machinePixmapSize);1522 1519 1523 1520 /* Indent: */ … … 1553 1550 QRect(QPoint(iMachinePixmapX, iMachinePixmapY), machinePixmapSize), 1554 1551 /* Pixmap to paint: */ 1555 m achinePixmap);1552 m_machinesPixmap); 1556 1553 } 1557 1554 … … 1583 1580 QRect(QPoint(iGroupPixmapX, iGroupPixmapY), groupPixmapSize), 1584 1581 /* Pixmap to paint: */ 1585 groupPixmap);1582 m_groupsPixmap); 1586 1583 } 1587 1584 } -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItemGroup.h
r43778 r43779 22 22 /* Qt includes: */ 23 23 #include <QWidget> 24 #include <QPixmap> 24 25 25 26 /* GUI includes: */ … … 104 105 GroupItemData_MajorSpacing, 105 106 GroupItemData_MinorSpacing, 106 /* Pixmaps: */107 GroupItemData_GroupPixmap,108 GroupItemData_MachinePixmap,109 107 /* Fonts: */ 110 108 GroupItemData_NameFont, … … 209 207 bool m_fMainRoot; 210 208 int m_iBlackoutDarkness; 209 QPixmap m_groupsPixmap; 210 QPixmap m_machinesPixmap; 211 211 }; 212 212
Note:
See TracChangeset
for help on using the changeset viewer.