app/MediaPlayer: Do not hard-code the window size
authorMarius Vlad <marius.vlad@collabora.com>
Wed, 22 Jan 2020 18:29:13 +0000 (20:29 +0200)
committerMarius Vlad <marius.vlad@collabora.com>
Wed, 13 May 2020 21:48:09 +0000 (00:48 +0300)
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: Id7cc10901a26e1344a9f2bed522821b220168c62

app/MediaPlayer.qml

index 92e9f39..4138759 100644 (file)
@@ -17,6 +17,9 @@
 import QtQuick 2.11
 import QtQuick.Layouts 1.11
 import QtQuick.Controls 2.4
+
+import QtQuick.Window 2.11
+
 import AGL.Demo.Controls 1.0
 
 ApplicationWindow {
@@ -90,9 +93,10 @@ ApplicationWindow {
     Item {
         id: container
         anchors.centerIn: parent
-        width: 1080
-        height: 1487
-        scale: screenInfo.scale_factor()
+        width: Screen.width
+        height: Screen.height
+        //scale: screenInfo.scale_factor()
+        scale: 1
 
     ColumnLayout {
         anchors.fill: parent