5 property color textColor: 'white'
7 anchors.left: parent.left
8 anchors.right: parent.right
18 opacity: mouse.pressed?.4:0
20 Behavior on opacity { PropertyAnimation { duration: 200 } }
23 signal showDetails(variant details)
27 anchors.left: parent.left
28 anchors.top: parent.top
29 anchors.bottom: parent.bottom
30 verticalAlignment: Text.AlignVCenter
33 anchors.leftMargin: 30
34 anchors.rightMargin: 30
35 width: parent.width * .2
42 anchors.left: datum.right
43 anchors.bottom: parent.verticalCenter
44 text: 'von ' + modelData.time_from
45 verticalAlignment: Text.AlignBottom
46 width: parent.width * .2
47 visible: modelData.time_from != '-'
53 anchors.left: datum.right
54 anchors.top: parent.verticalCenter
55 text: 'bis ' + modelData.time_to
56 anchors.rightMargin: 40
57 verticalAlignment: Text.AlignTop
58 width: time_from.width
59 visible: modelData.time_to != '-'
65 text: 'Dauer: ' + modelData.duration + ((modelData.change > 0)?(' (' + modelData.change + ' x umsteigen)'):'')
67 anchors.left: time_from.right
68 anchors.top: parent.top
69 anchors.bottom: parent.bottom
70 verticalAlignment: Text.AlignVCenter
71 width: parent.width * .3
77 text: 'EUR ' + modelData.price
78 anchors.right: parent.right
79 anchors.top: parent.top
80 anchors.bottom: parent.bottom
81 verticalAlignment: Text.AlignVCenter
82 width: parent.width * .1
83 horizontalAlignment: Text.AlignRight
84 anchors.rightMargin: 20
90 onClicked: parent.showDetails(modelData)