- Timestamp:
- Dec 17, 2020 2:44:51 PM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager
- Files:
-
- 5 edited
-
UIVirtualBoxManagerWidget.cpp (modified) (1 diff)
-
chooser/UIChooser.cpp (modified) (1 diff)
-
chooser/UIChooser.h (modified) (1 diff)
-
chooser/UIChooserModel.cpp (modified) (1 diff)
-
chooser/UIChooserModel.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.cpp
r87101 r87102 510 510 void UIVirtualBoxManagerWidget::sltSwitchToResourcesPane() 511 511 { 512 AssertPtrReturnVoid(m_pPaneChooser); 512 513 AssertPtrReturnVoid(m_pPaneTools); 513 m_pPaneToolsGlobal->setActive(true); 514 switchToGlobalTool(UIToolType_Resources); 514 m_pPaneChooser->setCurrentGlobal(); 515 515 m_pPaneTools->setToolsType(UIToolType_Resources); 516 516 } -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooser.cpp
r86923 r87102 188 188 AssertPtrReturnVoid(model()); 189 189 model()->setCurrentMachineItem(uId); 190 } 191 192 void UIChooser::setCurrentGlobal() 193 { 194 AssertPtrReturnVoid(model()); 195 model()->setCurrentGlobalItem(); 190 196 } 191 197 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooser.h
r86923 r87102 172 172 /** Changes current machine to the one with certain @a uId. */ 173 173 void setCurrentMachine(const QUuid &uId); 174 /** Set global tools to be the current item. */ 175 void setCurrentGlobal(); 174 176 /** @} */ 175 177 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.cpp
r86930 r87102 1001 1001 UIChooserItemSearchFlag_Machine | 1002 1002 UIChooserItemSearchFlag_ExactId); 1003 1004 /* Select item if exists: */ 1005 if (pItem) 1006 setSelectedItem(pItem); 1007 } 1008 1009 void UIChooserModel::setCurrentGlobalItem() 1010 { 1011 /* Look whether we have such item at all: */ 1012 UIChooserItem *pItem = root()->searchForItem(QString(), 1013 UIChooserItemSearchFlag_Global); 1003 1014 1004 1015 /* Select item if exists: */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.h
r86923 r87102 233 233 /** Changes current machine item to the one with certain @a uId. */ 234 234 void setCurrentMachineItem(const QUuid &uId); 235 /** Sets global tools item to be the current one. */ 236 void setCurrentGlobalItem(); 235 237 236 238 /** Defines current @a pDragObject. */
Note:
See TracChangeset
for help on using the changeset viewer.

