Changeset 86607 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Oct 16, 2020 2:05:48 PM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.cpp
r86581 r86607 2578 2578 void UICommon::notifyCloudMachineRegistered(const QString &strProviderShortName, 2579 2579 const QString &strProfileName, 2580 const CCloudMachine &com CloudMachine)2581 { 2582 emit sigCloudMachineRegistered(strProviderShortName, strProfileName, com CloudMachine, true /* select */);2580 const CCloudMachine &comMachine) 2581 { 2582 emit sigCloudMachineRegistered(strProviderShortName, strProfileName, comMachine); 2583 2583 } 2584 2584 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.h
r86573 r86607 91 91 * @param strProviderShortName Brings provider short name. 92 92 * @param strProfileName Brings profile name. 93 * @param comCloudMachine Brings cloud VM. 94 * @param fSelect Brings whether registered VM should be selected. */ 93 * @param comMachine Brings cloud VM. */ 95 94 void sigCloudMachineRegistered(const QString &strProviderShortName, 96 95 const QString &strProfileName, 97 const CCloudMachine &comCloudMachine, 98 const bool fSelect); 96 const CCloudMachine &comMachine); 99 97 /** Notifies listeners about cloud VM registeration changed. 100 98 * @param strProviderShortName Brings provider short name. … … 515 513 * @param strProviderShortName Brings provider short name. 516 514 * @param strProfileName Brings profile name. 517 * @param com CloudMachineBrings cloud VM. */515 * @param comMachine Brings cloud VM. */ 518 516 void notifyCloudMachineRegistered(const QString &strProviderShortName, 519 517 const QString &strProfileName, 520 const CCloudMachine &com CloudMachine);518 const CCloudMachine &comMachine); 521 519 /** Notifies listeners about cloud VM registeration changed. 522 520 * @param strProviderShortName Brings provider short name. -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.cpp
r86606 r86607 693 693 void UIChooserAbstractModel::sltCloudMachineRegistered(const QString &strProviderShortName, 694 694 const QString &strProfileName, 695 const CCloudMachine &comMachine, 696 bool fSelect) 695 const CCloudMachine &comMachine) 697 696 { 698 697 /* Search for profile node: */ … … 705 704 706 705 /* Add new machine-item: */ 707 addCloudMachineIntoTheTree(strProfileNodeName, comMachine, fSelect);706 addCloudMachineIntoTheTree(strProfileNodeName, comMachine, true /* make it visible? */); 708 707 709 708 /* Search for possible fake node: */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.h
r86606 r86607 166 166 /** Handles cloud machine registering for @a comMachine. 167 167 * @param strProviderShortName Brings provider short name. 168 * @param strProfileName Brings profile name. 169 * @param fSelect Brings whether registered machine should be selected. */ 168 * @param strProfileName Brings profile name. */ 170 169 virtual void sltCloudMachineRegistered(const QString &strProviderShortName, 171 170 const QString &strProfileName, 172 const CCloudMachine &comMachine, 173 bool fSelect); 171 const CCloudMachine &comMachine); 174 172 /** Handles cloud machine registering/unregistering for machine with certain @a uMachineId. 175 173 * @param strProviderShortName Brings provider short name. -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.cpp
r86606 r86607 1156 1156 void UIChooserModel::sltCloudMachineRegistered(const QString &strProviderShortName, 1157 1157 const QString &strProfileName, 1158 const CCloudMachine &comMachine, 1159 bool fSelect) 1158 const CCloudMachine &comMachine) 1160 1159 { 1161 1160 /* Call to base-class: */ 1162 UIChooserAbstractModel::sltCloudMachineRegistered(strProviderShortName, strProfileName, comMachine , fSelect);1161 UIChooserAbstractModel::sltCloudMachineRegistered(strProviderShortName, strProfileName, comMachine); 1163 1162 1164 1163 /* Rebuild tree for main root: */ … … 1166 1165 1167 1166 /* Select newly added item: */ 1168 if (fSelect) 1169 { 1170 QUuid uMachineId; 1171 if (cloudMachineId(comMachine, uMachineId)) 1172 setSelectedItem(root()->searchForItem(uMachineId.toString(), 1173 UIChooserItemSearchFlag_Machine | 1174 UIChooserItemSearchFlag_ExactId)); 1175 } 1167 QUuid uMachineId; 1168 if (cloudMachineId(comMachine, uMachineId)) 1169 setSelectedItem(root()->searchForItem(uMachineId.toString(), 1170 UIChooserItemSearchFlag_Machine | 1171 UIChooserItemSearchFlag_ExactId)); 1176 1172 } 1177 1173 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.h
r86606 r86607 282 282 virtual void sltCloudMachineRegistered(const QString &strProviderShortName, 283 283 const QString &strProfileName, 284 const CCloudMachine &comMachine, 285 bool fSelect) /* override */; 284 const CCloudMachine &comMachine) /* override */; 286 285 /** Handles cloud machine registering/unregistering for machine with certain @a uMachineId. 287 286 * @param strProviderShortName Brings provider short name.
Note:
See TracChangeset
for help on using the changeset viewer.