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

@@ -38,6 +38,9 @@ class SortFilterRoomListModel : public QSortFilterProxyModel
*/
Q_PROPERTY(QString filterText READ filterText READ filterText WRITE setFilterText NOTIFY filterTextChanged)
// This is a lazy hack to make this model compatible with SearchPage. TODO: rename the property entirely
Q_PROPERTY(QString searchText READ filterText READ filterText WRITE setFilterText NOTIFY filterTextChanged)
public:
explicit SortFilterRoomListModel(RoomListModel *sourceModel, QObject *parent = nullptr);