X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=sample%2Fapp%2Fmain.qml;fp=sample%2Fapp%2Fmain.qml;h=5a70102b330a6d5ae7e16fecfa8bef357441cde6;hb=5e11084733c184b0505a4f4816e69b0dd363b653;hp=94de8719ff311345a22587d22a8af632f1d21ae5;hpb=5ba4327b148f81852c6e2a53bc51ab07b238602e;p=apps%2Fonscreenapp.git diff --git a/sample/app/main.qml b/sample/app/main.qml index 94de871..5a70102 100644 --- a/sample/app/main.qml +++ b/sample/app/main.qml @@ -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 + "\""; }