Changeset 88110 in vbox
- Timestamp:
- Mar 12, 2021 5:24:08 PM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic1.cpp
r88109 r88110 235 235 QWidget *UIWizardNewVMPage1::createNameOSTypeWidgets() 236 236 { 237 QWidget *pContainerWidget = new QWidget; 238 QVBoxLayout *pLayout = new QVBoxLayout(pContainerWidget); 239 pLayout->setContentsMargins(0, 0, 0, 0); 240 237 241 /* Prepare Name and OS Type editor: */ 238 242 m_pNameAndSystemEditor = new UINameAndSystemEditor(0, … … 241 245 true /* fChooseType? */, 242 246 true /* fChooseISOFile? */); 243 return m_pNameAndSystemEditor; 247 pLayout->addWidget(m_pNameAndSystemEditor); 248 m_pSkipUnattendedCheckBox = new QCheckBox; 249 pLayout->addWidget(m_pSkipUnattendedCheckBox); 250 return pContainerWidget; 244 251 } 245 252 … … 397 404 } 398 405 406 bool UIWizardNewVMPage1::skipUnattendedInstall() const 407 { 408 return m_pSkipUnattendedCheckBox && m_pSkipUnattendedCheckBox->isChecked(); 409 } 410 399 411 bool UIWizardNewVMPage1::checkISOFile() const 400 412 { … … 438 450 /* Prepare Name and OS Type editor: */ 439 451 pPageLayout->addWidget(createNameOSTypeWidgets()); 440 441 m_pSkipUnattendedCheckBox = new QCheckBox;442 pPageLayout->addWidget(m_pSkipUnattendedCheckBox);443 452 444 453 pPageLayout->addStretch(); … … 456 465 registerField("ISOFilePath", this, "ISOFilePath"); 457 466 registerField("isUnattendedEnabled", this, "isUnattendedEnabled"); 467 registerField("skipUnattendedInstall", this, "skipUnattendedInstall"); 458 468 registerField("detectedOSTypeId", this, "detectedOSTypeId"); 459 469 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic1.h
r88109 r88110 70 70 bool isUnattendedEnabled() const; 71 71 const QString &detectedOSTypeId() const; 72 73 bool skipUnattendedInstall() const; 72 74 /** @} */ 73 75 … … 124 126 Q_PROPERTY(QString ISOFilePath READ ISOFilePath); 125 127 Q_PROPERTY(bool isUnattendedEnabled READ isUnattendedEnabled); 128 Q_PROPERTY(bool skipUnattendedInstall READ skipUnattendedInstall); 126 129 Q_PROPERTY(QString detectedOSTypeId READ detectedOSTypeId); 127 128 130 129 131 public: -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.cpp
r88108 r88110 83 83 registerField("ISOFilePath", this, "ISOFilePath"); 84 84 registerField("isUnattendedEnabled", this, "isUnattendedEnabled"); 85 registerField("skipUnattendedInstall", this, "skipUnattendedInstall"); 85 86 registerField("startHeadless", this, "startHeadless"); 86 87 registerField("detectedOSTypeId", this, "detectedOSTypeId"); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.h
r88108 r88110 55 55 Q_PROPERTY(QString ISOFilePath READ ISOFilePath); 56 56 Q_PROPERTY(bool isUnattendedEnabled READ isUnattendedEnabled); 57 Q_PROPERTY(bool skipUnattendedInstall READ skipUnattendedInstall); 57 58 Q_PROPERTY(bool startHeadless READ startHeadless); 58 59 Q_PROPERTY(QString detectedOSTypeId READ detectedOSTypeId);
Note:
See TracChangeset
for help on using the changeset viewer.