- Timestamp:
- Oct 19, 2023 11:16:25 AM (12 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/globals
- Files:
-
- 2 edited
-
UIIconPool.cpp (modified) (2 diffs)
-
UIIconPool.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIIconPool.cpp
r101500 r101508 722 722 } 723 723 724 //overlayArchitectureTextOnPixmap("A64", pixmap);724 overlayArchitectureTextOnPixmap(determineOSArchString(strOSTypeID), pixmap); 725 725 /* Return pixmap: */ 726 726 return pixmap; 727 } 728 729 QString UIIconPoolGeneral::determineOSArchString(const QString &osTypeId) const 730 { 731 if (osTypeId.contains("_x64") || osTypeId.contains("_64")) 732 return QString("x64"); 733 else if (osTypeId.contains("arm32")) 734 return QString("A32"); 735 else if (osTypeId.contains("arm64")) 736 return QString("A64"); 737 return QString("32"); 727 738 } 728 739 … … 757 768 QFont font = qApp->font(); 758 769 /* Set font' size wrt. @p pixmap height: */ 759 font.setPixelSize(0.3 * pixmap.rect().height());770 font.setPixelSize(0.31 * pixmap.rect().height()); 760 771 font.setBold(true); 761 772 QPainter painter(&pixmap); -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIIconPool.h
r101500 r101508 166 166 /** Overlay text @p strArch on top of @p pixmap. */ 167 167 void overlayArchitectureTextOnPixmap(const QString &strArch, QPixmap &pixmap) const; 168 168 /** Returns the architecture text we overlay on guest OS type id icon.*/ 169 QString determineOSArchString(const QString &osTypeId) const; 169 170 /** Holds the singleton instance. */ 170 171 static UIIconPoolGeneral *s_pInstance;
Note:
See TracChangeset
for help on using the changeset viewer.

