- Timestamp:
- Oct 13, 2018 3:03:31 AM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager/tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsHandlerMouse.cpp
r74249 r74830 67 67 { 68 68 /* Which item we just clicked? */ 69 UIToolsItem *pClickedItem = 69 UIToolsItem *pClickedItem = qgraphicsitem_cast<UIToolsItem*>(pItemUnderMouse); 70 70 /* Make clicked item the current one: */ 71 71 if (pClickedItem) 72 { 72 73 model()->setCurrentItem(pClickedItem); 74 model()->closeParent(); 75 } 73 76 break; 74 77 } -
trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsModel.cpp
r74807 r74830 153 153 { 154 154 return m_statesToolsEnabled.value(enmClass); 155 } 156 157 void UIToolsModel::closeParent() 158 { 159 m_pTools->close(); 155 160 } 156 161 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsModel.h
r74599 r74830 108 108 /** Returns whether certain class of tools is enabled.*/ 109 109 bool areToolsEnabled(UIToolsClass enmClass) const; 110 111 /** Closes parent. */ 112 void closeParent(); 110 113 /** @} */ 111 114
Note:
See TracChangeset
for help on using the changeset viewer.