X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=launcher%2Fqml%2FLauncher.qml;h=befce07ea047aa3f8d6d25ec08b1c762c7a2b487;hb=20cd96660d4bfb44e0be5695f71a92d5fb53a143;hp=f7f1c1b2ecc195369993fcbc0f103cf2b9f731e5;hpb=259c66b9ebde64e857f36d8d1d7050bec2e8f41d;p=apps%2Flauncher.git diff --git a/launcher/qml/Launcher.qml b/launcher/qml/Launcher.qml index f7f1c1b..befce07 100644 --- a/launcher/qml/Launcher.qml +++ b/launcher/qml/Launcher.qml @@ -22,18 +22,18 @@ import QtQuick.Window 2.13 import AppModel 1.0 ApplicationWindow { - width: container.width * container.scale - height: container.height * container.scale - property int pid: -1 + id: root + //width: container.width + //height: container.height + flags: Qt.FramelessWindowHint + visible: true Item { id: container anchors.centerIn: parent - width: Screen.width - height: Screen.height - //scale: screenInfo.scale_factor() - scale: 1 + width: Window.width + height: Window.height Image { anchors.centerIn: parent @@ -82,6 +82,7 @@ ApplicationWindow { property string currentId: '' property int newIndex: -1 property int index: grid.indexAt(loc.mouseX, loc.mouseY) + property string output_screen: '' x: 62 y: 264 onPressAndHold: currentId = applicationModel.id(newIndex = index) @@ -89,8 +90,13 @@ ApplicationWindow { if(loc.index < 0) { return } + + //if (applicationModel.appid(loc.index) === 'tbtnavi' || + // applicationModel.appid(loc.index) === 'hvac') { + // output_screen = 'Virtual-1' + //} if (currentId === '') { - homescreenHandler.tapShortcut(applicationModel.appid(loc.index)) + homescreenHandler.tapShortcut(applicationModel.appid(loc.index), output_screen) } else { currentId = '' }