Changeset 96802 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Sep 20, 2022 10:00:40 AM (2 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendGlobal.cpp
r96407 r96802 1067 1067 case UIExtraDataMetaDefs::DetailsElementOptionTypeSystem_BootOrder: strResult = QApplication::translate("UICommon", "Boot Order"); break; 1068 1068 case UIExtraDataMetaDefs::DetailsElementOptionTypeSystem_ChipsetType: strResult = QApplication::translate("UICommon", "Chipset Type"); break; 1069 case UIExtraDataMetaDefs::DetailsElementOptionTypeSystem_TpmType: strResult = QApplication::translate("UICommon", "TPM Type"); break; 1069 1070 case UIExtraDataMetaDefs::DetailsElementOptionTypeSystem_Firmware: strResult = QApplication::translate("UICommon", "Firmware"); break; 1070 1071 case UIExtraDataMetaDefs::DetailsElementOptionTypeSystem_Acceleration: strResult = QApplication::translate("UICommon", "Acceleration"); break; … … 1089 1090 case UIExtraDataMetaDefs::DetailsElementOptionTypeSystem_BootOrder: strResult = "BootOrder"; break; 1090 1091 case UIExtraDataMetaDefs::DetailsElementOptionTypeSystem_ChipsetType: strResult = "ChipsetType"; break; 1092 case UIExtraDataMetaDefs::DetailsElementOptionTypeSystem_TpmType: strResult = "TPMType"; break; 1091 1093 case UIExtraDataMetaDefs::DetailsElementOptionTypeSystem_Firmware: strResult = "Firmware"; break; 1092 1094 case UIExtraDataMetaDefs::DetailsElementOptionTypeSystem_Acceleration: strResult = "Acceleration"; break; … … 1114 1116 if (strDetailsElementOptionTypeSystem.compare("ChipsetType", Qt::CaseInsensitive) == 0) 1115 1117 return UIExtraDataMetaDefs::DetailsElementOptionTypeSystem_ChipsetType; 1118 if (strDetailsElementOptionTypeSystem.compare("TPMType", Qt::CaseInsensitive) == 0) 1119 return UIExtraDataMetaDefs::DetailsElementOptionTypeSystem_TpmType; 1116 1120 if (strDetailsElementOptionTypeSystem.compare("Firmware", Qt::CaseInsensitive) == 0) 1117 1121 return UIExtraDataMetaDefs::DetailsElementOptionTypeSystem_Firmware; -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.h
r96407 r96802 715 715 DetailsElementOptionTypeSystem_BootOrder = RT_BIT(3), 716 716 DetailsElementOptionTypeSystem_ChipsetType = RT_BIT(4), 717 DetailsElementOptionTypeSystem_Firmware = RT_BIT(5), 718 DetailsElementOptionTypeSystem_Acceleration = RT_BIT(6), 717 DetailsElementOptionTypeSystem_TpmType = RT_BIT(5), 718 DetailsElementOptionTypeSystem_Firmware = RT_BIT(6), 719 DetailsElementOptionTypeSystem_Acceleration = RT_BIT(7), 719 720 DetailsElementOptionTypeSystem_Default = 0xFFFF 720 721 }; -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDetailsGenerator.cpp
r96407 r96802 61 61 #include "CStringFormValue.h" 62 62 #include "CSystemProperties.h" 63 #include "CTrustedPlatformModule.h" 63 64 #include "CUSBController.h" 64 65 #include "CUSBDeviceFilter.h" … … 301 302 table << UITextTableLine(QApplication::translate("UIDetails", "Chipset Type", "details (system)"), 302 303 gpConverter->toString(enmChipsetType)); 304 } 305 306 /* TPM type: */ 307 if (fOptions & UIExtraDataMetaDefs::DetailsElementOptionTypeSystem_TpmType) 308 { 309 CTrustedPlatformModule comModule = comMachine.GetTrustedPlatformModule(); 310 const KTpmType enmTpmType = comModule.GetType(); 311 if (enmTpmType != KTpmType_None) 312 table << UITextTableLine(QApplication::translate("UIDetails", "TPM Type", "details (system)"), 313 gpConverter->toString(enmTpmType)); 303 314 } 304 315
Note:
See TracChangeset
for help on using the changeset viewer.