summaryrefslogtreecommitdiffstats
path: root/sample/app/main.qml
diff options
context:
space:
mode:
authorzheng_wenlong <wenlong_zheng@nexty-ele.com>2018-07-27 10:34:25 +0900
committerzheng_wenlong <wenlong_zheng@nexty-ele.com>2018-07-27 10:34:25 +0900
commit9b9350b623052d650f9d530f570a245b8d3aedbe (patch)
tree223e7e41819fb5e4b45f79245a9a4e31628adf3c /sample/app/main.qml
parentb2670af592e664ed304f7df77d84f1964f039636 (diff)
Diffstat (limited to 'sample/app/main.qml')
-rw-r--r--sample/app/main.qml41
1 files changed, 41 insertions, 0 deletions
diff --git a/sample/app/main.qml b/sample/app/main.qml
new file mode 100644
index 0000000..e8e03d7
--- /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\", \"mask\":\":/images/star_1079x400.png\"}");
+ }
+ }
+
+ Button {
+ text: "call rejected";
+ onClicked: {
+ homescreenHandler.onScreenMessage("{\"app\":\"Phone\", \"message\":\"call rejected\", \"file\":\"qrc:/phone.qml\", \"mask\":\":/images/star_1079x400.png\"}");
+ }
+ }
+ }
+ RowLayout {
+ Button {
+ text: "system error";
+ onClicked: {
+ homescreenHandler.onScreenMessage("{\"app\":\"System\", \"message\":\"error\", \"file\":\"qrc:/system.qml\", \"mask\":\":/images/oval_1079x400.png\"}");
+ }
+ }
+
+ Button {
+ text: "system rejected";
+ onClicked: {
+ homescreenHandler.onScreenMessage("{\"app\":\"System\", \"message\":\"rejected\", \"file\":\"qrc:/system.qml\", \"mask\":\":/images/oval_1079x400.png\"}");
+ }
+ }
+ }
+ }
+}