diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-06 12:03:43 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-06 12:03:43 +0800 |
commit | 7dadd495657a8baa67d26dcd6f961e1c523d2a2e (patch) | |
tree | 4e530d4b80be89a8fe4c6bbdb96405cfc96ae86c /main.cxx | |
parent | 015650a6fadd2592100950c57146fcc5c61764a2 (diff) |
Task related views using the C++ model
Diffstat (limited to 'main.cxx')
-rw-r--r-- | main.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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(); } |