summaryrefslogtreecommitdiffstats
path: root/examples/declarative/touchinteraction
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/touchinteraction')
-rw-r--r--examples/declarative/touchinteraction/gestures/experimental-gestures/experimental-gestures.pro4
-rw-r--r--examples/declarative/touchinteraction/mousearea/mousearea-example/mousearea-example.pro4
-rw-r--r--examples/declarative/touchinteraction/mousearea/mousearea-example/qml/mousearea-example/mousearea-example.qml4
3 files changed, 6 insertions, 6 deletions
diff --git a/examples/declarative/touchinteraction/gestures/experimental-gestures/experimental-gestures.pro b/examples/declarative/touchinteraction/gestures/experimental-gestures/experimental-gestures.pro
index 396a59d8..8e75a060 100644
--- a/examples/declarative/touchinteraction/gestures/experimental-gestures/experimental-gestures.pro
+++ b/examples/declarative/touchinteraction/gestures/experimental-gestures/experimental-gestures.pro
@@ -14,8 +14,8 @@ QML_IMPORT_PATH =
# DEFINES += QMLJSDEBUGGER
# If your application uses the Qt Mobility libraries, uncomment
-# the following lines and add the respective components to the
-# MOBILITY variable.
+# the following lines and add the respective components to the
+# MOBILITY variable.
# CONFIG += mobility
# MOBILITY +=
diff --git a/examples/declarative/touchinteraction/mousearea/mousearea-example/mousearea-example.pro b/examples/declarative/touchinteraction/mousearea/mousearea-example/mousearea-example.pro
index 9d984146..3d73ba49 100644
--- a/examples/declarative/touchinteraction/mousearea/mousearea-example/mousearea-example.pro
+++ b/examples/declarative/touchinteraction/mousearea/mousearea-example/mousearea-example.pro
@@ -14,8 +14,8 @@ DEFINES += ORIENTATIONLOCK
# DEFINES += QMLJSDEBUGGER
# If your application uses the Qt Mobility libraries, uncomment
-# the following lines and add the respective components to the
-# MOBILITY variable.
+# the following lines and add the respective components to the
+# MOBILITY variable.
# CONFIG += mobility
# MOBILITY +=
diff --git a/examples/declarative/touchinteraction/mousearea/mousearea-example/qml/mousearea-example/mousearea-example.qml b/examples/declarative/touchinteraction/mousearea/mousearea-example/qml/mousearea-example/mousearea-example.qml
index f2a7b59e..5d5fe4ec 100644
--- a/examples/declarative/touchinteraction/mousearea/mousearea-example/qml/mousearea-example/mousearea-example.qml
+++ b/examples/declarative/touchinteraction/mousearea/mousearea-example/qml/mousearea-example/mousearea-example.qml
@@ -53,7 +53,7 @@ Rectangle {
Text { text: "Click"; font.pixelSize: 16; anchors.centerIn: parent }
MouseArea {
- anchors.fill: parent
+ anchors.fill: parent
hoverEnabled: true
acceptedButtons: Qt.LeftButton | Qt.RightButton
@@ -61,7 +61,7 @@ Rectangle {
onExited: info.text = 'Exited (pressed=' + pressed + ')'
onPressed: {
- info.text = 'Pressed (button=' + (mouse.button == Qt.RightButton ? 'right' : 'left')
+ info.text = 'Pressed (button=' + (mouse.button == Qt.RightButton ? 'right' : 'left')
+ ' shift=' + (mouse.modifiers & Qt.ShiftModifier ? 'true' : 'false') + ')'
var posInBox = redSquare.mapToItem(box, mouse.x, mouse.y)
posInfo.text = + mouse.x + ',' + mouse.y + ' in square'