launcher: rely on applaunchd for application startup
[apps/launcher.git] / launcher / qml / Launcher.qml
index 2247f51..3c948dd 100644 (file)
 import QtQuick 2.6
 import QtQuick.Layouts 1.1
 import QtQuick.Controls 2.0
+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: 1080
-        height: 1488
-        scale: screenInfo.scale_factor()
+        width: Window.width
+        height: Window.height
 
         Image {
           anchors.centerIn: parent
@@ -87,6 +89,11 @@ 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))
                 } else {