X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=sample%2Fapp%2Fmain.qml;fp=sample%2Fapp%2Fmain.qml;h=96786ca8fb502b44cab69168596d7c8c8f11e1bc;hb=4ccb23ff85897f668f56a2566aceaa1b59dc64f6;hp=0000000000000000000000000000000000000000;hpb=ec044f44133cad1d12311345437b13b1a953226e;p=apps%2Fonscreenapp.git diff --git a/sample/app/main.qml b/sample/app/main.qml new file mode 100644 index 0000000..96786ca --- /dev/null +++ b/sample/app/main.qml @@ -0,0 +1,41 @@ +import QtQuick 2.6 +import QtQuick.Window 2.2 +import QtQuick.Layouts 1.1 +import QtQuick.Controls 2.0 + +ApplicationWindow { + id: root + + ColumnLayout { + RowLayout { + Button { + text: "incoming call"; + onClicked: { + homescreenHandler.onScreenMessage("{\"app\":\"Phone\", \"message\":\"incoming call\", \"file\":\"qrc:/phone.qml\"}"); + } + } + + Button { + text: "call rejected"; + onClicked: { + homescreenHandler.onScreenMessage("{\"app\":\"Phone\", \"message\":\"call rejected\", \"file\":\"qrc:/phone.qml\"}"); + } + } + } + RowLayout { + Button { + text: "system error"; + onClicked: { + homescreenHandler.onScreenMessage("{\"app\":\"System\", \"message\":\"error\", \"file\":\"qrc:/system.qml\"}"); + } + } + + Button { + text: "system rejected"; + onClicked: { + homescreenHandler.onScreenMessage("{\"app\":\"System\", \"message\":\"rejected\", \"file\":\"qrc:/system.qml\"}"); + } + } + } + } +}