diff options
Diffstat (limited to 'examples/declarative/mouseregion/mouse.qml')
-rw-r--r-- | examples/declarative/mouseregion/mouse.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/declarative/mouseregion/mouse.qml b/examples/declarative/mouseregion/mouse.qml index d9db106..34c6e66 100644 --- a/examples/declarative/mouseregion/mouse.qml +++ b/examples/declarative/mouseregion/mouse.qml @@ -25,8 +25,8 @@ Rect { MouseRegion { drag.target: parent drag.axis: "x" - drag.xmin: 0 - drag.xmax: 150 + drag.minimumX: 0 + drag.maximumX: 150 onPressed: { print('press') } onReleased: { print('release (isClick: ' + mouse.isClick + ') (wasHeld: ' + mouse.wasHeld + ')') } onClicked: { print('click' + '(wasHeld: ' + mouse.wasHeld + ')') } |