Commit e12abfd4 authored by obscuren's avatar obscuren

Double click

parent 27735bbd
...@@ -38,15 +38,22 @@ Rectangle { ...@@ -38,15 +38,22 @@ Rectangle {
text: styleData.value text: styleData.value
font.pixelSize: 11 font.pixelSize: 11
MouseArea { MouseArea {
acceptedButtons: Qt.RightButton acceptedButtons: Qt.LeftButton | Qt.RightButton
propagateComposedEvents: true propagateComposedEvents: true
anchors.fill: parent anchors.fill: parent
onClicked: { onClicked: {
blockTable.selection.clear() blockTable.selection.clear()
blockTable.selection.select(styleData.row) blockTable.selection.select(styleData.row)
contextMenu.row = styleData.row; if(mouse.button == Qt.RightButton) {
contextMenu.popup() contextMenu.row = styleData.row;
contextMenu.popup()
}
}
onDoubleClicked: {
popup.visible = true
popup.setDetails(blockModel.get(styleData.row))
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment