VirtualBox

Changeset 73009 in vbox


Ignore:
Timestamp:
Jul 9, 2018 12:39:29 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9152: Export Appliance wizard: Storage page: A bit of refactoring.

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

Legend:

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

    r73007 r73009  
    7272}
    7373
    74 void UIWizardExportAppPage3::refreshCurrentSettings()
    75 {
    76     /* Setup components for chosen storage-type: */
     74void UIWizardExportAppPage3::updatePageAppearance()
     75{
     76    /* Update page appearance according to chosen storage-type: */
    7777    const StorageType enmStorageType = fieldImp("storageType").value<StorageType>();
    7878    switch (enmStorageType)
     
    103103        }
    104104    }
    105 
     105}
     106
     107void UIWizardExportAppPage3::refreshCurrentSettings()
     108{
    106109    /* Compose file-name: */
    107110    QString strName;
     
    142145
    143146    /* Copose file-path for 'LocalFilesystem' storage case: */
     147    const StorageType enmStorageType = fieldImp("storageType").value<StorageType>();
    144148    if (enmStorageType == LocalFilesystem)
    145149        strName = QDir::toNativeSeparators(QString("%1/%2").arg(vboxGlobal().documentsPath()).arg(strName));
     
    391395    /* Refresh current settings: */
    392396    refreshCurrentSettings();
     397
     398    /* Update page appearance: */
     399    updatePageAppearance();
     400
     401    /* Update tool-tips: */
    393402    updateFormatComboToolTip();
    394403    updateProviderComboToolTip();
     
    435444}
    436445
    437 void UIWizardExportAppPageBasic3::refreshCurrentSettings()
    438 {
    439     /* Refresh base-class settings: */
    440     UIWizardExportAppPage3::refreshCurrentSettings();
    441 
    442     /* Setup components for chosen storage-type: */
     446void UIWizardExportAppPageBasic3::updatePageAppearance()
     447{
     448    /* Call to base-class: */
     449    UIWizardExportAppPage3::updatePageAppearance();
     450
     451    /* Update page appearance according to chosen storage-type: */
    443452    const StorageType enmStorageType = field("storageType").value<StorageType>();
    444453    switch (enmStorageType)
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic3.h

    r73007 r73009  
    4848    void chooseDefaultSettings();
    4949
     50    /** Updates page appearance. */
     51    virtual void updatePageAppearance();
     52
    5053    /** Refreshes current settings. */
    51     virtual void refreshCurrentSettings();
     54    void refreshCurrentSettings();
    5255
    5356    /** Updates format combo tool-tips. */
    54     virtual void updateFormatComboToolTip();
     57    void updateFormatComboToolTip();
    5558    /** Updates provider combo tool-tips. */
    56     virtual void updateProviderComboToolTip();
     59    void updateProviderComboToolTip();
    5760
    5861    /** Returns path. */
     
    129132    virtual bool isComplete() const /* override */;
    130133
    131     /** Refreshes current settings. */
    132     virtual void refreshCurrentSettings() /* override */;
     134    /** Updates page appearance. */
     135    virtual void updatePageAppearance() /* override */;
    133136
    134137private slots:
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