VirtualBox

Ignore:
Timestamp:
Jul 6, 2021 1:13:41 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
145561
Message:

FE/Qt: bugref:9996: Some renaming

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

Legend:

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

    r86085 r90066  
    7575        m_pSpinBox->blockSignals(false);
    7676    }
     77    emit sigValueChanged(m_pSlider->value());
    7778}
    7879
     
    8586        m_pSlider->blockSignals(false);
    8687    }
     88    emit sigValueChanged(m_pSpinBox->value());
    8789}
    8890
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVirtualCPUEditor.h

    r86089 r90066  
    3939{
    4040    Q_OBJECT;
     41
     42 signals:
     43
     44    void sigValueChanged(int iValue);
    4145
    4246public:
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.cpp

    r90060 r90066  
    6565    , m_fSkipUnattendedInstall(false)
    6666    , m_iCPUCount(1)
    67     , m_iMemoryAmount(0)
     67    , m_iMemorySize(0)
    6868
    6969{
     
    771771}
    772772
    773 int UIWizardNewVM::memoryAmount() const
    774 {
    775     return m_iMemoryAmount;
    776 }
    777 
    778 void UIWizardNewVM::setMemoryCount(int iMemory)
    779 {
    780     m_iMemoryAmount = iMemory;
     773int UIWizardNewVM::memorySize() const
     774{
     775    return m_iMemorySize;
     776}
     777
     778void UIWizardNewVM::setMemorySize(int iMemory)
     779{
     780    m_iMemorySize = iMemory;
    781781}
    782782
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.h

    r90060 r90066  
    3030#include "CMedium.h"
    3131
    32 #define parentWizardSet(functionName, value)                         \
     32#define newVMWizardPropertySet(functionName, value)                  \
    3333    UIWizardNewVM *pWizard = qobject_cast<UIWizardNewVM*>(wizard()); \
    34     if (pWizard)                                                     \
    35         pWizard->functionName(value);
     34    if (!pWizard)                                                    \
     35        pWizard->set##functionName(value)
    3636
    3737/** Container for unattended install related data. */
     
    137137    void setCPUCount(int iCPUCount);
    138138
    139     int memoryAmount() const;
    140     void setMemoryCount(int iMemory);
     139    int memorySize() const;
     140    void setMemorySize(int iMemory);
    141141
    142142protected:
     
    208208
    209209    int m_iCPUCount;
    210     int m_iMemoryAmount;
     210    int m_iMemorySize;
    211211};
    212212
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMHardwarePageBasic.cpp

    r90060 r90066  
    4040    , m_pLabel(0)
    4141{
    42     m_pWizard = qobject_cast<UIWizardNewVM*>(wizard());
    4342    prepare();
    4443    qRegisterMetaType<CMedium>();
     
    5958void UIWizardNewVMHardwarePageBasic::createConnections()
    6059{
    61     connect(m_pBaseMemoryEditor, &UIBaseMemoryEditor::sigValueChanged,
    62             this, &UIWizardNewVMHardwarePageBasic::sltMemoryAmountChanged);
    63 
     60    if (m_pBaseMemoryEditor)
     61        connect(m_pBaseMemoryEditor, &UIBaseMemoryEditor::sigValueChanged,
     62                this, &UIWizardNewVMHardwarePageBasic::sltMemorySizeChanged);
     63    if (m_pVirtualCPUEditor)
     64        connect(m_pVirtualCPUEditor, &UIVirtualCPUEditor::sigValueChanged,
     65            this, &UIWizardNewVMHardwarePageBasic::sltCPUCountChanged);
    6466
    6567}
     
    125127}
    126128
    127 void UIWizardNewVMHardwarePageBasic::sltMemoryAmountChanged(int iValue)
     129void UIWizardNewVMHardwarePageBasic::sltMemorySizeChanged(int iValue)
    128130{
    129     Q_UNUSED(iValue);
     131    newVMWizardPropertySet(MemorySize, iValue);
    130132}
    131133
    132134void UIWizardNewVMHardwarePageBasic::sltCPUCountChanged(int iCount)
    133135{
    134     Q_UNUSED(iCount);
     136    newVMWizardPropertySet(CPUCount, iCount);
    135137}
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMHardwarePageBasic.h

    r90060 r90066  
    6161private slots:
    6262
    63     void sltMemoryAmountChanged(int iValue);
     63    void sltMemorySizeChanged(int iValue);
    6464    void sltCPUCountChanged(int iCount);
    6565
     
    7575    bool isComplete() const;
    7676
    77     UIWizardNewVM *m_pWizard;
    78 
    7977    /** @name Widgets
    8078     * @{ */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMNameOSTypePageBasic.cpp

    r90060 r90066  
    481481void UIWizardNewVMNameOSTypePageBasic::sltGuestOSFamilChanged(const QString &strGuestOSFamilyId)
    482482{
    483     parentWizardSet(setGuestOSFamilyId, strGuestOSFamilyId);
     483    newVMWizardPropertySet(GuestOSFamilyId, strGuestOSFamilyId);
    484484}
    485485
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMUnattendedPageBasic.cpp

    r90060 r90066  
    179179{
    180180    disableEnableGAWidgets(fEnabled);
    181     parentWizardSet(setInstallGuestAdditions, fEnabled);
     181    newVMWizardPropertySet(InstallGuestAdditions, fEnabled);
    182182    emit completeChanged();
    183183}
     
    185185void UIWizardNewVMUnattendedPageBasic::sltGAISOPathChanged(const QString &strPath)
    186186{
    187     parentWizardSet(setGuestAdditionsISOPath, strPath);
     187    newVMWizardPropertySet(GuestAdditionsISOPath, strPath);
    188188    emit completeChanged();
    189189}
     
    191191void UIWizardNewVMUnattendedPageBasic::sltPasswordChanged(const QString &strPassword)
    192192{
    193     parentWizardSet(setPassword, strPassword);
     193    newVMWizardPropertySet(Password, strPassword);
    194194    emit completeChanged();
    195195}
     
    197197void UIWizardNewVMUnattendedPageBasic::sltUserNameChanged(const QString &strUserName)
    198198{
    199     parentWizardSet(setUserName, strUserName);
     199    newVMWizardPropertySet(UserName, strUserName);
    200200    emit completeChanged();
    201201}
     
    211211void UIWizardNewVMUnattendedPageBasic::sltHostnameChanged(const QString &strHostname)
    212212{
    213     parentWizardSet(setHostname, strHostname);
     213    newVMWizardPropertySet(Hostname, strHostname);
    214214}
    215215
    216216void UIWizardNewVMUnattendedPageBasic::sltProductKeyChanged(const QString &strProductKey)
    217217{
    218     parentWizardSet(setProductKey, strProductKey);
     218    newVMWizardPropertySet(ProductKey, strProductKey);
    219219}
    220220
    221221void UIWizardNewVMUnattendedPageBasic::sltStartHeadlessChanged(bool fStartHeadless)
    222222{
    223     parentWizardSet(setStartHeadless, fStartHeadless);
     223    newVMWizardPropertySet(StartHeadless, fStartHeadless);
    224224}
    225225
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