change qml folder to
[apps/onscreenapp.git] / sample / app / main.qml
index 94de871..5a70102 100644 (file)
@@ -12,8 +12,7 @@ ApplicationWindow {
     height: 1487
 
     property string onsId: qsTr("onscreenapp")
-//    property string pri_path: qsTr("/home/0/app-data/OnScreen/qml/")
-    property string pri_path: qmldir
+    property string pri_path: qsTr("/home/0/app-data/OnScreen/onstestapp/")
     property string filepath: pri_path + qsTr("vics.qml")
     property string msgdata: ""
     property string postmsg: ""
@@ -108,56 +107,6 @@ ApplicationWindow {
 
             ColumnLayout {
                 spacing:  20
-                RowLayout {
-                    id: line1
-                    height: 80
-                    Label {
-                        id: guitype
-                        anchors.left: parent.left
-                        anchors.leftMargin: 10
-                        text: 'gui_type'
-                        font.pixelSize: 20
-                        color: '#00ADDC'
-                    }
-
-                    Label {
-                        text: qsTr("application")
-                        font.pixelSize: 20
-                        color: '#00ADDC'
-                        anchors.left: guitype.right
-                        anchors.leftMargin: 20
-                    }
-                }
-                RowLayout {
-                    id: line2
-                    spacing:  20
-                    Label {
-                        id: qmlpath
-                        anchors.left: parent.left
-                        anchors.leftMargin: 30
-                        text: qsTr("file")
-                        font.pixelSize: 20
-                        font.italic: true
-                        color: '#00ADDC'
-                    }
-
-                    TextInput {
-                        id: fpath
-                        text: filepath
-                        font.pixelSize: 20
-                        font.italic: true
-                        anchors.left: qmlpath.right
-                        anchors.leftMargin: 20
-                        color: '#00ADDC'
-                        cursorVisible: true
-                        inputMethodHints: Qt.ImhNone
-                        onFocusChanged: {
-                            console.log("filepath")
-                            if(fpath.focus)
-                                vkb.visible = true
-                        }
-                    }
-                }
                 RowLayout {
                     id: line3
                     spacing: 20
@@ -330,7 +279,7 @@ ApplicationWindow {
     }
 
     function postMessage() {
-        postmsg = "{\"gui\": \"application\", \"file\": \"" + filepath + "\"";
+        postmsg = "{\"file\": \"" + filepath + "\"";
         if (data1.text != "") {
             msgdata = "\"" + dataname1.text + "\":\"" + data1.text + "\"";
         }