SearchField {
id: searchField
placeholderText: qsTr("Search station...")
- inputMethodHints: Qt.ImhNoAutoUppercase
+ inputMethodHints: Qt.ImhNoAutoUppercase | Qt.ImhNoPredictiveText
onTextChanged: stationListPage.searchPattern = searchField.text
width: stationListPage.width
EnterKey.onClicked: searchField.focus = false
right: parent.right
}
}
- onClicked: {
- searchField.focus = false
- Private.loadStation(model.name, model.code)
- }
menu: contextMenu
Component {
id: contextMenu
}
}
}
+ onPressed: searchField.focus = false
+ onClicked: Private.loadStation(model.name, model.code)
}
VerticalScrollDecorator {}
}