Changeset 101264 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Sep 26, 2023 10:51:10 AM (16 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/settings
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVideoMemoryEditor.cpp
r101263 r101264 45 45 : UIEditor(pParent) 46 46 , m_iValue(0) 47 , m_guestOSType(UIGuestOSTypeII())48 47 , m_cGuestScreenCount(1) 49 48 , m_enmGraphicsControllerType(KGraphicsControllerType_Null) … … 85 84 } 86 85 87 void UIVideoMemoryEditor::setGuestOSType (const UIGuestOSTypeII &guestOSType)88 { 89 /* Update cached value and 90 * requirements if value has changed: */ 91 if (m_ guestOSType != guestOSType)86 void UIVideoMemoryEditor::setGuestOSTypeId(const QString &strGuestOSTypeId) 87 { 88 /* Update cached value and 89 * requirements if value has changed: */ 90 if (m_strGuestOSTypeId != strGuestOSTypeId) 92 91 { 93 92 /* Remember new guest OS type: */ 94 m_ guestOSType = guestOSType;93 m_strGuestOSTypeId = strGuestOSTypeId; 95 94 96 95 /* Update requirements: */ … … 316 315 { 317 316 /* Make sure guest OS type is set: */ 318 if ( !m_guestOSType.isOk())317 if (m_strGuestOSTypeId.isEmpty()) 319 318 return; 320 319 … … 323 322 324 323 /* Get monitors count and recommended VRAM: */ 325 int iNeedMBytes = UICommon::requiredVideoMemory(m_guestOSType.getId(), m_cGuestScreenCount) / _1M; 324 int iNeedMBytes = UICommon::requiredVideoMemory(m_strGuestOSTypeId, m_cGuestScreenCount) / _1M; 325 326 326 /* Adjust visible maximum VRAM to be no less than 128MB (if possible): */ 327 327 if (m_iMaxVRAMVisible < 128 && m_iMaxVRAM >= 128) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVideoMemoryEditor.h
r101263 r101264 34 34 /* GUI includes: */ 35 35 #include "UIEditor.h" 36 #include "UIGuestOSTypeII.h"37 36 38 37 /* COM includes: */ … … 66 65 67 66 /** Defines @a comGuestOSType. */ 68 void setGuestOSType (const UIGuestOSTypeII &comGuestOSType);67 void setGuestOSTypeId(const QString &strGuestOSTypeId); 69 68 70 69 /** Defines @a cGuestScreenCount. */ … … 117 116 /** @name Options 118 117 * @{ */ 119 /** Holds the guest OS type I D. */120 UIGuestOSTypeII m_guestOSType;118 /** Holds the guest OS type Id. */ 119 QString m_strGuestOSTypeId; 121 120 /** Holds the guest screen count. */ 122 121 int m_cGuestScreenCount; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp
r101263 r101264 330 330 /* Remember new guest OS type: */ 331 331 m_guestOSType = guestOSType; 332 m_pEditorVideoMemorySize->setGuestOSType (m_guestOSType);332 m_pEditorVideoMemorySize->setGuestOSTypeId(m_guestOSType.getId()); 333 333 334 334 #ifdef VBOX_WITH_3D_ACCELERATION
Note:
See TracChangeset
for help on using the changeset viewer.