diff options
author | Marius Vlad <marius.vlad@collabora.com> | 2020-01-22 20:29:13 +0200 |
---|---|---|
committer | Marius Vlad <marius.vlad@collabora.com> | 2020-06-12 16:11:32 +0300 |
commit | 419fc3c50d25fe0f55313f63b717ad16c5100187 (patch) | |
tree | 2c3db18aa1555c93c8b35e05d1327992ee899bbb /app/MediaPlayer.qml | |
parent | 10713862de0170f0d34cfa9765832e3c04aa69d1 (diff) |
app/MediaPlayer: Do not hard-code the window size
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: Id7cc10901a26e1344a9f2bed522821b220168c62
Diffstat (limited to 'app/MediaPlayer.qml')
-rw-r--r-- | app/MediaPlayer.qml | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/app/MediaPlayer.qml b/app/MediaPlayer.qml index b287c8a..cdd9368 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 { @@ -92,9 +95,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 |