Changeset 77655 in vbox for trunk/src/VBox
- Timestamp:
- Mar 11, 2019 2:41:18 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.cpp
r77638 r77655 1771 1771 } 1772 1772 1773 void UIChooserModel::buildTreeForMainRoot()1774 {1775 /* Cleanup previous tree if exists: */1776 delete m_pRoot;1777 m_pRoot = 0;1778 1779 /* Build whole tree for invisible root item: */1780 m_pRoot = new UIChooserItemGroup(scene(), invisibleRoot()->toGroupNode());1781 1782 /* Install root as event-filter for scene view,1783 * we need QEvent::Scroll events from it: */1784 root()->installEventFilterHelper(scene()->views()[0]);1785 }1786 1787 1773 bool UIChooserModel::isGlobalNodeFavorite(UIChooserNode *pParentNode) const 1788 1774 { … … 1903 1889 getDesiredPosition(pParentNode, UIChooserItemType_Machine, toOldStyleUuid(comMachine.GetId())), 1904 1890 comMachine); 1891 } 1892 1893 void UIChooserModel::buildTreeForMainRoot() 1894 { 1895 /* Cleanup previous tree if exists: */ 1896 delete m_pRoot; 1897 m_pRoot = 0; 1898 1899 /* Build whole tree for invisible root item: */ 1900 m_pRoot = new UIChooserItemGroup(scene(), invisibleRoot()->toGroupNode()); 1901 1902 /* Install root as event-filter for scene view, 1903 * we need QEvent::Scroll events from it: */ 1904 root()->installEventFilterHelper(scene()->views()[0]); 1905 1905 } 1906 1906
Note:
See TracChangeset
for help on using the changeset viewer.