diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-08-21 03:01:11 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-08-21 03:01:11 (GMT) |
commit | 1d9ae86dda99d8f0eb4949d3779777e795eb52be (patch) | |
tree | 3cd7d3ca2e9209a411011935e5dad4df56ca8bb6 /doc/src/snippets/declarative | |
parent | 0fd79d739bf102e406a8042eb20add5b1e8ebb10 (diff) | |
download | Qt-1d9ae86dda99d8f0eb4949d3779777e795eb52be.zip Qt-1d9ae86dda99d8f0eb4949d3779777e795eb52be.tar.gz Qt-1d9ae86dda99d8f0eb4949d3779777e795eb52be.tar.bz2 |
Add MouseRegion::pressedButtons property. Update mouseX/Y when hovered.
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'; |