onTextChanged: {
gstation.text = ''
-
- if (lineSelector.selectedIndex === -1) {
- text = text.toUpperCase()
- return
- }
}
MouseArea {
LineSheet {
id: lineSheet
- onAccepted: gline.text = currentLine
+ onAccepted: {
+ gline.text = currentLine
+
+ /* We usually want to select a station after selecting a line */
+ stationPickerButton.clicked()
+ }
}
Button {
width: 60
iconSource: 'image://theme/icon-m-common-search'
- onClicked: lineSheet.open()
+ onClicked: {
+ lineSheet.currentLine = ''
+ lineSheet.open()
+ }
}
TextField {