summaryrefslogtreecommitdiff
path: root/main.cxx
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-06 12:03:43 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-06 12:03:43 +0800
commit7dadd495657a8baa67d26dcd6f961e1c523d2a2e (patch)
tree4e530d4b80be89a8fe4c6bbdb96405cfc96ae86c /main.cxx
parent015650a6fadd2592100950c57146fcc5c61764a2 (diff)
Task related views using the C++ model
Diffstat (limited to 'main.cxx')
-rw-r--r--main.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.cxx b/main.cxx
index db21e08..9437396 100644
--- a/main.cxx
+++ b/main.cxx
@@ -1,7 +1,9 @@
#include <QGuiApplication>
#include <QQmlApplicationEngine>
+#include <QtQml>
#include "user.hxx"
#include "controller.hxx"
+#include "tasklist.hxx"
int main(int argc, char* argv[])
{
@@ -21,6 +23,8 @@ int main(int argc, char* argv[])
auto appWindow = rootObjects[0];
Controller controller{appWindow};
+ TaskList taskList;
+ engine.rootContext()->setContextProperty("taskList", &taskList);
return app.exec();
}