blob: 8aa4d6e277cf033a04ee477da799941d0a2bfc20 (
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
|
// 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
import QtApplicationManager.Application
ApplicationManagerWindow {
id: root
color: mouseArea.pressed ? "red" : "darkblue"
Rectangle {
id: rectangle
anchors.centerIn: parent
width: 180; height: 180; radius: width/4
color: "aqua"
Image {
source: ApplicationInterface.icon
anchors.centerIn: parent
}
Timer {
running: true
repeat: true
interval: 1000 / 25 // 25 frames per second
onTriggered: {
rectangle.rotation = (rectangle.rotation + 5) % 360;
}
}
}
MouseArea {
id: mouseArea
anchors.fill: parent
}
}
|