diff options
author | Orangerot <purple@orangerot.dev> | 2024-08-16 18:03:26 +0200 |
---|---|---|
committer | Orangerot <purple@orangerot.dev> | 2024-08-16 18:03:26 +0200 |
commit | 4c5cd95b85c42b669691dd12d635a72ad6f99645 (patch) | |
tree | b58468f4fea2932f34a74fe34162a682834e7ee8 /res/gui | |
parent | f87bc73c3f7ff003444ce2b0fef2229f501bd1d4 (diff) |
feat(SportFilter): search/filter events from TextField
Diffstat (limited to 'res/gui')
-rw-r--r-- | res/gui/EventsPage.qml | 23 |
1 files changed, 6 insertions, 17 deletions
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<string> competitors |