VirtualBox

Changeset 103287 in vbox


Ignore:
Timestamp:
Feb 8, 2024 6:09:31 PM (12 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10384: VM settings / System page: Chipset option should not be hidden just for ARM host, but for ARM VMs instead; Besides that, processor feature options follows the same logic.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSystem.cpp

    r103180 r103287  
    624624void UIMachineSettingsSystem::handleFilterChange()
    625625{
     626    /* Update some stuff: */
     627    updateOptionSet();
    626628    updateMinimumLayoutHint();
    627629}
     
    657659                                                                      || (systemData.m_fEnabledNestedPaging && isMachineOffline()));
    658660    }
     661
     662    /* Update option set: */
     663    updateOptionSet();
    659664}
    660665
     
    668673    prepareWidgets();
    669674    prepareConnections();
     675
     676    /* Update option set: */
     677    updateOptionSet();
    670678
    671679    /* Apply language settings: */
     
    729737
    730738            /* Prepare chipset editor: */
    731 #ifndef VBOX_WITH_VIRT_ARMV8
    732739            m_pEditorChipset = new UIChipsetEditor(m_pTabMotherboard);
    733 #endif
    734740            if (m_pEditorChipset)
    735741            {
     
    887893        connect(m_pEditorAccelerationFeatures, &UIAccelerationFeaturesEditor::sigChangedNestedPaging,
    888894                this, &UIMachineSettingsSystem::revalidate);
     895}
     896
     897void UIMachineSettingsSystem::updateOptionSet()
     898{
     899    /* Load currently propagated arch type: */
     900    const KPlatformArchitecture enmArch = optionalFlags().contains("arch")
     901                                        ? optionalFlags().value("arch").value<KPlatformArchitecture>()
     902                                        : KPlatformArchitecture_x86;
     903
     904    /* Some options visible only for x86 machines: */
     905    const bool fx86 = enmArch == KPlatformArchitecture_x86;
     906    m_pEditorChipset->setVisible(fx86);
     907    m_pEditorProcessorFeatures->setVisible(fx86);
    889908}
    890909
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSystem.h

    r101717 r103287  
    133133    /** Prepares connections. */
    134134    void prepareConnections();
     135    /** Updates option set. */
     136    void updateOptionSet();
    135137    /** Cleanups all. */
    136138    void cleanup();
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