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-06 15:40:49 +0000
committerQt by Nokia <qt-info@nokia.com>2012-02-08 22:30:49 +0100
commitc1ec175b24bde1523fcbd7e33d0f46f3bbc1def9 (patch)
treea6f5fd12fa4ec15843f896b7108e0d5e36ee4015 /examples/video/qmlvideofx/qml/qmlvideofx/main-largescreen.qml
parentb6f54c8833347ddb13b12cfd682cd12de72664d8 (diff)
Tidy up frame rate display in video examples
* Use a Column element to position QML and video frame rate counters. * When using small-screen layouts, hide frame rate counters when dialogs or menus are displayed. * Do not display instantaneous frame rate. If changes in this rate trigger a repaint, then the rate itself is changed. If the repaint occurs in less time than the QElapsedTimer resolution, the displayed instantaneous rate is always zero. * Add a label, so it is clear which is the QML repaint rate, and which is the video frame rate. Change-Id: Ie58ab162ab44bd7f1c4b297eed929b9baa73552c 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.qml3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/video/qmlvideofx/qml/qmlvideofx/main-largescreen.qml b/examples/video/qmlvideofx/qml/qmlvideofx/main-largescreen.qml
index d7e1b12f1..246616db2 100644
--- a/examples/video/qmlvideofx/qml/qmlvideofx/main-largescreen.qml
+++ b/examples/video/qmlvideofx/qml/qmlvideofx/main-largescreen.qml
@@ -79,8 +79,6 @@ Rectangle {
item.anchors.top = content.top
item.anchors.left = content.left
item.anchors.right = content.right
- item.height = 100
- item.anchors.margins = 5
item.logging = root.perfMonitorsLogging
item.displayed = root.perfMonitorsVisible
item.init()
@@ -123,6 +121,7 @@ Rectangle {
margins: 5
}
buttonHeight: 32
+ topMargin: 10
}
}