id: dialog
titleText: qsTr("Show")
}
+ onSelectedIndexChanged: {
+ console.log("Selection changed to: " + selectedIndex)
+ if (options === undefined || options.count === 0) {
+ header.text = " "
+ } else {
+ header.text = options.get(selectedIndex).name
+ console.log("Selection text is: " + header.text)
+ }
+ }
}
PageHeader {
id: header
anchors.top: parent.top
- text: qsTr("Stations")
selectedIndex: stationListProxyModel.sortingMode
options: ListModel {
id: dialogOptions
name: QT_TR_NOOP("Stations Recently Seen")
}
}
- onSelectedIndexChanged: {
- header.text = dialogOptions.get(selectedIndex).name
- console.log("Selection changed to: " + selectedIndex)
- console.log("Selection text is: " + header.text)
- }
}
SearchBar {
id: searchField