Skip to content

Commit e12abfd

Browse files
committed
Double click
1 parent 27735bb commit e12abfd

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

ethereal/assets/qml/views/chain.qml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,22 @@ Rectangle {
3838
text: styleData.value
3939
font.pixelSize: 11
4040
MouseArea {
41-
acceptedButtons: Qt.RightButton
41+
acceptedButtons: Qt.LeftButton | Qt.RightButton
4242
propagateComposedEvents: true
4343
anchors.fill: parent
4444
onClicked: {
4545
blockTable.selection.clear()
4646
blockTable.selection.select(styleData.row)
4747

48-
contextMenu.row = styleData.row;
49-
contextMenu.popup()
48+
if(mouse.button == Qt.RightButton) {
49+
contextMenu.row = styleData.row;
50+
contextMenu.popup()
51+
}
52+
}
53+
54+
onDoubleClicked: {
55+
popup.visible = true
56+
popup.setDetails(blockModel.get(styleData.row))
5057
}
5158
}
5259
}

0 commit comments

Comments
 (0)