VirtualBox

Changeset 101865 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 6, 2023 12:28:34 PM (13 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10543: VM Settings / System and USB pages: Make sure combo-box listed values are affected by chosen platform architecture; That is covering such editors as Chipset, Paravirt Provider, TPM and USB controller.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIChipsetEditor.cpp

    r101563 r101865  
    9494}
    9595
     96void UIChipsetEditor::handleFilterChange()
     97{
     98    populateCombo();
     99}
     100
    96101void UIChipsetEditor::prepare()
    97102{
     
    150155
    151156        /* Load currently supported values: */
    152         CPlatformProperties comProperties = uiCommon().virtualBox().GetPlatformProperties(KPlatformArchitecture_x86);
     157        const KPlatformArchitecture enmArch = m_flags.contains("arch")
     158                                            ? m_flags.value("arch").value<KPlatformArchitecture>()
     159                                            : KPlatformArchitecture_x86;
     160        CPlatformProperties comProperties = uiCommon().virtualBox().GetPlatformProperties(enmArch);
    153161        m_supportedValues = comProperties.GetSupportedChipsetTypes();
    154162
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIChipsetEditor.h

    r101011 r101865  
    7676    virtual void retranslateUi() RT_OVERRIDE;
    7777
     78    /** Handles filter change. */
     79    virtual void handleFilterChange() RT_OVERRIDE;
     80
    7881private:
    7982
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIParavirtProviderEditor.cpp

    r101035 r101865  
    9393}
    9494
     95void UIParavirtProviderEditor::handleFilterChange()
     96{
     97    populateCombo();
     98}
     99
    95100void UIParavirtProviderEditor::prepare()
    96101{
     
    147152
    148153        /* Load currently supported paravirt provider types: */
    149         CPlatformProperties comProperties = uiCommon().virtualBox().GetPlatformProperties(KPlatformArchitecture_x86);
     154        const KPlatformArchitecture enmArch = m_flags.contains("arch")
     155                                            ? m_flags.value("arch").value<KPlatformArchitecture>()
     156                                            : KPlatformArchitecture_x86;
     157        CPlatformProperties comProperties = uiCommon().virtualBox().GetPlatformProperties(enmArch);
    150158        m_supportedValues = comProperties.GetSupportedParavirtProviders();
    151159
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIParavirtProviderEditor.h

    r101011 r101865  
    7171    virtual void retranslateUi() RT_OVERRIDE;
    7272
     73    /** Handles filter change. */
     74    virtual void handleFilterChange() RT_OVERRIDE;
     75
    7376private:
    7477
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UITpmEditor.cpp

    r101563 r101865  
    9292}
    9393
     94void UITpmEditor::handleFilterChange()
     95{
     96    populateCombo();
     97}
     98
    9499void UITpmEditor::prepare()
    95100{
     
    148153
    149154        /* Load currently supported values: */
    150         CPlatformProperties comProperties = uiCommon().virtualBox().GetPlatformProperties(KPlatformArchitecture_x86);
     155        const KPlatformArchitecture enmArch = m_flags.contains("arch")
     156                                            ? m_flags.value("arch").value<KPlatformArchitecture>()
     157                                            : KPlatformArchitecture_x86;
     158        CPlatformProperties comProperties = uiCommon().virtualBox().GetPlatformProperties(enmArch);
    151159        m_supportedValues = comProperties.GetSupportedTpmTypes();
    152160
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UITpmEditor.h

    r101011 r101865  
    7676    virtual void retranslateUi() RT_OVERRIDE;
    7777
     78    /** Handles filter change. */
     79    virtual void handleFilterChange() RT_OVERRIDE;
     80
    7881private:
    7982
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIUSBControllerEditor.cpp

    r101563 r101865  
    9696}
    9797
     98void UIUSBControllerEditor::handleFilterChange()
     99{
     100    updateButtonSet();
     101}
     102
    98103void UIUSBControllerEditor::prepare()
    99104{
     
    148153{
    149154    /* Load currently supported types: */
    150     CPlatformProperties comProperties = uiCommon().virtualBox().GetPlatformProperties(KPlatformArchitecture_x86);
     155    const KPlatformArchitecture enmArch = m_flags.contains("arch")
     156                                        ? m_flags.value("arch").value<KPlatformArchitecture>()
     157                                        : KPlatformArchitecture_x86;
     158    CPlatformProperties comProperties = uiCommon().virtualBox().GetPlatformProperties(enmArch);
    151159    m_supportedValues = comProperties.GetSupportedUSBControllerTypes();
    152160
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIUSBControllerEditor.h

    r101011 r101865  
    6969    virtual void retranslateUi() RT_OVERRIDE;
    7070
     71    /** Handles filter change. */
     72    virtual void handleFilterChange() RT_OVERRIDE;
     73
    7174private:
    7275
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