X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=app%2FMediaPlayer.qml;h=74fcf2ee8689fface40c4f45b3ed112cb392f242;hb=16981a61648b5dc563a3e522c1c86c5dcbb43504;hp=cdd9368c5cfa0d29ca9d6697c40586f605ad8b6f;hpb=419fc3c50d25fe0f55313f63b717ad16c5100187;p=apps%2Fmediaplayer.git diff --git a/app/MediaPlayer.qml b/app/MediaPlayer.qml index cdd9368..74fcf2e 100644 --- a/app/MediaPlayer.qml +++ b/app/MediaPlayer.qml @@ -17,8 +17,7 @@ import QtQuick 2.11 import QtQuick.Layouts 1.11 import QtQuick.Controls 2.4 - -import QtQuick.Window 2.11 +import QtQuick.Window 2.13 import AGL.Demo.Controls 1.0 @@ -95,8 +94,8 @@ ApplicationWindow { Item { id: container anchors.centerIn: parent - width: Screen.width - height: Screen.height + width: Window.width + height: Window.height //scale: screenInfo.scale_factor() scale: 1 @@ -259,7 +258,7 @@ ApplicationWindow { Item { Layout.fillWidth: true Layout.fillHeight: true - Layout.preferredHeight: 407 + Layout.preferredHeight: container.height / 2 ListView { anchors.fill: parent