summaryrefslogtreecommitdiffstats
path: root/sample/app/main.qml
blob: 96786ca8fb502b44cab69168596d7c8c8f11e1bc (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\"}");
                }
            }

            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\"}");
                }
            }
        }
    }
}