fixing routing.py bug, if time is 24:00
[pywienerlinien] / qml / SettingsHeader.qml
1
2 import QtQuick 1.0
3
4 Item {
5     id: settingsHeader
6     property alias text: headerCaption.text
7     property color color: headerCaption.visible?'#666':'#fff'
8
9     width: parent.width
10     height: headerCaption.visible?60*.7:10
11
12     Rectangle {
13         id: horizontalLine
14
15         anchors {
16             left: parent.left
17             right: headerCaption.left
18             rightMargin: headerCaption.visible?16:0
19             verticalCenter: headerCaption.verticalCenter
20         }
21
22         height: 1
23         color: settingsHeader.color
24     }
25
26     Text {
27         id: headerCaption
28         text: ''
29         visible: text !== ''
30         color: settingsHeader.color
31         font.pixelSize: 17
32
33         anchors {
34             right: parent.right
35             bottom: parent.bottom
36         }
37     }
38 }
39