Changeset 73187 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jul 17, 2018 3:22:52 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 123790
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic3.cpp
r73183 r73187 133 133 void UIWizardExportAppPage3::populateProfiles() 134 134 { 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: */ 143 141 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 } 149 149 } 150 150
Note:
See TracChangeset
for help on using the changeset viewer.