summaryrefslogtreecommitdiff
path: root/src/main/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/main.cpp')
-rw-r--r--src/main/main.cpp4
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);