diff options
Diffstat (limited to 'examples/declarative/touchinteraction/mousearea')
2 files changed, 4 insertions, 4 deletions
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' |