diff options
author | obscuren <geffobscura@gmail.com> | 2014-08-17 19:05:43 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-08-17 19:05:43 +0800 |
commit | e12abfd43b99e05a05957922f01e4f5460d286fb (patch) | |
tree | b0a48d6adaed1dfcc2d420d18450c4b0fadfe66c /ethereal/assets/qml | |
parent | 27735bbdfc4e32e2e5ca11f48591d62b766aa3f5 (diff) | |
download | dexon-e12abfd43b99e05a05957922f01e4f5460d286fb.tar.gz dexon-e12abfd43b99e05a05957922f01e4f5460d286fb.tar.zst dexon-e12abfd43b99e05a05957922f01e4f5460d286fb.zip |
Double click
Diffstat (limited to 'ethereal/assets/qml')
-rw-r--r-- | ethereal/assets/qml/views/chain.qml | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/ethereal/assets/qml/views/chain.qml b/ethereal/assets/qml/views/chain.qml index 0f5604a9f..270018eb2 100644 --- a/ethereal/assets/qml/views/chain.qml +++ b/ethereal/assets/qml/views/chain.qml @@ -38,15 +38,22 @@ Rectangle { text: styleData.value font.pixelSize: 11 MouseArea { - acceptedButtons: Qt.RightButton + acceptedButtons: Qt.LeftButton | Qt.RightButton propagateComposedEvents: true anchors.fill: parent onClicked: { blockTable.selection.clear() blockTable.selection.select(styleData.row) - contextMenu.row = styleData.row; - contextMenu.popup() + if(mouse.button == Qt.RightButton) { + contextMenu.row = styleData.row; + contextMenu.popup() + } + } + + onDoubleClicked: { + popup.visible = true + popup.setDetails(blockModel.get(styleData.row)) } } } |