Changeset 73631 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Aug 13, 2018 11:05:01 AM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.cpp
r73602 r73631 64 64 } 65 65 66 bool UIVirtualBoxManagerWidget::isGroupItemSelected() const 67 { 68 return m_pPaneChooser->isGroupItemSelected(); 69 } 70 66 71 bool UIVirtualBoxManagerWidget::isGlobalItemSelected() const 67 72 { … … 237 242 238 243 /* If that was machine item selected: */ 239 if (isMachineItemSelected()) 244 if ( isMachineItemSelected() 245 || isGroupItemSelected()) 240 246 { 241 247 /* Get current item: */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.h
r73602 r73631 68 68 UIActionPool *actionPool() const { return m_pActionPool; } 69 69 70 /** Returns whether group current-item is selected. */ 71 bool isGroupItemSelected() const; 70 72 /** Returns whether global current-item is selected. */ 71 73 bool isGlobalItemSelected() const; -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooser.cpp
r73600 r73631 70 70 { 71 71 return managerWidget()->actionPool(); 72 } 73 74 bool UIChooser::isGroupItemSelected() const 75 { 76 return m_pChooserModel->isGroupItemSelected(); 72 77 } 73 78 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooser.h
r73600 r73631 71 71 72 72 /* API: Current-item stuff: */ 73 bool isGroupItemSelected() const; 73 74 bool isGlobalItemSelected() const; 74 75 bool isMachineItemSelected() const; -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.cpp
r73600 r73631 206 206 m_navigationList.clear(); 207 207 m_navigationList = createNavigationList(root()); 208 } 209 210 bool UIChooserModel::isGroupItemSelected() const 211 { 212 return currentItem() && currentItem()->type() == UIChooserItemType_Group; 208 213 } 209 214 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.h
r73600 r73631 110 110 111 111 /* API: Current-item stuff: */ 112 bool isGroupItemSelected() const; 112 113 bool isGlobalItemSelected() const; 113 114 bool isMachineItemSelected() const;
Note:
See TracChangeset
for help on using the changeset viewer.