Commit 979b99aa authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

Set Qt.ImhNoPredictiveText for text fields that act as search fields

This ensures that searching happens while the text is being entered from
a virtual keyboard.

CCBUG: 439914
parent 13fb70fe
......@@ -112,6 +112,8 @@ ColumnLayout {
clearButtonShown: true
Layout.fillWidth: true
inputMethodHints: Qt.ImhNoPredictiveText
// Only override delete key behavior to delete list items if
// it would do nothing
Keys.enabled: filter.text.length == 0 || filter.cursorPosition == filter.length
......
......@@ -85,6 +85,8 @@ ColumnLayout {
Layout.minimumWidth: PlasmaCore.Units.gridUnit * 25
Layout.maximumWidth: PlasmaCore.Units.gridUnit * 25
inputMethodHints: Qt.ImhNoPredictiveText
activeFocusOnPress: true
placeholderText: results.runnerName ? i18ndc("plasma_lookandfeel_org.kde.lookandfeel",
"Textfield placeholder text, query specific KRunner",
......
......@@ -41,6 +41,7 @@ ColumnLayout {
id: filter
Layout.fillWidth: true
placeholderText: i18nd("kholidays_calendar_plugin", "Search…")
inputMethodHints: Qt.ImhNoPredictiveText
}
// Still QQC1 bevcause there's no QQC2 TableView
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment