VirtualBox

Ignore:
Timestamp:
Jul 17, 2018 3:22:52 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
123790
Message:

FE/Qt: bugref:9152: Export Appliance wizard: Appliance page: Integrating CCloudUserProfileList itself.

File:
1 edited

Legend:

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

    r73183 r73187  
    133133void UIWizardExportAppPage3::populateProfiles()
    134134{
    135     /* Acquire profile list: */
    136     // Here goes the experiamental list with
    137     // arbitrary contents for testing purposes.
    138     QStringList profiles;
    139     profiles << "Dummy Profile 1";
    140     profiles << "Dummy Profile 2";
    141     profiles << "Dummy Profile 3";
    142     profiles << "Dummy Profile 4";
     135    /* Acquire Cloud User-profile List: */
     136    CCloudUserProfileList comProfiles = m_comCloudUserProfileManager.GetProfilesByProvider(provider());
     137    AssertMsgReturnVoid(m_comCloudUserProfileManager.isOk() && comProfiles.isNotNull(),
     138                        ("Unable to acquire Cloud User-profile List"));
     139
     140    /* Clear combo initially: */
    143141    m_pProfileComboBox->clear();
    144     m_pProfileComboBox->addItems(profiles);
    145 
    146     /* Duplicate non-translated names to data fields: */
    147     for (int i = 0; i < m_pProfileComboBox->count(); ++i)
    148         m_pProfileComboBox->setItemData(i, m_pProfileComboBox->itemText(i));
     142
     143    /* Add non-translated provider names into combo: */
     144    foreach (const QString &strProfileName, comProfiles.GetStoredProfilesNames())
     145    {
     146        m_pProfileComboBox->addItem(strProfileName);
     147        m_pProfileComboBox->setItemData(m_pProfileComboBox->count() - 1, strProfileName);
     148    }
    149149}
    150150
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette