summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2020-01-22 20:29:13 +0200
committerMarius Vlad <marius.vlad@collabora.com>2020-05-14 00:48:09 +0300
commit9caa297dd63843394b3fa5ea5d16d7609a7fadca (patch)
tree27e606fe473e2559fb9db19d0d9b130c6048c40e
parent8fe37ce16229c6729958e835c389ac347260388c (diff)
app/MediaPlayer: Do not hard-code the window size
Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Id7cc10901a26e1344a9f2bed522821b220168c62
-rw-r--r--app/MediaPlayer.qml10
1 files changed, 7 insertions, 3 deletions
diff --git a/app/MediaPlayer.qml b/app/MediaPlayer.qml
index 92e9f39..4138759 100644
--- a/app/MediaPlayer.qml
+++ b/app/MediaPlayer.qml
@@ -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