VirtualBox

Ignore:
Timestamp:
Jun 4, 2019 3:02:03 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9434: Import Appliance wizard: 2nd and Expert pages: A bit of refactoring.

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

Legend:

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

    r78893 r78970  
    4444}
    4545
    46 void UIWizardImportAppPage2::populateFormPropertiesTable()
    47 {
    48     CVirtualSystemDescriptionForm comForm = fieldImp("vsdForm").value<CVirtualSystemDescriptionForm>();
    49     if (comForm.isNotNull())
    50         m_pFormEditor->setVirtualSystemDescriptionForm(comForm);
    51 }
    52 
    5346void UIWizardImportAppPage2::updatePageAppearance()
    5447{
     
    5750    /* Update page appearance according to chosen source: */
    5851    m_pSettingsCntLayout->setCurrentIndex((int)fIsSourceCloudOne);
     52}
     53
     54void UIWizardImportAppPage2::refreshFormPropertiesTable()
     55{
     56    /* Acquire VSD form: */
     57    CVirtualSystemDescriptionForm comForm = fieldImp("vsdForm").value<CVirtualSystemDescriptionForm>();
     58    /* Make sure the properties table get the new description form: */
     59    if (comForm.isNotNull())
     60        m_pFormEditor->setVirtualSystemDescriptionForm(comForm);
    5961}
    6062
     
    200202    const bool fIsSourceCloudOne = field("isSourceCloudOne").toBool();
    201203    if (fIsSourceCloudOne)
    202         populateFormPropertiesTable();
     204        refreshFormPropertiesTable();
    203205    else
    204206    {
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageBasic2.h

    r78853 r78970  
    4040    UIWizardImportAppPage2();
    4141
    42     /** Populates form properties table. */
    43     void populateFormPropertiesTable();
    44 
    4542    /** Updates page appearance. */
    4643    virtual void updatePageAppearance();
     44
     45    /** Refreshes form properties table. */
     46    void refreshFormPropertiesTable();
    4747
    4848    /** Returns appliance widget instance. */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageExpert.cpp

    r78894 r78970  
    258258    /* Populate form properties: */
    259259    populateFormProperties();
    260     populateFormPropertiesTable();
     260    refreshFormPropertiesTable();
    261261
    262262    /* Setup connections: */
     
    433433    populateAccountInstances();
    434434    populateFormProperties();
    435     populateFormPropertiesTable();
     435    refreshFormPropertiesTable();
    436436    emit completeChanged();
    437437}
     
    456456    populateAccountInstances();
    457457    populateFormProperties();
    458     populateFormPropertiesTable();
     458    refreshFormPropertiesTable();
    459459    emit completeChanged();
    460460}
     
    470470{
    471471    populateFormProperties();
    472     populateFormPropertiesTable();
     472    refreshFormPropertiesTable();
    473473    emit completeChanged();
    474474}
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