Don't steal focus in panel search field

(cherry picked from commit 807112fb19)
This commit is contained in:
Carl Schwan
2021-05-30 00:06:16 +02:00
parent ae3e395b47
commit 22732b801b

View File

@@ -157,6 +157,16 @@ Kirigami.OverlayDrawer {
}
}
Pane {
padding: Kirigami.Units.smallSpacing
implicitWidth: parent.width
z: 2
contentItem: Kirigami.SearchField {
id: userListSearchField
onAccepted: sortedMessageEventModel.filterString = text;
}
}
ScrollView {
Layout.fillWidth: true
Layout.fillHeight: true
@@ -168,16 +178,6 @@ Kirigami.OverlayDrawer {
boundsBehavior: Flickable.DragOverBounds
activeFocusOnTab: true
header: Pane {
padding: Kirigami.Units.smallSpacing
implicitWidth: parent.width
z: 2
contentItem: Kirigami.SearchField {
id: userListSearchField
onTextChanged: sortedMessageEventModel.filterString = text;
}
}
model: KSortFilterProxyModel {
id: sortedMessageEventModel