Loading editor/qml/DocumentTree.qml +10 −14 Original line number Diff line number Diff line Loading @@ -94,22 +94,18 @@ ColumnLayout { } } MouseArea { anchors.fill: parent acceptedButtons: Qt.LeftButton | Qt.RightButton onClicked: function(mouse) { if (mouse.button === Qt.RightButton) { nodeCtxMenu.popup() } else { TapHandler { acceptedButtons: Qt.RightButton onTapped: nodeCtxMenu.popup() } TapHandler { acceptedButtons: Qt.LeftButton onTapped: { treeRoot.selectedUuid = model.uuid propPanel.loadProperties(model.uuid) } } onDoubleClicked: { if (model.nodeHasChildren) docTreeView.toggleExpanded(treeDelegate.row) } } Menu { id: nodeCtxMenu Loading Loading
editor/qml/DocumentTree.qml +10 −14 Original line number Diff line number Diff line Loading @@ -94,22 +94,18 @@ ColumnLayout { } } MouseArea { anchors.fill: parent acceptedButtons: Qt.LeftButton | Qt.RightButton onClicked: function(mouse) { if (mouse.button === Qt.RightButton) { nodeCtxMenu.popup() } else { TapHandler { acceptedButtons: Qt.RightButton onTapped: nodeCtxMenu.popup() } TapHandler { acceptedButtons: Qt.LeftButton onTapped: { treeRoot.selectedUuid = model.uuid propPanel.loadProperties(model.uuid) } } onDoubleClicked: { if (model.nodeHasChildren) docTreeView.toggleExpanded(treeDelegate.row) } } Menu { id: nodeCtxMenu Loading