- Timestamp:
- Oct 21, 2024 3:09:22 PM (6 weeks ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/settings/editors
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVideoMemoryEditor.cpp
r106566 r106568 52 52 , m_f3DAccelerationEnabled(false) 53 53 #endif 54 , m_iMinVRAM(0)55 54 , m_iMaxVRAM(0) 56 55 , m_pLayout(0) … … 183 182 if (m_pLabelMemoryMin) 184 183 { 185 m_pLabelMemoryMin->setText(tr("%1 MB").arg(m_iMinVRAM));186 184 m_pLabelMemoryMin->setToolTip(tr("Minimum possible video memory size.")); 187 185 } … … 225 223 /* Prepare common variables: */ 226 224 const CSystemProperties comProperties = gpGlobalSession->virtualBox().GetSystemProperties(); 227 m_iMinVRAM = comProperties.GetMinGuestVRAM();228 225 m_iMaxVRAM = comProperties.GetMaxGuestVRAM(); 229 226 … … 252 249 if (m_pSlider) 253 250 { 254 m_pSlider->setMinimum( m_iMinVRAM);251 m_pSlider->setMinimum(0); 255 252 m_pSlider->setMaximum(m_iMaxVRAM); 256 253 m_pSlider->setPageStep(calculatePageStep(m_iMaxVRAM)); … … 299 296 if (m_pLabelMemory) 300 297 m_pLabelMemory->setBuddy(m_pSpinBox); 301 m_pSpinBox->setMinimum( m_iMinVRAM);298 m_pSpinBox->setMinimum(0); 302 299 m_pSpinBox->setMaximum(m_iMaxVRAM); 303 300 connect(m_pSpinBox, &QSpinBox::valueChanged, -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVideoMemoryEditor.h
r106566 r106568 114 114 * @{ */ 115 115 /** Holds the guest OS type Id. */ 116 QString m_strGuestOSTypeId;116 QString m_strGuestOSTypeId; 117 117 /** Holds the guest screen count. */ 118 118 int m_cGuestScreenCount; … … 126 126 #endif 127 127 128 /** Holds the minimum lower limit of VRAM (MiB). */129 int m_iMinVRAM;130 128 /** Holds the maximum upper limit of VRAM (MiB). */ 131 129 int m_iMaxVRAM;
Note:
See TracChangeset
for help on using the changeset viewer.