Changeset 105422 in vbox
- Timestamp:
- Jul 20, 2024 2:52:47 PM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Debugger/VBoxDbgStatsQt.cpp
r105022 r105422 40 40 #include <QDialog> 41 41 #include <QDialogButtonBox> 42 #include <QFont> 43 #include <QFontDatabase> 42 44 #include <QGroupBox> 43 45 #include <QGridLayout> … … 279 281 QHash<QString, VBoxGuiStatsFilterData *> m_FilterHash; 280 282 283 /** The font to use for values. */ 284 QFont m_ValueFont; 285 281 286 public: 282 287 /** … … 1069 1074 */ 1070 1075 loadFilterConfig(a_pszConfig); 1076 1077 /* 1078 * Font config. 1079 */ 1080 m_ValueFont = QFontDatabase::systemFont(QFontDatabase::FixedFont); 1081 m_ValueFont.setStyleStrategy(QFont::PreferAntialias); 1082 m_ValueFont.setStretch(QFont::SemiCondensed); 1071 1083 } 1072 1084 … … 2972 2984 case 0: 2973 2985 case 1: 2974 return QVariant();2986 return (int)(Qt::AlignLeft | Qt::AlignVCenter); 2975 2987 case 2: 2976 2988 case 3: … … 2981 2993 return (int)(Qt::AlignRight | Qt::AlignVCenter); 2982 2994 case 8: 2995 return (int)(Qt::AlignLeft | Qt::AlignVCenter); 2996 default: 2997 AssertCompile(DBGGUI_STATS_COLUMNS == 9); 2998 return QVariant(); /* bug */ 2999 } 3000 else if (a_eRole == Qt::FontRole) 3001 switch (iCol) 3002 { 3003 case 0: 3004 case 1: 3005 return QVariant(); 3006 case 2: 3007 case 3: 3008 case 4: 3009 case 5: 3010 case 6: 3011 case 7: 3012 return QFont(m_ValueFont); 3013 case 8: 2983 3014 return QVariant(); 2984 3015 default: … … 2986 3017 return QVariant(); /* bug */ 2987 3018 } 3019 2988 3020 return QVariant(); 2989 3021 }
Note:
See TracChangeset
for help on using the changeset viewer.