+ PageHeader {
+ id: header
+ anchors.top: parent.top
+ selectedIndex: stationListProxyModel.sortingMode
+ options: ListModel {
+ id: dialogOptions
+ ListElement {
+ name: QT_TR_NOOP("Stations by Name")
+ }
+ ListElement {
+ name: QT_TR_NOOP("Stations by Distance")
+ }
+ ListElement {
+ name: QT_TR_NOOP("Stations Recently Seen")
+ }
+ }
+ }
+ SearchBar {
+ id: searchField
+ anchors.top: header.bottom
+ }
+ Binding {
+ target: stationListProxyModel
+ property: "searchPattern"
+ value: searchField.text
+ }
+ Binding {
+ target: stationListProxyModel
+ property: "sortingMode"
+ value: header.selectedIndex
+ }
+ Rectangle {
+ id: shadow
+ width: parent.width
+ anchors.top: mainView.top
+ height: 5
+ gradient: Gradient {
+ GradientStop {color: "#aa000000"; position: 0.0}
+ GradientStop {color: "#00000000"; position: 1.0}
+ }
+ }
+ Item {
+ id: mainView