VirtualBox

Changeset 78077 in vbox


Ignore:
Timestamp:
Apr 10, 2019 11:24:12 AM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9152: More cleanup for Export Appliance wizard.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic2.cpp

    r78074 r78077  
    735735}
    736736
    737 CCloudProfile UIWizardExportAppPage2::profile() const
    738 {
    739     return m_comCloudProfile;
    740 }
    741 
    742737AbstractVSDParameterList UIWizardExportAppPage2::cloudClientParameters() const
    743738{
     
    10331028    registerField("includeISOsSelected", this, "includeISOsSelected");
    10341029    registerField("providerShortName", this, "providerShortName");
    1035     registerField("profileName", this, "profileName");
    1036     registerField("profile", this, "profile");
    10371030    registerField("cloudClientParameters", this, "cloudClientParameters");
    10381031}
     
    11771170        const bool fCSP =    field("isFormatCloudOne").toBool();
    11781171
    1179         const QString &strFile = field("path").toString().toLower();
    1180         const QString &strAccount = field("profileName").toString();
    1181 
    11821172        fResult =    (   fOVF
    1183                       && VBoxGlobal::hasAllowedExtension(strFile, OVFFileExts))
     1173                      && VBoxGlobal::hasAllowedExtension(path().toLower(), OVFFileExts))
    11841174                  || (   fCSP
    1185                       && !strAccount.isNull());
     1175                      && !m_comCloudProfile.isNull());
    11861176    }
    11871177
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic2.h

    r78074 r78077  
    162162    /** Returns profile name. */
    163163    QString profileName() const;
    164     /** Returns Cloud Profile object. */
    165     CCloudProfile profile() const;
    166164    /** Returns Cloud Client parameters. */
    167165    AbstractVSDParameterList cloudClientParameters() const;
     
    241239    Q_PROPERTY(bool includeISOsSelected READ isIncludeISOsSelected WRITE setIncludeISOsSelected);
    242240    Q_PROPERTY(QString providerShortName READ providerShortName);
    243     Q_PROPERTY(QString profileName READ profileName);
    244     Q_PROPERTY(CCloudProfile profile READ profile);
    245241    Q_PROPERTY(AbstractVSDParameterList cloudClientParameters READ cloudClientParameters);
    246242
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageExpert.cpp

    r78074 r78077  
    381381    registerField("includeISOsSelected", this, "includeISOsSelected");
    382382    registerField("providerShortName", this, "providerShortName");
    383     registerField("profileName", this, "profileName");
    384     registerField("profile", this, "profile");
    385383    registerField("cloudClientParameters", this, "cloudClientParameters");
    386384    registerField("applianceWidget", this, "applianceWidget");
     
    526524        const bool fCSP =    field("isFormatCloudOne").toBool();
    527525
    528         const QString &strFile = field("path").toString().toLower();
    529         const QString &strAccount = field("profileName").toString();
    530         const AbstractVSDParameterList &parameters = field("cloudClientParameters").value<AbstractVSDParameterList>();
    531 
    532526        fResult =    (   fOVF
    533                       && VBoxGlobal::hasAllowedExtension(strFile, OVFFileExts))
     527                      && VBoxGlobal::hasAllowedExtension(path().toLower(), OVFFileExts))
    534528                  || (   fCSP
    535                       && !strAccount.isNull()
    536                       && !parameters.isEmpty());
     529                      && !m_comCloudProfile.isNull()
     530                      && !m_cloudClientParameters.isEmpty());
    537531    }
    538532
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageExpert.h

    r78037 r78077  
    4646    Q_PROPERTY(bool includeISOsSelected READ isIncludeISOsSelected WRITE setIncludeISOsSelected);
    4747    Q_PROPERTY(QString providerShortName READ providerShortName);
    48     Q_PROPERTY(QString profileName READ profileName);
    49     Q_PROPERTY(CCloudProfile profile READ profile);
    5048    Q_PROPERTY(AbstractVSDParameterList cloudClientParameters READ cloudClientParameters);
    5149    Q_PROPERTY(ExportAppliancePointer applianceWidget READ applianceWidget);
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