VirtualBox

Changeset 72467 in vbox for trunk


Ignore:
Timestamp:
Jun 7, 2018 8:28:16 AM (7 years ago)
Author:
vboxsync
Message:

FE/Qt bugref:9184 We no longer disable the whole 'Acceleration' tab in system settings but rather two checkboxes there.

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

    r71027 r72467  
    582582
    583583    /* Polish 'Acceleration' availability: */
    584     m_pTabWidgetSystem->setTabEnabled(2, systemData.m_fSupportedHwVirtEx);
     584    setAccelerationCheckBoxesEnabled(systemData.m_fSupportedHwVirtEx && isMachineOffline());
    585585    m_pLabelParavirtProvider->setEnabled(isMachineOffline());
    586586    m_pComboParavirtProvider->setEnabled(isMachineOffline());
    587587    m_pLabelVirtualization->setEnabled(isMachineOffline());
    588     m_pCheckBoxVirtualization->setEnabled(isMachineOffline());
    589     m_pCheckBoxNestedPaging->setEnabled(isMachineOffline() && m_pCheckBoxVirtualization->isChecked());
    590588}
    591589
     
    12251223}
    12261224
     1225void UIMachineSettingsSystem::setAccelerationCheckBoxesEnabled(bool fEnabled)
     1226{
     1227    m_pCheckBoxVirtualization->setEnabled(fEnabled);
     1228    m_pCheckBoxNestedPaging->setEnabled(fEnabled && m_pCheckBoxVirtualization->isChecked());
     1229}
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSystem.h

    r72109 r72467  
    142142    bool saveAccelerationData();
    143143
     144    /** Disable/enable "hardware virtualization" and "nested paging" check boxes
     145     * (but not the "Paravirtualization Interface" combobox)  */
     146    void setAccelerationCheckBoxesEnabled(bool fEnabled);
     147
    144148    /** Holds the list of all possible boot items. */
    145149    QList<KDeviceType>  m_possibleBootItems;
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