- Timestamp:
- Oct 21, 2020 2:11:10 PM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.cpp
r86655 r86664 730 730 /* If there are no items left => add fake cloud VM node: */ 731 731 if (pProfileNode->nodes(UIChooserNodeType_Machine).isEmpty()) 732 new UIChooserNodeMachine(pProfileNode /* parent */, 733 0 /* position */, 734 UIFakeCloudVirtualMachineItemState_Done); 732 createCloudMachineNode(pProfileNode, UIFakeCloudVirtualMachineItemState_Done); 735 733 } 736 734 … … 753 751 /* If there are no items left => add fake cloud VM node: */ 754 752 if (pProfileNode->nodes(UIChooserNodeType_Machine).isEmpty()) 755 new UIChooserNodeMachine(pProfileNode /* parent */, 756 0 /* position */, 757 UIFakeCloudVirtualMachineItemState_Done); 753 createCloudMachineNode(pProfileNode, UIFakeCloudVirtualMachineItemState_Done); 758 754 } 759 755 … … 1054 1050 1055 1051 /* Add fake cloud VM item: */ 1056 new UIChooserNodeMachine(pProfileNode /* parent */, 1057 0 /* position */, 1058 UIFakeCloudVirtualMachineItemState_Loading); 1052 createCloudMachineNode(pProfileNode, UIFakeCloudVirtualMachineItemState_Loading); 1059 1053 1060 1054 /* Insert cloud account key into a list of keys currently being updated: */ … … 1465 1459 } 1466 1460 1461 void UIChooserAbstractModel::createCloudMachineNode(UIChooserNode *pParentNode, UIFakeCloudVirtualMachineItemState enmState) 1462 { 1463 new UIChooserNodeMachine(pParentNode, 1464 0 /* position */, 1465 enmState); 1466 } 1467 1467 1468 void UIChooserAbstractModel::createCloudMachineNode(UIChooserNode *pParentNode, const CCloudMachine &comMachine) 1468 1469 { -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.h
r86655 r86664 28 28 /* GUI includes: */ 29 29 #include "UIChooserDefs.h" 30 #include "UIManagerDefs.h" 30 31 31 32 /* COM includes: */ … … 280 281 /** Creates local machine node based on certain @a comMachine as a child of specified @a pParentNode. */ 281 282 void createLocalMachineNode(UIChooserNode *pParentNode, const CMachine &comMachine); 282 /** Creates cloud machine node based on certain @a comMachine as a child of specified @a pParentNode. */ 283 /** Creates fake cloud machine node in passed @a enmState as a child of specified @a pParentNode. */ 284 void createCloudMachineNode(UIChooserNode *pParentNode, UIFakeCloudVirtualMachineItemState enmState); 285 /** Creates real cloud machine node based on certain @a comMachine as a child of specified @a pParentNode. */ 283 286 void createCloudMachineNode(UIChooserNode *pParentNode, const CCloudMachine &comMachine); 284 287
Note:
See TracChangeset
for help on using the changeset viewer.