Changeset 84437 in vbox
- Timestamp:
- May 21, 2020 4:36:05 PM (5 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp
r84435 r84437 1463 1463 connect(m_pWidget, &UIVirtualBoxManagerWidget::sigToolTypeChange, 1464 1464 this, &UIVirtualBoxManager::sltHandleToolTypeChange); 1465 connect(m_pWidget, &UIVirtualBoxManagerWidget::sigStartOrShowRequest, 1466 this, &UIVirtualBoxManager::sltPerformStartOrShowMachine); 1465 1467 connect(menuBar(), &QMenuBar::customContextMenuRequested, 1466 1468 m_pWidget, &UIVirtualBoxManagerWidget::sltHandleContextMenuRequest); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.cpp
r84104 r84437 447 447 if (m_pPaneChooser) 448 448 { 449 /* Configure Chooser-pane: */450 connect(m_pPaneChooser, &UIChooser::sigCloudMachineStateChange,451 this, &UIVirtualBoxManagerWidget::sltHandleCloudMachineStateChange);452 449 /* Add into splitter: */ 453 450 m_pSplitter->addWidget(m_pPaneChooser); … … 594 591 connect(m_pPaneChooser, &UIChooser::sigToolMenuRequested, 595 592 this, &UIVirtualBoxManagerWidget::sltHandleToolMenuRequested); 593 connect(m_pPaneChooser, &UIChooser::sigCloudMachineStateChange, 594 this, &UIVirtualBoxManagerWidget::sltHandleCloudMachineStateChange); 595 connect(m_pPaneChooser, &UIChooser::sigStartOrShowRequest, 596 this, &UIVirtualBoxManagerWidget::sigStartOrShowRequest); 596 597 597 598 /* Details-pane connections: */ … … 842 843 disconnect(m_pPaneChooser, &UIChooser::sigToolMenuRequested, 843 844 this, &UIVirtualBoxManagerWidget::sltHandleToolMenuRequested); 845 disconnect(m_pPaneChooser, &UIChooser::sigCloudMachineStateChange, 846 this, &UIVirtualBoxManagerWidget::sltHandleCloudMachineStateChange); 847 disconnect(m_pPaneChooser, &UIChooser::sigStartOrShowRequest, 848 this, &UIVirtualBoxManagerWidget::sigStartOrShowRequest); 844 849 845 850 /* Details-pane connections: */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.h
r84104 r84437 77 77 /** Notifies about state change for cloud machine with certain @a uId. */ 78 78 void sigCloudMachineStateChange(const QUuid &uId); 79 80 /** @name Action stuff. 81 * @{ */ 82 /** Notify listeners about start or show request. */ 83 void sigStartOrShowRequest(); 84 /** @} */ 79 85 80 86 public: -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooser.cpp
r84105 r84437 193 193 connect(model(), &UIChooserModel::sigCloudMachineStateChange, 194 194 this, &UIChooser::sigCloudMachineStateChange); 195 connect(model(), &UIChooserModel::sigStartOrShowRequest, 196 this, &UIChooser::sigStartOrShowRequest); 195 197 196 198 /* Chooser-view connections: */ … … 233 235 disconnect(model(), &UIChooserModel::sigCloudMachineStateChange, 234 236 this, &UIChooser::sigCloudMachineStateChange); 237 disconnect(model(), &UIChooserModel::sigStartOrShowRequest, 238 this, &UIChooser::sigStartOrShowRequest); 235 239 236 240 /* Chooser-view connections: */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooser.h
r84105 r84437 68 68 /** Notifies listeners about group saving state change. */ 69 69 void sigGroupSavingStateChanged(); 70 /** @} */ 71 72 /** @name Action stuff. 73 * @{ */ 74 /** Notify listeners about start or show request. */ 75 void sigStartOrShowRequest(); 70 76 /** @} */ 71 77 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserHandlerKeyboard.cpp
r84420 r84437 268 268 || model()->currentItem()->type() == UIChooserNodeType_Machine) 269 269 { 270 /* Activate item: */271 model()-> activateMachineItem();270 /* Start or show selected items: */ 271 model()->startOrShowSelectedItems(); 272 272 /* And filter out that event: */ 273 273 return true; -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserHandlerMouse.cpp
r83896 r84437 213 213 else if (pItemUnderMouse->type() == UIChooserNodeType_Machine) 214 214 { 215 /* Activate machine-item: */216 model()-> activateMachineItem();215 /* Start or show selected items: */ 216 model()->startOrShowSelectedItems(); 217 217 } 218 218 break; -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.cpp
r84435 r84437 560 560 } 561 561 562 void UIChooserModel:: activateMachineItem()563 { 564 actionPool()->action(UIActionIndexST_M_Machine_M_StartOrShow)->activate(QAction::Trigger);562 void UIChooserModel::startOrShowSelectedItems() 563 { 564 emit sigStartOrShowRequest(); 565 565 } 566 566 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.h
r84105 r84437 90 90 /** @} */ 91 91 92 /** @name Action stuff. 93 * @{ */ 94 /** Notify listeners about start or show request. */ 95 void sigStartOrShowRequest(); 96 /** @} */ 97 92 98 public: 93 99 … … 210 216 void startEditingGroupItemName(); 211 217 212 /** Activates machine item. */213 void activateMachineItem();218 /** Starts or shows selected items. */ 219 void startOrShowSelectedItems(); 214 220 215 221 /** Defines current @a pDragObject. */
Note:
See TracChangeset
for help on using the changeset viewer.