Make ChooseRoomDialog a SearchPage

Makes it look a bit nicer and more standardised
This commit is contained in:
Tobias Fella
2024-09-02 17:50:40 +02:00
parent f89cec9c55
commit 08b2c39a61
3 changed files with 18 additions and 16 deletions

View File

@@ -75,6 +75,11 @@ Kirigami.ScrollablePage {
*/
property alias listVerticalLayoutDirection: listView.verticalLayoutDirection
/**
* @brief Set the visibility of the search button.
*/
property bool showSearchButton: true
/**
* @brief Force the search field to be focussed.
*/
@@ -127,6 +132,7 @@ Kirigami.ScrollablePage {
id: searchButton
icon.name: "search"
display: QQC2.Button.IconOnly
visible: root.showSearchButton
text: i18nc("@action:button", "Search")
onClicked: {