good morning!!!!

Skip to content
Snippets Groups Projects
Commit e12abfd4 authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

Double click

parent 27735bbd
Branches
Tags
No related merge requests found
...@@ -38,17 +38,24 @@ Rectangle { ...@@ -38,17 +38,24 @@ 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)
if(mouse.button == Qt.RightButton) {
contextMenu.row = styleData.row; contextMenu.row = styleData.row;
contextMenu.popup() contextMenu.popup()
} }
} }
onDoubleClicked: {
popup.visible = true
popup.setDetails(blockModel.get(styleData.row))
}
}
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment