VirtualBox

Changeset 88116 in vbox


Ignore:
Timestamp:
Mar 15, 2021 10:33:53 AM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9950. Fixing the expert mode

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

    r88115 r88116  
    478478    registerField("ISOFilePath", this, "ISOFilePath");
    479479    registerField("isUnattendedEnabled", this, "isUnattendedEnabled");
    480     //registerField("skipUnattendedInstall", this, "skipUnattendedInstall");
    481480    registerField("detectedOSTypeId", this, "detectedOSTypeId");
    482481}
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic1.h

    r88115 r88116  
    126126    Q_PROPERTY(QString ISOFilePath READ ISOFilePath);
    127127    Q_PROPERTY(bool isUnattendedEnabled READ isUnattendedEnabled);
    128     //Q_PROPERTY(bool skipUnattendedInstall READ skipUnattendedInstall);
    129128    Q_PROPERTY(QString detectedOSTypeId READ detectedOSTypeId);
    130129
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.cpp

    r88115 r88116  
    8383    registerField("ISOFilePath", this, "ISOFilePath");
    8484    registerField("isUnattendedEnabled", this, "isUnattendedEnabled");
    85     //registerField("skipUnattendedInstall", this, "skipUnattendedInstall");
    8685    registerField("startHeadless", this, "startHeadless");
    8786    registerField("detectedOSTypeId", this, "detectedOSTypeId");
     
    138137    if (fileInfo.exists() && fileInfo.isReadable())
    139138        uiCommon().updateRecentlyUsedMediumListAndFolder(UIMediumDeviceType_DVD, strPath);
     139    setSkipCheckBoxEnable();
    140140    emit completeChanged();
    141141}
     
    254254                this, &UIWizardNewVMPageExpert::sltValueModified);
    255255    }
     256    connect(m_pSkipUnattendedCheckBox, &QCheckBox::toggled, this, &UIWizardNewVMPageExpert::sltSkipUnattendedCheckBoxChecked);
    256257}
    257258
     
    323324    updateVirtualDiskPathFromMachinePathName();
    324325    updateWidgetAterMediumFormatChange();
     326    setSkipCheckBoxEnable();
    325327    retranslateUi();
    326328}
     
    434436        if (!checkISOFile())
    435437        {
    436             m_pToolBox->setPageTitleIcon(ExpertToolboxItems_Unattended,
     438            m_pToolBox->setPageTitleIcon(ExpertToolboxItems_NameAndOSType,
    437439                                         UIIconPool::iconSet(":/status_error_16px.png"),
    438440                                         UIWizardNewVM::tr("Invalid path or unreadable ISO file"));
     
    542544        return;
    543545    m_userSetWidgets << pSenderWidget;
     546}
     547
     548void UIWizardNewVMPageExpert::sltSkipUnattendedCheckBoxChecked()
     549{
     550    disableEnableUnattendedRelatedWidgets(isUnattendedEnabled());
    544551}
    545552
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.h

    r88115 r88116  
    5555    Q_PROPERTY(QString ISOFilePath READ ISOFilePath);
    5656    Q_PROPERTY(bool isUnattendedEnabled READ isUnattendedEnabled);
    57     //Q_PROPERTY(bool skipUnattendedInstall READ skipUnattendedInstall);
    5857    Q_PROPERTY(bool startHeadless READ startHeadless);
    5958    Q_PROPERTY(QString detectedOSTypeId READ detectedOSTypeId);
     
    9998    void sltInstallGACheckBoxToggle(bool fEnabled);
    10099    void sltValueModified();
     100    void sltSkipUnattendedCheckBoxChecked();
    101101    void sltMediumFormatChanged();
    102102    void sltMediumSizeChanged();
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