diff options
author | Tomi Korpipää <tomi.korpipaa@digia.com> | 2014-09-25 12:47:01 +0300 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@digia.com> | 2014-09-26 05:04:55 +0200 |
commit | 5c3a5cf8106e1b873924b296c792448c33ee4df1 (patch) | |
tree | 9e9b91ad4a5c23aa92aa71fa5545d9271ea460f7 /examples/multimedia/video/qmlvideo/qml/qmlvideo/Scene.qml | |
parent | 2d9d5acb9c809dc5c5021bc8c00cae696ca52b1a (diff) |
QMLVideo Example visual update
Task-number: QTBUG-36287
Change-Id: I797a995c2ccd6f6fec40fbf50f93e297ae15a9b1
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
Diffstat (limited to 'examples/multimedia/video/qmlvideo/qml/qmlvideo/Scene.qml')
-rw-r--r-- | examples/multimedia/video/qmlvideo/qml/qmlvideo/Scene.qml | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/examples/multimedia/video/qmlvideo/qml/qmlvideo/Scene.qml b/examples/multimedia/video/qmlvideo/qml/qmlvideo/Scene.qml index 5443dc846..04c852a96 100644 --- a/examples/multimedia/video/qmlvideo/qml/qmlvideo/Scene.qml +++ b/examples/multimedia/video/qmlvideo/qml/qmlvideo/Scene.qml @@ -39,9 +39,9 @@ Rectangle { property alias buttonHeight: closeButton.height property string source1 property string source2 - property int contentWidth: 250 + property int contentWidth: parent.width / 2 property real volume: 0.25 - property int margins: 10 + property int margins: 5 property QtObject content signal close @@ -54,9 +54,12 @@ Rectangle { right: parent.right margins: root.margins } - width: 50 - height: 30 + width: Math.max(parent.width, parent.height) / 12 + height: Math.min(parent.width, parent.height) / 12 z: 2.0 + bgColor: "#212121" + bgColorSelected: "#757575" + textColorSelected: "white" text: "Back" onClicked: root.close() } |