VirtualBox

Changeset 75217 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Nov 1, 2018 4:51:14 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9152: Export appliance wizard: Page 3: Separate class definition for abstract VSD parameter list.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIApplianceEditorWidget.cpp

    r75079 r75217  
    15181518}
    15191519
    1520 void UIApplianceModel::setVsdHints(const QList<AbstractVSDParameter> &hints)
     1520void UIApplianceModel::setVsdHints(const AbstractVSDParameterList &hints)
    15211521{
    15221522    m_listVsdHints = hints;
     
    18421842}
    18431843
    1844 void UIApplianceEditorWidget::setVsdHints(const QList<AbstractVSDParameter> &hints)
     1844void UIApplianceEditorWidget::setVsdHints(const AbstractVSDParameterList &hints)
    18451845{
    18461846    /* Save here as well: */
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIApplianceEditorWidget.h

    r75046 r75217  
    125125};
    126126
     127/** Abstract VSD parameter list. */
     128typedef QList<AbstractVSDParameter> AbstractVSDParameterList;
     129Q_DECLARE_METATYPE(AbstractVSDParameterList);
     130
    127131
    128132/** Appliance tree-view section types. */
     
    191195
    192196    /** Defines the list of VSD @a hints. */
    193     void setVsdHints(const QList<AbstractVSDParameter> &hints);
     197    void setVsdHints(const AbstractVSDParameterList &hints);
    194198    /** Returns a name hint for certain VSD @a enmType. */
    195199    QString nameHint(KVirtualSystemDescriptionType enmType) const;
     
    202206
    203207    /** Holds the list of VSD hints. */
    204     QList<AbstractVSDParameter> m_listVsdHints;
     208    AbstractVSDParameterList m_listVsdHints;
    205209
    206210    /** Holds the root item reference. */
     
    288292
    289293    /** Defines the list of VSD @a hints. */
    290     void setVsdHints(const QList<AbstractVSDParameter> &hints);
     294    void setVsdHints(const AbstractVSDParameterList &hints);
    291295
    292296    /** Returns whether the Appliance Editor has valid state. */
     
    317321
    318322    /** Holds the list of VSD hints. */
    319     QList<AbstractVSDParameter> m_listVsdHints;
     323    AbstractVSDParameterList m_listVsdHints;
    320324
    321325    /** Holds the currently set appliance reference. */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic3.cpp

    r75056 r75217  
    7979
    8080/* static */
    81 QList<AbstractVSDParameter> UIWizardExportAppPage3::parseJsonDocument(const QJsonDocument &document)
     81AbstractVSDParameterList UIWizardExportAppPage3::parseJsonDocument(const QJsonDocument &document)
    8282{
    8383    /* Prepare parameters: */
    84     QList<AbstractVSDParameter> parameters;
     84    AbstractVSDParameterList parameters;
    8585
    8686    /* Convert document to object, make sure it isn't empty: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic3.h

    r75046 r75217  
    4747
    4848    /** Parses JSON @a document. */
    49     static QList<AbstractVSDParameter> parseJsonDocument(const QJsonDocument &document);
     49    static AbstractVSDParameterList parseJsonDocument(const QJsonDocument &document);
    5050    /** Parses JSON bool @a field. */
    5151    static bool parseJsonFieldBool(const QString &strFieldName, const QJsonValue &field);
     
    6464
    6565    /** Holds the cloud client parameters. */
    66     QList<AbstractVSDParameter> m_listCloudClientParameters;
     66    AbstractVSDParameterList m_listCloudClientParameters;
    6767
    6868    /** Holds the appliance widget reference. */
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