Changeset 91563 in vbox for trunk/src/VBox
- Timestamp:
- Oct 5, 2021 11:04:45 AM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageBasic1.cpp
r91561 r91563 68 68 void UIWizardImportAppPage1::populateSources() 69 69 { 70 /* To be executed just once, so combo should be empty: */ 71 AssertReturnVoid(m_pSourceComboBox->count() == 0); 70 /* Block signals while updating: */ 71 m_pSourceComboBox->blockSignals(true); 72 73 /* Clear combo initially: */ 74 m_pSourceComboBox->clear(); 72 75 73 76 /* Compose hardcoded sources list, there might be few of list items: */ … … 110 113 else 111 114 setSource("local"); 115 116 /* Unblock signals after update: */ 117 m_pSourceComboBox->blockSignals(false); 112 118 } 113 119 … … 301 307 void UIWizardImportAppPage1::updateSourceComboToolTip() 302 308 { 303 const int iCurrentIndex = m_pSourceComboBox->currentIndex(); 304 const QString strCurrentToolTip = m_pSourceComboBox->itemData(iCurrentIndex, Qt::ToolTipRole).toString(); 305 AssertMsg(!strCurrentToolTip.isEmpty(), ("Data not found!")); 309 const QString strCurrentToolTip = m_pSourceComboBox->currentData(Qt::ToolTipRole).toString(); 306 310 m_pSourceComboBox->setToolTip(strCurrentToolTip); 307 311 } … … 525 529 } 526 530 527 /* Populate sources: */528 populateSources();529 /* Populate profiles: */530 populateProfiles();531 /* Populate profile: */532 populateProfile();533 /* Populate profile instances: */534 populateProfileInstances();535 536 531 /* Setup connections: */ 537 532 connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigCloudProfileRegistered, … … 551 546 552 547 /* Register fields: */ 553 registerField("source", this, "source");554 548 registerField("isSourceCloudOne", this, "isSourceCloudOne"); 555 549 registerField("profile", this, "profile"); … … 616 610 void UIWizardImportAppPageBasic1::initializePage() 617 611 { 612 /* Populate sources: */ 613 populateSources(); 614 /* Populate profiles: */ 615 populateProfiles(); 616 /* Populate profile: */ 617 populateProfile(); 618 /* Populate profile instances: */ 619 populateProfileInstances(); 620 618 621 /* Translate page: */ 619 622 retranslateUi(); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageBasic1.h
r91547 r91563 157 157 { 158 158 Q_OBJECT; 159 Q_PROPERTY(QString source READ source WRITE setSource);160 159 Q_PROPERTY(bool isSourceCloudOne READ isSourceCloudOne); 161 160 Q_PROPERTY(CCloudProfile profile READ profile); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageExpert.cpp
r91561 r91563 212 212 } 213 213 214 /* Populate sources: */215 populateSources();216 /* Populate profiles: */217 populateProfiles();218 /* Populate profile: */219 populateProfile();220 /* Populate profile instances: */221 populateProfileInstances();222 /* Populate form properties: */223 populateFormProperties();224 refreshFormPropertiesTable();225 226 214 /* Setup connections: */ 227 215 connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigCloudProfileRegistered, … … 243 231 qRegisterMetaType<ImportAppliancePointer>(); 244 232 /* Register fields: */ 245 registerField("source", this, "source");246 233 registerField("isSourceCloudOne", this, "isSourceCloudOne"); 247 234 registerField("profile", this, "profile"); … … 289 276 void UIWizardImportAppPageExpert::initializePage() 290 277 { 278 /* Populate sources: */ 279 populateSources(); 280 /* Populate profiles: */ 281 populateProfiles(); 282 /* Populate profile: */ 283 populateProfile(); 284 /* Populate profile instances: */ 285 populateProfileInstances(); 286 /* Populate form properties: */ 287 populateFormProperties(); 288 refreshFormPropertiesTable(); 289 291 290 /* Translate page: */ 292 291 retranslateUi(); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageExpert.h
r91521 r91563 35 35 { 36 36 Q_OBJECT; 37 Q_PROPERTY(QString source READ source WRITE setSource);38 37 Q_PROPERTY(bool isSourceCloudOne READ isSourceCloudOne); 39 38 Q_PROPERTY(CCloudProfile profile READ profile); … … 51 50 protected: 52 51 52 /** Allows access wizard from base part. */ 53 UIWizard *wizardImp() const { return UIWizardPage::wizard(); } 53 54 /** Allows to access 'field()' from base part. */ 54 55 virtual QVariant fieldImp(const QString &strFieldName) const /* override */ { return UIWizardPage::field(strFieldName); }
Note:
See TracChangeset
for help on using the changeset viewer.