Changeset 84557 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- May 27, 2020 11:56:13 AM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 138287
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.cpp
r84545 r84557 139 139 { 140 140 return m_pPaneChooser->possibleGroupsForMachineToMove(uId); 141 } 142 143 QStringList UIVirtualBoxManagerWidget::possibleGroupsForGroupToMove(const QString &strFullName) 144 { 145 return m_pPaneChooser->possibleGroupsForGroupToMove(strFullName); 141 146 } 142 147 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.h
r84545 r84557 148 148 /** Moves machine to a group with certain @a strName. */ 149 149 void moveMachineToGroup(const QString &strName = QString()); 150 /** Returns possible groups for VMwith passed @a uId to move to. */150 /** Returns possible groups for machine with passed @a uId to move to. */ 151 151 QStringList possibleGroupsForMachineToMove(const QUuid &uId); 152 /** Returns possible groups for group with passed @a strFullName to move to. */ 153 QStringList possibleGroupsForGroupToMove(const QString &strFullName); 152 154 /** Refreshes machine. */ 153 155 void refreshMachine(); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooser.cpp
r84545 r84557 141 141 AssertPtrReturn(model(), QStringList()); 142 142 return model()->possibleGroupNodeNamesForMachineNodeToMove(uId); 143 } 144 145 QStringList UIChooser::possibleGroupsForGroupToMove(const QString &strFullName) 146 { 147 AssertPtrReturn(model(), QStringList()); 148 return model()->possibleGroupNodeNamesForGroupNodeToMove(strFullName); 143 149 } 144 150 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooser.h
r84545 r84557 142 142 /** Moves machine to a group with certain @a strName. */ 143 143 void moveMachineToGroup(const QString &strName); 144 /** Returns possible groups for VMwith passed @a uId to move to. */144 /** Returns possible groups for machine with passed @a uId to move to. */ 145 145 QStringList possibleGroupsForMachineToMove(const QUuid &uId); 146 /** Returns possible groups for group with passed @a strFullName to move to. */ 147 QStringList possibleGroupsForGroupToMove(const QString &strFullName); 146 148 /** Refreshes machine. */ 147 149 void refreshMachine(); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.cpp
r84545 r84557 526 526 /* Return group nodes starting from root one: */ 527 527 return gatherPossibleGroupNodeNames(invisibleRoot(), machineNodes); 528 } 529 530 QStringList UIChooserAbstractModel::possibleGroupNodeNamesForGroupNodeToMove(const QString &strFullName) 531 { 532 /* Search for all the group nodes with passed full-name: */ 533 QList<UIChooserNode*> groupNodes; 534 invisibleRoot()->searchForNodes(strFullName, 535 UIChooserItemSearchFlag_LocalGroup | UIChooserItemSearchFlag_ExactId, 536 groupNodes); 537 538 /* Return group nodes starting from root one: */ 539 return gatherPossibleGroupNodeNames(invisibleRoot(), groupNodes); 528 540 } 529 541 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.h
r84545 r84557 80 80 void wipeOutEmptyGroups(); 81 81 82 /** Returns possible group node names for VMnode with passed @a uId to move to. */82 /** Returns possible group node names for machine node with passed @a uId to move to. */ 83 83 QStringList possibleGroupNodeNamesForMachineNodeToMove(const QUuid &uId); 84 /** Returns possible group node names for group node with passed @a strFullName to move to. */ 85 QStringList possibleGroupNodeNamesForGroupNodeToMove(const QString &strFullName); 84 86 85 87 /** Generates unique group name traversing recursively starting from @a pRoot. */
Note:
See TracChangeset
for help on using the changeset viewer.