VirtualBox

Changeset 106568 in vbox for trunk/src


Ignore:
Timestamp:
Oct 21, 2024 3:09:22 PM (6 weeks ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10767: VM settings / Display page: Cleanup for VRAM editor; No need to cache min VRAM size as it will be dynamical depending on graphics controller and 3D support.

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  
    5252    , m_f3DAccelerationEnabled(false)
    5353#endif
    54     , m_iMinVRAM(0)
    5554    , m_iMaxVRAM(0)
    5655    , m_pLayout(0)
     
    183182    if (m_pLabelMemoryMin)
    184183    {
    185         m_pLabelMemoryMin->setText(tr("%1 MB").arg(m_iMinVRAM));
    186184        m_pLabelMemoryMin->setToolTip(tr("Minimum possible video memory size."));
    187185    }
     
    225223    /* Prepare common variables: */
    226224    const CSystemProperties comProperties = gpGlobalSession->virtualBox().GetSystemProperties();
    227     m_iMinVRAM = comProperties.GetMinGuestVRAM();
    228225    m_iMaxVRAM = comProperties.GetMaxGuestVRAM();
    229226
     
    252249            if (m_pSlider)
    253250            {
    254                 m_pSlider->setMinimum(m_iMinVRAM);
     251                m_pSlider->setMinimum(0);
    255252                m_pSlider->setMaximum(m_iMaxVRAM);
    256253                m_pSlider->setPageStep(calculatePageStep(m_iMaxVRAM));
     
    299296            if (m_pLabelMemory)
    300297                m_pLabelMemory->setBuddy(m_pSpinBox);
    301             m_pSpinBox->setMinimum(m_iMinVRAM);
     298            m_pSpinBox->setMinimum(0);
    302299            m_pSpinBox->setMaximum(m_iMaxVRAM);
    303300            connect(m_pSpinBox, &QSpinBox::valueChanged,
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVideoMemoryEditor.h

    r106566 r106568  
    114114     * @{ */
    115115        /** Holds the guest OS type Id. */
    116         QString                 m_strGuestOSTypeId;
     116        QString                  m_strGuestOSTypeId;
    117117        /** Holds the guest screen count. */
    118118        int                      m_cGuestScreenCount;
     
    126126#endif
    127127
    128         /** Holds the minimum lower limit of VRAM (MiB). */
    129         int  m_iMinVRAM;
    130128        /** Holds the maximum upper limit of VRAM (MiB). */
    131129        int  m_iMaxVRAM;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette