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 /src/main | |
parent | f87bc73c3f7ff003444ce2b0fef2229f501bd1d4 (diff) |
feat(SportFilter): search/filter events from TextField
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/main.cpp b/src/main/main.cpp index 7f4e9f7..27a4800 100644 --- a/src/main/main.cpp +++ b/src/main/main.cpp @@ -21,6 +21,7 @@ #include <QDebug> // #include <iostream> #include "../model/Sport.h" +#include "../model/FilterModel.h" int main(int argc, char *argv[]) { @@ -31,7 +32,10 @@ int main(int argc, char *argv[]) SportModel model; model.request("ARC"); + FilterModel filter; + filter.setSourceModel(&model); objectContext->setContextProperty("sports", &model); + objectContext->setContextProperty("filter", &filter); QQmlComponent component(&engine, "qrc:/qt/qml/itat/res/gui/application.qml"); QObject *object = component.create(objectContext); |