summaryrefslogtreecommitdiffstats
path: root/examples/video/qmlvideofx/qml/qmlvideofx/main-smallscreen.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-smallscreen.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-smallscreen.qml')
-rw-r--r--examples/video/qmlvideofx/qml/qmlvideofx/main-smallscreen.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/video/qmlvideofx/qml/qmlvideofx/main-smallscreen.qml b/examples/video/qmlvideofx/qml/qmlvideofx/main-smallscreen.qml
index 91bdefe73..d7f2ccfc4 100644
--- a/examples/video/qmlvideofx/qml/qmlvideofx/main-smallscreen.qml
+++ b/examples/video/qmlvideofx/qml/qmlvideofx/main-smallscreen.qml
@@ -57,6 +57,7 @@ Rectangle {
effectSelectionPanel.state == "shown" ||
videoFileBrowser.shown ||
imageFileBrowser.shown)
+ property real gripSize: 40
}
// Create ScreenSaver element via Loader, so this app will still run if the
@@ -100,7 +101,7 @@ Rectangle {
Content {
id: content
anchors.fill: parent
- gripSize: 40
+ gripSize: d.gripSize
onVideoFramePainted: performanceLoader.item.videoFramePainted()
}
@@ -112,7 +113,7 @@ Rectangle {
margins: 10
}
y: parent.height
- gripSize: 40
+ gripSize: d.gripSize
states: [
State {