Fix search item being behind the roomlist in collapsed mode by moving code into ListView. Now the search item is always at the top of the list.

This commit is contained in:
James Graham
2022-05-15 14:17:38 +01:00
parent 6b5f76296a
commit 10da870ab3

View File

@@ -68,6 +68,13 @@ Kirigami.ScrollablePage {
} }
} }
ListView {
id: listView
activeFocusOnTab: true
clip: accountList.count > 1
header: QQC2.ItemDelegate { header: QQC2.ItemDelegate {
visible: page.collapsedMode visible: page.collapsedMode
action: Kirigami.Action { action: Kirigami.Action {
@@ -93,13 +100,6 @@ Kirigami.ScrollablePage {
} }
} }
ListView {
id: listView
activeFocusOnTab: true
clip: accountList.count > 1
Kirigami.PlaceholderMessage { Kirigami.PlaceholderMessage {
anchors.centerIn: parent anchors.centerIn: parent
width: parent.width - (Kirigami.Units.largeSpacing * 4) width: parent.width - (Kirigami.Units.largeSpacing * 4)