summaryrefslogtreecommitdiffstats
path: root/sample/app/main.qml
blob: e8e03d74ce2b8f87c94ccac3938e18f5eb5a1319 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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\"}");
                }
            }
        }
    }
}