VirtualBox

Changeset 91474 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 29, 2021 8:07:36 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: wizards/newvm, wizards/editors: Use recommended CPU count for guest OS type as initial value.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/wizards
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIWizardNewVMEditors.cpp

    r91220 r91474  
    360360}
    361361
     362void UINewVMHardwareContainer::setCPUCount(int iCount)
     363{
     364    if (m_pVirtualCPUEditor)
     365        m_pVirtualCPUEditor->setValue(iCount);
     366}
     367
    362368void UINewVMHardwareContainer::setEFIEnabled(bool fEnabled)
    363369{
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIWizardNewVMEditors.h

    r90328 r91474  
    163163      * @{ */
    164164        void setMemorySize(int size);
     165        void setCPUCount(int iCount);
    165166        void setEFIEnabled(bool fEnabled);
    166167    /** @} */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMHardwarePage.cpp

    r91059 r91474  
    8989                m_pHardwareWidgetContainer->setMemorySize(recommendedRam);
    9090            }
     91            if (!m_userModifiedParameters.contains("CPUCount"))
     92            {
     93                ULONG recommendedCPUs = type.GetRecommendedCPUCount();
     94                m_pHardwareWidgetContainer->setCPUCount(recommendedCPUs);
     95            }
    9196            if (!m_userModifiedParameters.contains("EFIEnabled"))
    9297            {
     
    114119    AssertReturnVoid(wizardWindow<UIWizardNewVM>());
    115120    wizardWindow<UIWizardNewVM>()->setCPUCount(iCount);
     121    m_userModifiedParameters << "CPUCount";
    116122}
    117123
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