Commit 88d12274 authored by jan.koester's avatar jan.koester
Browse files

test

parent 442f305e
Loading
Loading
Loading
Loading
+10 −14
Original line number Diff line number Diff line
@@ -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