From 4c5cd95b85c42b669691dd12d635a72ad6f99645 Mon Sep 17 00:00:00 2001 From: Orangerot Date: Fri, 16 Aug 2024 18:03:26 +0200 Subject: feat(SportFilter): search/filter events from TextField --- res/gui/EventsPage.qml | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) (limited to 'res') diff --git a/res/gui/EventsPage.qml b/res/gui/EventsPage.qml index ad36d15..33df246 100644 --- a/res/gui/EventsPage.qml +++ b/res/gui/EventsPage.qml @@ -26,10 +26,10 @@ Page { ComboBox { - width: 200 + width: 300 height: 50 - displayText: "Disziplin: " + currentText + displayText: "Discipline: " + currentText model: myListModel textRole: "text" @@ -236,22 +236,11 @@ Page { } } } - ComboBox { - width: 200 + TextField { height: 50 - - displayText: "Sort by: " + currentText - model: ["hu", "hi"] - - } - - ComboBox { width: 200 - height: 50 - - displayText: "Filter: " + currentText - model: ["hu", "hi"] - + placeholderText: "Search" + onTextChanged: filter.setFilterFixedString(text) } } @@ -262,7 +251,7 @@ Page { height: parent.height width: parent.width spacing: 20 - model: sports + model: filter delegate: ItemDelegate { required property string eventName required property list competitors -- cgit v1.2.3