fixing routing.py bug, if time is 24:00
[pywienerlinien] / qml / AboutBox.qml
1
2 import QtQuick 1.0
3
4 Rectangle {
5     id: aboutBox
6     property string appName: 'MyApp x.y.z'
7     property string websiteURL: 'http://example.org/'
8     property string copyright: ''
9     property string license: ''
10     property string iconFilename: ''
11     width: 480
12     height: 800
13
14     function show() { opacity = 1 }
15
16     color: '#dd000000'
17     opacity: 0
18     Behavior on opacity { PropertyAnimation { } }
19
20     MouseArea {
21         anchors.fill: parent
22         onClicked: aboutBox.opacity = 0
23     }
24
25     Column {
26         anchors.centerIn: parent
27         spacing: 5
28         scale: Math.pow(parent.opacity, 3)
29         width: 440
30
31         Item {
32             height: aboutBoxIcon.sourceSize.height
33             width: parent.width
34
35             Image {
36                 id: aboutBoxIcon
37                 anchors.centerIn: parent
38                 source: aboutBox.iconFilename
39             }
40         }
41
42         Text {
43             color: 'white'
44             font.pixelSize: 30
45             font.bold: true
46             text: aboutBox.appName
47             anchors.horizontalCenter: parent.horizontalCenter
48         }
49
50         Text {
51             color: 'white'
52             text: aboutBox.websiteURL
53             font.pixelSize: 25
54             anchors.horizontalCenter: parent.horizontalCenter
55         }
56
57         Text {
58             color: 'white'
59             font.pixelSize: 17
60             text: '\n' + aboutBox.copyright + '\n' + aboutBox.license
61             anchors.horizontalCenter: parent.horizontalCenter
62             horizontalAlignment: Text.AlignHCenter
63         }
64     }
65 }
66