diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-08-18 00:43:02 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-08-18 00:43:02 (GMT) |
commit | 8f5e72298fc4b8a5838bee1291a2cc422750b6b8 (patch) | |
tree | f7a780127d327c879cb642b8a23c44f081c71556 /examples | |
parent | 41335c52ef2844589030cddb4773c68cf38331af (diff) | |
download | Qt-8f5e72298fc4b8a5838bee1291a2cc422750b6b8.zip Qt-8f5e72298fc4b8a5838bee1291a2cc422750b6b8.tar.gz Qt-8f5e72298fc4b8a5838bee1291a2cc422750b6b8.tar.bz2 |
MouseRegion API changes following review.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/declarative/dial/dial.qml | 2 | ||||
-rw-r--r-- | examples/declarative/minehunt/Description.qml | 8 | ||||
-rw-r--r-- | examples/declarative/mouseregion/mouse.qml | 4 | ||||
-rw-r--r-- | examples/declarative/scrollbar/display.qml | 2 | ||||
-rw-r--r-- | examples/declarative/slideswitch/Switch.qml | 2 | ||||
-rw-r--r-- | examples/declarative/velocity/Day.qml | 8 |
6 files changed, 14 insertions, 12 deletions
diff --git a/examples/declarative/dial/dial.qml b/examples/declarative/dial/dial.qml index 3773bcc..75bd9b1 100644 --- a/examples/declarative/dial/dial.qml +++ b/examples/declarative/dial/dial.qml @@ -26,7 +26,7 @@ Rect { } MouseRegion { anchors.fill: parent - drag.target: parent; drag.axis: "x"; drag.xmin: 2; drag.xmax: 128 + drag.target: parent; drag.axis: "x"; drag.minimumX: 2; drag.maximumX: 128 } } } diff --git a/examples/declarative/minehunt/Description.qml b/examples/declarative/minehunt/Description.qml index 9ad6522..cf02bff 100644 --- a/examples/declarative/minehunt/Description.qml +++ b/examples/declarative/minehunt/Description.qml @@ -8,10 +8,10 @@ Item { anchors.fill: parent drag.target: Page drag.axis: "xy" - drag.xmin: 0 - drag.xmax: 1000 - drag.ymin: 0 - drag.ymax: 1000 + drag.minimumX: 0 + drag.maximumX: 1000 + drag.minimumY: 0 + drag.maximumY: 1000 } Rect { radius: 10 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 + ')') } diff --git a/examples/declarative/scrollbar/display.qml b/examples/declarative/scrollbar/display.qml index 03a40d3..d8bd187 100644 --- a/examples/declarative/scrollbar/display.qml +++ b/examples/declarative/scrollbar/display.qml @@ -44,6 +44,7 @@ Rect { height: View.height-12 anchors.right: View.right } + /* ScrollBar { id: SBH opacity: 0 @@ -54,4 +55,5 @@ Rect { width: View.width-12 anchors.bottom: View.bottom } + */ } diff --git a/examples/declarative/slideswitch/Switch.qml b/examples/declarative/slideswitch/Switch.qml index 91627c7..b5de9ec 100644 --- a/examples/declarative/slideswitch/Switch.qml +++ b/examples/declarative/slideswitch/Switch.qml @@ -36,7 +36,7 @@ Item { anchors.fill: Knob onClicked: { toggle() } onReleased: { dorelease() } - drag.target: Knob; drag.axis: "x"; drag.xmin: 1; drag.xmax: 78 + drag.target: Knob; drag.axis: "x"; drag.minimumX: 1; drag.maximumX: 78 } states: [ State { diff --git a/examples/declarative/velocity/Day.qml b/examples/declarative/velocity/Day.qml index 59a31af..c959b0c 100644 --- a/examples/declarative/velocity/Day.qml +++ b/examples/declarative/velocity/Day.qml @@ -71,10 +71,10 @@ Rect { anchors.fill: parent drag.target: StickyPage drag.axis: "xy" - drag.ymin: 0 - drag.ymax: 500 - drag.xmin: 0 - drag.xmax: 400 + drag.minimumY: 0 + drag.maximumY: 500 + drag.minimumX: 0 + drag.maximumX: 400 } } } |