Changeset 90230 in vbox
- Timestamp:
- Jul 16, 2021 11:56:03 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 145768
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIWizardNewVMEditors.h
r90208 r90230 104 104 QLabel *m_pGAISOPathLabel; 105 105 UIFilePathSelector *m_pGAISOFilePathSelector; 106 107 106 }; 108 107 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.cpp
r90225 r90230 123 123 UIWizardNewVMNameOSTypePage::guessOSTypeFromName(m_pNameAndSystemEditor, strNewName); 124 124 UIWizardNewVMNameOSTypePage::composeMachineFilePath(m_pNameAndSystemEditor, qobject_cast<UIWizardNewVM*>(wizard())); 125 updateVirtualMediumPathFromMachinePathName(); 125 if (!m_userModifiedParameters.contains("MediumPath")) 126 updateVirtualMediumPathFromMachinePathName(); 126 127 emit completeChanged(); 127 128 } … … 131 132 Q_UNUSED(strNewPath); 132 133 UIWizardNewVMNameOSTypePage::composeMachineFilePath(m_pNameAndSystemEditor, qobject_cast<UIWizardNewVM*>(wizard())); 133 updateVirtualMediumPathFromMachinePathName(); 134 if (!m_userModifiedParameters.contains("MediumPath")) 135 updateVirtualMediumPathFromMachinePathName(); 134 136 } 135 137 … … 169 171 void UIWizardNewVMPageExpert::sltGAISOPathChanged(const QString &strPath) 170 172 { 171 Q_UNUSED(strPath); 172 //emit completeChanged(); 173 m_userModifiedParameters << "GuestAdditionsISOPath"; 174 newVMWizardPropertySet(GuestAdditionsISOPath, strPath); 175 emit completeChanged(); 173 176 } 174 177 … … 215 218 { 216 219 Q_UNUSED(fEnabled); 217 // disableEnableGAWidgets(fEnabled); 218 // emit completeChanged(); 220 emit completeChanged(); 219 221 } 220 222 … … 245 247 this, &UIWizardNewVMPageExpert::sltEFIEnabledChanged); 246 248 } 247 // /* Connections for username, password, and hostname: */ 249 /* Connections for username, password, and hostname, etc: */ 250 if (m_pGAInstallationISOContainer) 251 { 252 connect(m_pGAInstallationISOContainer, &UIGAInstallationGroupBox::sigPathChanged, 253 this, &UIWizardNewVMPageExpert::sltGAISOPathChanged); 254 connect(m_pGAInstallationISOContainer, &UIGAInstallationGroupBox::toggled, 255 this, &UIWizardNewVMPageExpert::sltInstallGACheckBoxToggle); 256 257 } 248 258 // if (m_pUserNamePasswordGroupBox) 249 259 // connect(m_pUserNamePasswordGroupBox, &UIUserNamePasswordEditor::sigSomeTextChanged, 250 260 // this, &UIWizardNewVMPageExpert::completeChanged); 251 // if (m_pGAISOFilePathSelector) 252 // connect(m_pGAISOFilePathSelector, &UIFilePathSelector::pathChanged, 253 // this, &UIWizardNewVMPageExpert::sltGAISOPathChanged); 254 255 // if (m_pGAInstallationISOContainer) 256 // connect(m_pGAInstallationISOContainer, &QGroupBox::toggled, 257 // this, &UIWizardNewVMPageExpert::sltInstallGACheckBoxToggle); 261 258 262 259 263 // if (m_pFormatButtonGroup) … … 363 367 if (m_pFormatButtonGroup) 364 368 newVMWizardPropertySet(MediumFormat, m_pFormatButtonGroup->mediumFormat()); 365 updateVirtualMediumPathFromMachinePathName(); 369 if (!m_userModifiedParameters.contains("MediumPath")) 370 updateVirtualMediumPathFromMachinePathName(); 366 371 367 372 // disableEnableUnattendedRelatedWidgets(isUnattendedEnabled()); … … 601 606 // m_pGAInstallationISOContainer->setEnabled(fEnabled); 602 607 // disableEnableProductKeyWidgets(isProductKeyWidgetEnabled()); 603 // disableEnableGAWidgets(isGAInstallEnabled());604 608 } 605 609 … … 684 688 } 685 689 QString strExtension = UIWizardNewVMDiskPage::defaultExtension(pWizard->mediumFormat()); 686 687 688 690 if (m_pSizeAndLocationGroup) 689 691 { 690 QString strMedium Path =692 QString strMediumFilePath = 691 693 UIWizardNewVMDiskPage::absoluteFilePath(UIWizardNewVMDiskPage::toFileName(strDiskFileName, 692 694 strExtension), strMediumPath); 693 m_pSizeAndLocationGroup->setMediumPath(strMedium Path);695 m_pSizeAndLocationGroup->setMediumPath(strMediumFilePath); 694 696 } 695 697 }
Note:
See TracChangeset
for help on using the changeset viewer.