VirtualBox

Changeset 88110 in vbox


Ignore:
Timestamp:
Mar 12, 2021 5:24:08 PM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9950. Adding the fields and properties for skipping unattended install

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  
    235235QWidget *UIWizardNewVMPage1::createNameOSTypeWidgets()
    236236{
     237    QWidget *pContainerWidget = new QWidget;
     238    QVBoxLayout *pLayout = new QVBoxLayout(pContainerWidget);
     239    pLayout->setContentsMargins(0, 0, 0, 0);
     240
    237241    /* Prepare Name and OS Type editor: */
    238242    m_pNameAndSystemEditor = new UINameAndSystemEditor(0,
     
    241245                                                       true /* fChooseType? */,
    242246                                                       true /* fChooseISOFile? */);
    243     return m_pNameAndSystemEditor;
     247    pLayout->addWidget(m_pNameAndSystemEditor);
     248    m_pSkipUnattendedCheckBox = new QCheckBox;
     249    pLayout->addWidget(m_pSkipUnattendedCheckBox);
     250    return pContainerWidget;
    244251}
    245252
     
    397404}
    398405
     406bool UIWizardNewVMPage1::skipUnattendedInstall() const
     407{
     408    return m_pSkipUnattendedCheckBox && m_pSkipUnattendedCheckBox->isChecked();
     409}
     410
    399411bool UIWizardNewVMPage1::checkISOFile() const
    400412{
     
    438450        /* Prepare Name and OS Type editor: */
    439451        pPageLayout->addWidget(createNameOSTypeWidgets());
    440 
    441         m_pSkipUnattendedCheckBox = new QCheckBox;
    442         pPageLayout->addWidget(m_pSkipUnattendedCheckBox);
    443452
    444453        pPageLayout->addStretch();
     
    456465    registerField("ISOFilePath", this, "ISOFilePath");
    457466    registerField("isUnattendedEnabled", this, "isUnattendedEnabled");
     467    registerField("skipUnattendedInstall", this, "skipUnattendedInstall");
    458468    registerField("detectedOSTypeId", this, "detectedOSTypeId");
    459469}
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic1.h

    r88109 r88110  
    7070        bool isUnattendedEnabled() const;
    7171        const QString &detectedOSTypeId() const;
     72
     73        bool skipUnattendedInstall() const;
    7274    /** @} */
    7375
     
    124126    Q_PROPERTY(QString ISOFilePath READ ISOFilePath);
    125127    Q_PROPERTY(bool isUnattendedEnabled READ isUnattendedEnabled);
     128    Q_PROPERTY(bool skipUnattendedInstall READ skipUnattendedInstall);
    126129    Q_PROPERTY(QString detectedOSTypeId READ detectedOSTypeId);
    127 
    128130
    129131public:
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.cpp

    r88108 r88110  
    8383    registerField("ISOFilePath", this, "ISOFilePath");
    8484    registerField("isUnattendedEnabled", this, "isUnattendedEnabled");
     85    registerField("skipUnattendedInstall", this, "skipUnattendedInstall");
    8586    registerField("startHeadless", this, "startHeadless");
    8687    registerField("detectedOSTypeId", this, "detectedOSTypeId");
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.h

    r88108 r88110  
    5555    Q_PROPERTY(QString ISOFilePath READ ISOFilePath);
    5656    Q_PROPERTY(bool isUnattendedEnabled READ isUnattendedEnabled);
     57    Q_PROPERTY(bool skipUnattendedInstall READ skipUnattendedInstall);
    5758    Q_PROPERTY(bool startHeadless READ startHeadless);
    5859    Q_PROPERTY(QString detectedOSTypeId READ detectedOSTypeId);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette