Changeset 90066 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jul 6, 2021 1:13:41 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 145561
- 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 75 75 m_pSpinBox->blockSignals(false); 76 76 } 77 emit sigValueChanged(m_pSlider->value()); 77 78 } 78 79 … … 85 86 m_pSlider->blockSignals(false); 86 87 } 88 emit sigValueChanged(m_pSpinBox->value()); 87 89 } 88 90 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVirtualCPUEditor.h
r86089 r90066 39 39 { 40 40 Q_OBJECT; 41 42 signals: 43 44 void sigValueChanged(int iValue); 41 45 42 46 public: -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.cpp
r90060 r90066 65 65 , m_fSkipUnattendedInstall(false) 66 66 , m_iCPUCount(1) 67 , m_iMemory Amount(0)67 , m_iMemorySize(0) 68 68 69 69 { … … 771 771 } 772 772 773 int UIWizardNewVM::memory Amount() const774 { 775 return m_iMemory Amount;776 } 777 778 void UIWizardNewVM::setMemory Count(int iMemory)779 { 780 m_iMemory Amount= iMemory;773 int UIWizardNewVM::memorySize() const 774 { 775 return m_iMemorySize; 776 } 777 778 void UIWizardNewVM::setMemorySize(int iMemory) 779 { 780 m_iMemorySize = iMemory; 781 781 } 782 782 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.h
r90060 r90066 30 30 #include "CMedium.h" 31 31 32 #define parentWizardSet(functionName, value)\32 #define newVMWizardPropertySet(functionName, value) \ 33 33 UIWizardNewVM *pWizard = qobject_cast<UIWizardNewVM*>(wizard()); \ 34 if ( pWizard)\35 pWizard-> functionName(value);34 if (!pWizard) \ 35 pWizard->set##functionName(value) 36 36 37 37 /** Container for unattended install related data. */ … … 137 137 void setCPUCount(int iCPUCount); 138 138 139 int memory Amount() const;140 void setMemory Count(int iMemory);139 int memorySize() const; 140 void setMemorySize(int iMemory); 141 141 142 142 protected: … … 208 208 209 209 int m_iCPUCount; 210 int m_iMemory Amount;210 int m_iMemorySize; 211 211 }; 212 212 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMHardwarePageBasic.cpp
r90060 r90066 40 40 , m_pLabel(0) 41 41 { 42 m_pWizard = qobject_cast<UIWizardNewVM*>(wizard());43 42 prepare(); 44 43 qRegisterMetaType<CMedium>(); … … 59 58 void UIWizardNewVMHardwarePageBasic::createConnections() 60 59 { 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); 64 66 65 67 } … … 125 127 } 126 128 127 void UIWizardNewVMHardwarePageBasic::sltMemory AmountChanged(int iValue)129 void UIWizardNewVMHardwarePageBasic::sltMemorySizeChanged(int iValue) 128 130 { 129 Q_UNUSED(iValue);131 newVMWizardPropertySet(MemorySize, iValue); 130 132 } 131 133 132 134 void UIWizardNewVMHardwarePageBasic::sltCPUCountChanged(int iCount) 133 135 { 134 Q_UNUSED(iCount);136 newVMWizardPropertySet(CPUCount, iCount); 135 137 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMHardwarePageBasic.h
r90060 r90066 61 61 private slots: 62 62 63 void sltMemory AmountChanged(int iValue);63 void sltMemorySizeChanged(int iValue); 64 64 void sltCPUCountChanged(int iCount); 65 65 … … 75 75 bool isComplete() const; 76 76 77 UIWizardNewVM *m_pWizard;78 79 77 /** @name Widgets 80 78 * @{ */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMNameOSTypePageBasic.cpp
r90060 r90066 481 481 void UIWizardNewVMNameOSTypePageBasic::sltGuestOSFamilChanged(const QString &strGuestOSFamilyId) 482 482 { 483 parentWizardSet(setGuestOSFamilyId, strGuestOSFamilyId);483 newVMWizardPropertySet(GuestOSFamilyId, strGuestOSFamilyId); 484 484 } 485 485 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMUnattendedPageBasic.cpp
r90060 r90066 179 179 { 180 180 disableEnableGAWidgets(fEnabled); 181 parentWizardSet(setInstallGuestAdditions, fEnabled);181 newVMWizardPropertySet(InstallGuestAdditions, fEnabled); 182 182 emit completeChanged(); 183 183 } … … 185 185 void UIWizardNewVMUnattendedPageBasic::sltGAISOPathChanged(const QString &strPath) 186 186 { 187 parentWizardSet(setGuestAdditionsISOPath, strPath);187 newVMWizardPropertySet(GuestAdditionsISOPath, strPath); 188 188 emit completeChanged(); 189 189 } … … 191 191 void UIWizardNewVMUnattendedPageBasic::sltPasswordChanged(const QString &strPassword) 192 192 { 193 parentWizardSet(setPassword, strPassword);193 newVMWizardPropertySet(Password, strPassword); 194 194 emit completeChanged(); 195 195 } … … 197 197 void UIWizardNewVMUnattendedPageBasic::sltUserNameChanged(const QString &strUserName) 198 198 { 199 parentWizardSet(setUserName, strUserName);199 newVMWizardPropertySet(UserName, strUserName); 200 200 emit completeChanged(); 201 201 } … … 211 211 void UIWizardNewVMUnattendedPageBasic::sltHostnameChanged(const QString &strHostname) 212 212 { 213 parentWizardSet(setHostname, strHostname);213 newVMWizardPropertySet(Hostname, strHostname); 214 214 } 215 215 216 216 void UIWizardNewVMUnattendedPageBasic::sltProductKeyChanged(const QString &strProductKey) 217 217 { 218 parentWizardSet(setProductKey, strProductKey);218 newVMWizardPropertySet(ProductKey, strProductKey); 219 219 } 220 220 221 221 void UIWizardNewVMUnattendedPageBasic::sltStartHeadlessChanged(bool fStartHeadless) 222 222 { 223 parentWizardSet(setStartHeadless, fStartHeadless);223 newVMWizardPropertySet(StartHeadless, fStartHeadless); 224 224 } 225 225
Note:
See TracChangeset
for help on using the changeset viewer.