Changeset 105549 in vbox
- Timestamp:
- Jul 31, 2024 9:45:06 AM (4 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVD.cpp
r105542 r105549 60 60 setPixmapName(":/wizard_new_harddisk_bg.png"); 61 61 #endif /* VBOX_WS_MAC */ 62 } 63 64 UIWizardNewVD::UIWizardNewVD(QWidget *pParent, const QUuid &uMediumId) 65 : UINativeWizard(pParent, WizardType_CloneVD) 66 , m_iMediumVariantPageIndex(-1) 67 , m_enmDeviceType(KDeviceType_Null) 68 { 69 #ifndef VBOX_WS_MAC 70 /* Assign watermark: */ 71 setPixmapName(":/wizard_new_harddisk.png"); 72 #else /* VBOX_WS_MAC */ 73 /* Assign background image: */ 74 setPixmapName(":/wizard_new_harddisk_bg.png"); 75 #endif /* VBOX_WS_MAC */ 76 77 /* Init medium to be cloned: */ 78 UIMedium uiMedium = gpMediumEnumerator->medium(uMediumId); 79 m_comSourceVirtualDisk = uiMedium.medium(); 80 81 /* Init device type: */ 82 m_enmDeviceType = m_comSourceVirtualDisk.GetDeviceType(); 62 83 } 63 84 … … 262 283 return m_comSourceVirtualDisk.GetLogicalSize(); 263 284 } 285 286 KDeviceType UIWizardNewVD::deviceType() const 287 { 288 return m_enmDeviceType; 289 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVD.h
r105542 r105549 51 51 qulonglong uDefaultSize); 52 52 53 /** Constructs wizard to clone medium referenced by @a uMediumId, passing @a pParent to the base-class. */ 54 UIWizardNewVD(QWidget *pParent, const QUuid &uMediumId); 55 53 56 bool createVirtualDisk(); 54 57 … … 84 87 const QString &defaultName() const; 85 88 qulonglong defaultSize() const; 89 KDeviceType deviceType() const; 86 90 87 91 protected: -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDExpertPage.cpp
r105543 r105549 158 158 pWizard->setMediumFormat(comMediumFormat); 159 159 160 QString strExtension = UIWizardDiskEditors::defaultExtension(comMediumFormat, KDeviceType_HardDisk);160 QString strExtension = UIWizardDiskEditors::defaultExtension(comMediumFormat, pWizard->deviceType()); 161 161 QString strMediumFilePath = 162 162 UIWizardDiskEditors::constructMediumFilePath(UIWizardDiskEditors::appendExtension(pWizard->defaultName(),
Note:
See TracChangeset
for help on using the changeset viewer.