Changeset 90070 in vbox
- Timestamp:
- Jul 6, 2021 4:08:24 PM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIUserNamePasswordEditor.cpp
r90037 r90070 255 255 if (m_pPasswordLineEdit->text() != m_pPasswordRepeatLineEdit->text()) 256 256 fPasswordOK = false; 257 #if 0258 257 if (m_pPasswordLineEdit->text().isEmpty()) 259 258 fPasswordOK = false; 260 #endif261 259 m_pPasswordLineEdit->mark(!fPasswordOK, m_strPasswordError); 262 260 m_pPasswordRepeatLineEdit->mark(!fPasswordOK, m_strPasswordError); … … 317 315 { 318 316 if(m_pUserNameLineEdit) 319 m_pUserNameLineEdit->setPlaceholderText(strUsername );317 m_pUserNameLineEdit->setPlaceholderText(strUsername.remove('&')); 320 318 if (m_pPasswordLineEdit) 321 m_pPasswordLineEdit->setPlaceholderText(strPassword );319 m_pPasswordLineEdit->setPlaceholderText(strPassword.remove('&')); 322 320 if (m_pPasswordRepeatLineEdit) 323 m_pPasswordRepeatLineEdit->setPlaceholderText(strRepeatPassword );321 m_pPasswordRepeatLineEdit->setPlaceholderText(strRepeatPassword.remove('&')); 324 322 } 325 323 else -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.cpp
r90066 r90070 88 88 { 89 89 addPage(new UIWizardNewVMNameOSTypePageBasic); 90 //addPage(new UIWizardNewVMUnattendedPageBasic);91 //addPage(new UIWizardNewVMHardwarePageBasic);92 //addPage(new UIWizardNewVMDiskPageBasic);90 addPage(new UIWizardNewVMUnattendedPageBasic); 91 addPage(new UIWizardNewVMHardwarePageBasic); 92 addPage(new UIWizardNewVMDiskPageBasic); 93 93 break; 94 94 } … … 806 806 bool UIWizardNewVM::isUnattendedEnabled() const 807 807 { 808 if (!m_fSkipUnattendedInstall)809 return false;810 808 if (m_strISOFilePath.isEmpty() || m_strISOFilePath.isNull()) 811 809 return false; 810 if (m_fSkipUnattendedInstall) 811 return false; 812 812 return true; 813 813 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.h
r90066 r90070 30 30 #include "CMedium.h" 31 31 32 #define newVMWizardPropertySet(functionName, value) \ 33 UIWizardNewVM *pWizard = qobject_cast<UIWizardNewVM*>(wizard()); \ 34 if (!pWizard) \ 35 pWizard->set##functionName(value) 32 #define newVMWizardPropertySet(functionName, value) \ 33 do \ 34 { \ 35 UIWizardNewVM *pWizard = qobject_cast<UIWizardNewVM*>(wizard()); \ 36 if (pWizard) \ 37 pWizard->set##functionName(value); \ 38 } \ 39 while(0) 36 40 37 41 /** Container for unattended install related data. */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMNameOSTypePageBasic.cpp
r90066 r90070 385 385 connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigOsTypeChanged, this, &UIWizardNewVMNameOSTypePageBasic::sltOsTypeChanged); 386 386 connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigImageChanged, this, &UIWizardNewVMNameOSTypePageBasic::sltISOPathChanged); 387 connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigOSFamilyChanged, this, &UIWizardNewVMNameOSTypePageBasic::sltGuestOSFamil Changed);387 connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigOSFamilyChanged, this, &UIWizardNewVMNameOSTypePageBasic::sltGuestOSFamilyChanged); 388 388 } 389 389 } … … 441 441 void UIWizardNewVMNameOSTypePageBasic::initializePage() 442 442 { 443 /* Translate page: */444 443 retranslateUi(); 444 445 /* Make sure parameters are initialized correctly: */ 446 if (m_pNameAndSystemEditor) 447 newVMWizardPropertySet(GuestOSFamilyId, m_pNameAndSystemEditor->familyId()); 448 445 449 if (m_pNameAndSystemEditor) 446 450 m_pNameAndSystemEditor->setFocus(); … … 479 483 } 480 484 481 void UIWizardNewVMNameOSTypePageBasic::sltGuestOSFamil Changed(const QString &strGuestOSFamilyId)485 void UIWizardNewVMNameOSTypePageBasic::sltGuestOSFamilyChanged(const QString &strGuestOSFamilyId) 482 486 { 483 487 newVMWizardPropertySet(GuestOSFamilyId, strGuestOSFamilyId); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMNameOSTypePageBasic.h
r90060 r90070 79 79 private slots: 80 80 81 /** Handlers. */82 81 void sltNameChanged(const QString &strNewText); 83 82 void sltPathChanged(const QString &strNewPath); 84 83 void sltOsTypeChanged(); 85 84 void sltISOPathChanged(const QString &strPath); 86 void sltGuestOSFamil Changed(const QString &strGuestOSFamilyId);85 void sltGuestOSFamilyChanged(const QString &strGuestOSFamilyId); 87 86 88 87 private:
Note:
See TracChangeset
for help on using the changeset viewer.