VirtualBox

Changeset 79247 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 19, 2019 3:46:49 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9495: UIWizardNewCloudVM: 1st basic and expert pages: Rework progress requests to be async on wizard startup.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageBasic1.cpp

    r79244 r79247  
    4545UIWizardNewCloudVMPage1::UIWizardNewCloudVMPage1(bool fImportFromOCIByDefault)
    4646    : m_fImportFromOCIByDefault(fImportFromOCIByDefault)
     47    , m_fPolished(false)
    4748    , m_pSourceLayout(0)
    4849    , m_pSourceLabel(0)
     
    667668    /* Populate sources: */
    668669    populateSources();
    669     /* Populate accounts: */
    670     populateAccounts();
    671     /* Populate account properties: */
    672     populateAccountProperties();
    673     /* Populate account instances: */
    674     populateAccountInstances();
    675670
    676671    /* Setup connections: */
     
    761756void UIWizardNewCloudVMPageBasic1::initializePage()
    762757{
     758    /* If wasn't polished yet: */
     759    if (!m_fPolished)
     760    {
     761        QMetaObject::invokeMethod(this, "sltHandleSourceChange", Qt::QueuedConnection);
     762        m_fPolished = true;
     763    }
     764
    763765    /* Translate page: */
    764766    retranslateUi();
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageBasic1.h

    r79244 r79247  
    104104    /** Holds whether default source should be Import from OCI. */
    105105    bool  m_fImportFromOCIByDefault;
     106    /** Holds whether starting page was polished. */
     107    bool  m_fPolished;
    106108
    107109    /** Holds the Cloud Provider Manager reference. */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.cpp

    r79244 r79247  
    167167    /* Populate sources: */
    168168    populateSources();
    169     /* Populate accounts: */
    170     populateAccounts();
    171     /* Populate account properties: */
    172     populateAccountProperties();
    173     /* Populate account instances: */
    174     populateAccountInstances();
    175     /* Populate form properties: */
    176     populateFormProperties();
    177     refreshFormPropertiesTable();
    178169
    179170    /* Setup connections: */
     
    241232void UIWizardNewCloudVMPageExpert::initializePage()
    242233{
     234    /* If wasn't polished yet: */
     235    if (!m_fPolished)
     236    {
     237        QMetaObject::invokeMethod(this, "sltHandleSourceChange", Qt::QueuedConnection);
     238        m_fPolished = true;
     239    }
     240
    243241    /* Translate page: */
    244242    retranslateUi();
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