Changeset 86690 in vbox for trunk/src/VBox
- Timestamp:
- Oct 23, 2020 2:34:40 PM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/cloud/profilemanager
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/cloud/profilemanager/UICloudProfileManager.cpp
r86689 r86690 816 816 UIDataCloudProvider providerData; 817 817 loadCloudProvider(comCloudProvider, restrictions, providerData); 818 createItemForCloudProvider(providerData , false);818 createItemForCloudProvider(providerData); 819 819 820 820 /* Make sure provider item is properly inserted: */ … … 832 832 UIDataCloudProfile profileData; 833 833 loadCloudProfile(comCloudProfile, restrictions, providerData, profileData); 834 createItemForCloudProfile(pItem, profileData , false);834 createItemForCloudProfile(pItem, profileData); 835 835 } 836 836 … … 934 934 } 935 935 936 void UICloudProfileManagerWidget::createItemForCloudProvider(const UIDataCloudProvider &providerData, 937 bool fChooseItem) 936 void UICloudProfileManagerWidget::createItemForCloudProvider(const UIDataCloudProvider &providerData) 938 937 { 939 938 /* Create new provider item: */ … … 946 945 /* Add item to the tree: */ 947 946 m_pTreeWidget->addTopLevelItem(pItem); 948 /* And choose it as current if necessary: */949 if (fChooseItem)950 m_pTreeWidget->setCurrentItem(pItem);951 947 } 952 948 } 953 949 954 950 void UICloudProfileManagerWidget::createItemForCloudProfile(QTreeWidgetItem *pParent, 955 const UIDataCloudProfile &profileData, 956 bool fChooseItem) 951 const UIDataCloudProfile &profileData) 957 952 { 958 953 /* Create new profile item: */ … … 965 960 /* Add item to the parent: */ 966 961 pParent->addChild(pItem); 967 /* And choose it as current if necessary: */968 if (fChooseItem)969 m_pTreeWidget->setCurrentItem(pItem);970 962 } 971 963 } -
trunk/src/VBox/Frontends/VirtualBox/src/cloud/profilemanager/UICloudProfileManager.h
r86689 r86690 171 171 172 172 /** Creates a new tree-widget item 173 * on the basis of passed @a providerData , @a fChooseItem if requested. */174 void createItemForCloudProvider(const UIDataCloudProvider &providerData , bool fChooseItem);173 * on the basis of passed @a providerData. */ 174 void createItemForCloudProvider(const UIDataCloudProvider &providerData); 175 175 /** Creates a new tree-widget item as a child of certain @a pParent, 176 * on the basis of passed @a profileData , @a fChooseItem if requested. */177 void createItemForCloudProfile(QTreeWidgetItem *pParent, const UIDataCloudProfile &profileData , bool fChooseItem);176 * on the basis of passed @a profileData. */ 177 void createItemForCloudProfile(QTreeWidgetItem *pParent, const UIDataCloudProfile &profileData); 178 178 179 179 /* Gathers a list of Cloud Profile Manager restrictions starting from @a pParentItem. */
Note:
See TracChangeset
for help on using the changeset viewer.