blob: b244a79ccbc51a58556634e4033aafb6aa32f1bd (
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
|
// Copyright (C) 2021 The Qt Company Ltd.
// Copyright (C) 2019 Luxoft Sweden AB
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
import QtQuick 2.4
import QtApplicationManager.Application 2.0
ApplicationManagerWindow {
color: ApplicationInterface.systemProperties.light ? "#B0808080" : "black"
Image {
anchors.centerIn: parent
source: ApplicationInterface.icon
MouseArea {
anchors.fill: parent
onClicked: {
var notification = ApplicationInterface.createNotification();
notification.summary = "Let there be light!"
notification.show();
}
}
}
onWindowPropertyChanged: (window, name, value) => {
console.log("App2: onWindowPropertyChanged - " + name + ": " + value);
}
Connections {
target: ApplicationInterface
function onOpenDocument(documentUrl, mimeType) {
console.log("App2: onOpenDocument - " + documentUrl);
}
function onQuit() {
target.acknowledgeQuit();
}
}
}
|