VirtualBox

Changeset 86690 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Oct 23, 2020 2:34:40 PM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9653: VirtualBox Manager: Cloud Profile Manager: A bit of cleanup for item creation stuff.

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  
    816816        UIDataCloudProvider providerData;
    817817        loadCloudProvider(comCloudProvider, restrictions, providerData);
    818         createItemForCloudProvider(providerData, false);
     818        createItemForCloudProvider(providerData);
    819819
    820820        /* Make sure provider item is properly inserted: */
     
    832832            UIDataCloudProfile profileData;
    833833            loadCloudProfile(comCloudProfile, restrictions, providerData, profileData);
    834             createItemForCloudProfile(pItem, profileData, false);
     834            createItemForCloudProfile(pItem, profileData);
    835835        }
    836836
     
    934934}
    935935
    936 void UICloudProfileManagerWidget::createItemForCloudProvider(const UIDataCloudProvider &providerData,
    937                                                              bool fChooseItem)
     936void UICloudProfileManagerWidget::createItemForCloudProvider(const UIDataCloudProvider &providerData)
    938937{
    939938    /* Create new provider item: */
     
    946945        /* Add item to the tree: */
    947946        m_pTreeWidget->addTopLevelItem(pItem);
    948         /* And choose it as current if necessary: */
    949         if (fChooseItem)
    950             m_pTreeWidget->setCurrentItem(pItem);
    951947    }
    952948}
    953949
    954950void UICloudProfileManagerWidget::createItemForCloudProfile(QTreeWidgetItem *pParent,
    955                                                             const UIDataCloudProfile &profileData,
    956                                                             bool fChooseItem)
     951                                                            const UIDataCloudProfile &profileData)
    957952{
    958953    /* Create new profile item: */
     
    965960        /* Add item to the parent: */
    966961        pParent->addChild(pItem);
    967         /* And choose it as current if necessary: */
    968         if (fChooseItem)
    969             m_pTreeWidget->setCurrentItem(pItem);
    970962    }
    971963}
  • trunk/src/VBox/Frontends/VirtualBox/src/cloud/profilemanager/UICloudProfileManager.h

    r86689 r86690  
    171171
    172172        /** 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);
    175175        /** 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);
    178178
    179179        /* Gathers a list of Cloud Profile Manager restrictions starting from @a pParentItem. */
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