Changeset 83673 in vbox for trunk/src/VBox
- Timestamp:
- Apr 10, 2020 5:31:04 PM (5 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.cpp
r83672 r83673 389 389 0 /* position */, 390 390 QString() /* name */, 391 UIChooserNodeGroupType_Local, 391 392 true /* opened */); 392 393 if (invisibleRoot()) … … 456 457 strProviderName), 457 458 strProviderName, 459 UIChooserNodeGroupType_Provider, 458 460 false /* opened */); 459 461 … … 487 489 strProfileName), 488 490 strProfileName, 491 UIChooserNodeGroupType_Profile, 489 492 true /* opened */); 490 493 /* Add fake cloud VM item: */ … … 595 598 getDesiredNodePosition(pParentNode, UIChooserNodeType_Group, strSecondSubName), 596 599 strSecondSubName, 600 UIChooserNodeGroupType_Local, 597 601 fAllGroupsOpened || shouldGroupNodeBeOpened(pParentNode, strSecondSubName)); 598 602 return strSecondSuffix.isEmpty() ? pNewGroupNode : getGroupNode(strFirstSuffix, pNewGroupNode, fAllGroupsOpened); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserDefs.h
r83672 r83673 39 39 40 40 41 /** UIChooserNodeGroup types. */ 42 enum UIChooserNodeGroupType 43 { 44 UIChooserNodeGroupType_Local, 45 UIChooserNodeGroupType_Provider, 46 UIChooserNodeGroupType_Profile 47 }; 48 49 41 50 /** UIChooserItem search flags. */ 42 51 enum UIChooserItemSearchFlag -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemMachine.cpp
r83672 r83673 429 429 parentItem()->node()->nodes().size(), 430 430 UIChooserModel::uniqueGroupName(parentItem()->node()), 431 parentItem()->node()->toGroupNode()->groupType(), 431 432 true /* true */); 432 433 UIChooserItemGroup *pNewGroupItem = new UIChooserItemGroup(parentItem(), pNewGroupNode); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.cpp
r83672 r83673 946 946 invisibleRoot()->nodes().size() /* position */, 947 947 uniqueGroupName(invisibleRoot()), 948 UIChooserNodeGroupType_Local, 948 949 true /* opened */); 949 950 UIChooserItemGroup *pNewGroupItem = new UIChooserItemGroup(root(), pNewGroupNode); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserNodeGroup.cpp
r83672 r83673 29 29 int iPosition, 30 30 const QString &strName, 31 UIChooserNodeGroupType enmGroupType, 31 32 bool fOpened) 32 33 : UIChooserNode(pParent, fFavorite) 33 34 , m_strName(strName) 35 , m_enmGroupType(enmGroupType) 34 36 , m_fOpened(fOpened) 35 37 { … … 47 49 : UIChooserNode(pParent, pCopyFrom->isFavorite()) 48 50 , m_strName(pCopyFrom->name()) 51 , m_enmGroupType(pCopyFrom->groupType()) 49 52 , m_fOpened(pCopyFrom->isOpened()) 50 53 { -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserNodeGroup.h
r83672 r83673 34 34 35 35 /** Constructs chooser node passing @a pParent to the base-class. 36 * @param fFavorite Brings whether the node is favorite. 37 * @param iPosition Brings the initial node position. 38 * @param strName Brings current node name. 39 * @param fOpened Brings whether this group node is opened. */ 36 * @param fFavorite Brings whether the node is favorite. 37 * @param iPosition Brings the initial node position. 38 * @param strName Brings current node name. 39 * @param enmGroupType Brings group node type. 40 * @param fOpened Brings whether this group node is opened. */ 40 41 UIChooserNodeGroup(UIChooserNode *pParent, 41 42 bool fFavorite, 42 43 int iPosition, 43 44 const QString &strName, 45 UIChooserNodeGroupType enmGroupType, 44 46 bool fOpened); 45 47 /** Constructs chooser node passing @a pParent to the base-class. … … 89 91 void setName(const QString &strName); 90 92 93 /** Returns group node type. */ 94 UIChooserNodeGroupType groupType() const { return m_enmGroupType; } 95 91 96 /** Returns whether this group node is opened. */ 92 97 bool isOpened() const { return m_fOpened; } … … 116 121 117 122 /** Holds the node name. */ 118 QString m_strName; 123 QString m_strName; 124 /** Holds the group node type. */ 125 UIChooserNodeGroupType m_enmGroupType; 119 126 /** Holds whether node is opened. */ 120 bool m_fOpened;127 bool m_fOpened; 121 128 122 129 /** Holds group children. */
Note:
See TracChangeset
for help on using the changeset viewer.