Changeset 87885 in vbox
- Timestamp:
- Feb 26, 2021 1:23:06 PM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.cpp
r87874 r87885 222 222 } 223 223 224 /* Inform UICommon about it: */ 225 uiCommon().createMedium(UIMedium(virtualDisk, UIMediumDeviceType_HardDisk, KMediumState_Created)); 226 224 227 /* Remember created virtual-disk: */ 225 m_virtualDisk = virtualDisk; 226 227 /* Inform UICommon about it: */ 228 uiCommon().createMedium(UIMedium(m_virtualDisk, UIMediumDeviceType_HardDisk, KMediumState_Created)); 228 setVirtualDisk(virtualDisk); 229 229 230 230 return true; … … 605 605 } 606 606 607 CMedium UIWizardNewVM::virtualDisk() const 608 { 609 UIWizardNewVMPageBasic4 *pPage = qobject_cast<UIWizardNewVMPageBasic4*>(page(Page4)); 610 AssertPtrReturn(pPage, CMedium()); 611 return pPage->virtualDisk(); 612 } 613 614 void UIWizardNewVM::setVirtualDisk(const CMedium &medium) 615 { 616 UIWizardNewVMPageBasic4 *pPage = qobject_cast<UIWizardNewVMPageBasic4*>(page(Page4)); 617 AssertPtrReturnVoid(pPage); 618 pPage->setVirtualDisk(medium); 619 } 620 607 621 const UIUnattendedInstallData &UIWizardNewVM::unattendedInstallData() const 608 622 { -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.h
r87872 r87885 120 120 void setFieldsFromDefaultUnttendedInstallData(); 121 121 122 CMedium virtualDisk() const; 123 void setVirtualDisk(const CMedium &medium); 124 122 125 /* Variables: */ 123 126 CMachine m_machine; … … 129 132 int m_iSASCount; 130 133 int m_iUSBCount; 131 CMedium m_virtualDisk;132 134 133 135 mutable UIUnattendedInstallData m_unattendedInstallData; -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic4.h
r87883 r87885 42 42 { 43 43 44 public: 45 46 const CMedium &virtualDisk() const { return m_virtualDisk; } 47 void setVirtualDisk(const CMedium &virtualDisk) { m_virtualDisk = virtualDisk; } 48 44 49 protected: 45 50 … … 55 60 /** @name Property getters/setters 56 61 * @{ */ 57 CMedium virtualDisk() const { return m_virtualDisk; }58 void setVirtualDisk(const CMedium &virtualDisk) { m_virtualDisk = virtualDisk; }59 62 QUuid virtualDiskId() const { return m_uVirtualDiskId; } 60 63 void setVirtualDiskId(const QUuid &uVirtualDiskId) { m_uVirtualDiskId = uVirtualDiskId; }
Note:
See TracChangeset
for help on using the changeset viewer.