summaryrefslogtreecommitdiffstats
path: root/examples/video/qmlvideofx/qml/qmlvideofx/main-largescreen.qml
diff options
context:
space:
mode:
authorGareth Stockwell <ext-gareth.stockwell@nokia.com>2012-02-10 15:25:14 +0000
committerQt by Nokia <qt-info@nokia.com>2012-02-13 01:30:57 +0100
commita93be80d33ab4af20f10de946b0aa3785fc2d843 (patch)
tree156dbd23ca92fc33c1198f0981350ef54b580a02 /examples/video/qmlvideofx/qml/qmlvideofx/main-largescreen.qml
parent2d188bdb3f6fe4f84f28cee8e7f44840078c82bd (diff)
Improve usability of qmlvideofx example on small touchscreens
* Add tolerance to mouse press detection on divider and slider grips, so that clicks just outside of the grip radius are treated as if the click was inside the grip. * When slider bar outside of grip radius is clicked, increment slider position by a fixed amount, towards the click position. Change-Id: Iefb0b274ee5a97ed5cb789596bf6b3c07a7fc8b8 Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
Diffstat (limited to 'examples/video/qmlvideofx/qml/qmlvideofx/main-largescreen.qml')
-rw-r--r--examples/video/qmlvideofx/qml/qmlvideofx/main-largescreen.qml7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/video/qmlvideofx/qml/qmlvideofx/main-largescreen.qml b/examples/video/qmlvideofx/qml/qmlvideofx/main-largescreen.qml
index 83a8dbe00..010ceba03 100644
--- a/examples/video/qmlvideofx/qml/qmlvideofx/main-largescreen.qml
+++ b/examples/video/qmlvideofx/qml/qmlvideofx/main-largescreen.qml
@@ -51,6 +51,11 @@ Rectangle {
property bool perfMonitorsLogging: false
property bool perfMonitorsVisible: false
+ QtObject {
+ id: d
+ property real gripSize: 20
+ }
+
Rectangle {
id: inner
anchors.fill: parent
@@ -65,6 +70,7 @@ Rectangle {
right: effectSelectionPanel.left
margins: 5
}
+ gripSize: d.gripSize
width: 600
height: 600
}
@@ -95,6 +101,7 @@ Rectangle {
right: effectSelectionPanel.left
margins: 20
}
+ gripSize: d.gripSize
}
EffectSelectionPanel {