diff options
Diffstat (limited to 'doc/src/snippets/declarative')
-rw-r--r-- | doc/src/snippets/declarative/mouseregion.qml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/src/snippets/declarative/mouseregion.qml b/doc/src/snippets/declarative/mouseregion.qml index 6d8f179..67857f5 100644 --- a/doc/src/snippets/declarative/mouseregion.qml +++ b/doc/src/snippets/declarative/mouseregion.qml @@ -12,6 +12,7 @@ Rectangle { width: 100; height: 100; color: "green" MouseRegion { anchors.fill: parent + acceptedButtons: Qt.LeftButton | Qt.RightButton onClicked: { if (mouse.button == Qt.RightButton) parent.color = 'blue'; |