VirtualBox

Changeset 78274 in vbox for trunk/src


Ignore:
Timestamp:
Apr 24, 2019 2:38:53 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9434: Import Appliance wizard: 2nd basic page: Move form properties table population code to separate method, to be reused from the expert wizard page.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageBasic2.cpp

    r78260 r78274  
    4040UIWizardImportAppPage2::UIWizardImportAppPage2()
    4141{
     42}
     43
     44void UIWizardImportAppPage2::populateFormPropertiesTable()
     45{
     46    CVirtualSystemDescriptionForm comForm = fieldImp("vsdForm").value<CVirtualSystemDescriptionForm>();
     47    if (comForm.isNotNull())
     48        m_pFormEditor->setVirtualSystemDescriptionForm(comForm);
    4249}
    4350
     
    157164
    158165    if (fIsSourceCloudOne)
    159         m_pFormEditor->setVirtualSystemDescriptionForm(field("vsdForm").value<CVirtualSystemDescriptionForm>());
     166        populateFormPropertiesTable();
    160167    else
    161168    {
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageBasic2.h

    r78217 r78274  
    3939    UIWizardImportAppPage2();
    4040
     41    /** Populates form properties table. */
     42    void populateFormPropertiesTable();
     43
    4144    /** Returns appliance widget instance. */
    4245    ImportAppliancePointer applianceWidget() const { return m_pApplianceWidget; }
     
    6063    UIWizardImportAppPageBasic2(const QString &strFileName);
    6164
    62 private:
     65protected:
     66
     67    /** Allows to access 'field()' from base part. */
     68    virtual QVariant fieldImp(const QString &strFieldName) const /* override */ { return UIWizardPage::field(strFieldName); }
    6369
    6470    /** Handles translation event. */
     
    7682    virtual bool validatePage() /* override */;
    7783
     84private:
     85
    7886    /** Holds the label instance. */
    7987    QIRichTextLabel *m_pLabel;
     
    9098
    9199    /** Holds the "signed by" information. */
    92     QString m_strSignedBy;
     100    QString  m_strSignedBy;
    93101};
    94102
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