diff options
author | Anatasof Wirapraja <anatasof.wirapraja@gmail.com> | 2019-08-29 17:50:57 +0700 |
---|---|---|
committer | Anatasof Wirapraja <anatasof.wirapraja@gmail.com> | 2019-08-29 17:50:57 +0700 |
commit | 933fa1019041966c908967567523e6f972da8186 (patch) | |
tree | 2e8316ef83e479d6b396293e06509771eaecffbf /main.cxx | |
parent | eeacda8d7edf463738d4527c377bc44e869a02c6 (diff) | |
parent | c8891b50d1f30c7c07bf96f8eaf2e1002ce573b8 (diff) |
Merge branch 'development' of ssh://darapsa.co.id/usr/local/git/kelakon into development
* 'development' of ssh://darapsa.co.id/usr/local/git/kelakon:
Set up a way for the thread to quit
Renamed NetworkWorker to just Worker
Diffstat (limited to 'main.cxx')
-rw-r--r-- | main.cxx | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -1,8 +1,7 @@ #include <QGuiApplication> #include <QQmlApplicationEngine> -#include <QThread> #include "user.hxx" -#include "networkworker.hxx" +#include "controller.hxx" int main(int argc, char* argv[]) { @@ -10,10 +9,6 @@ int main(int argc, char* argv[]) QGuiApplication app(argc, argv); QQmlApplicationEngine engine; - NetworkWorker worker{}; - QThread thread; - worker.moveToThread(&thread); - qmlRegisterSingletonType<User>("id.co.darapsa.kelakon.user", 0, 1, "User", [](QQmlEngine *engine, QJSEngine *scriptEngine) -> QObject* { Q_UNUSED(engine) Q_UNUSED(scriptEngine) @@ -23,7 +18,7 @@ int main(int argc, char* argv[]) }); engine.load(QUrl(QStringLiteral("qrc:/main.qml"))); - thread.start(); + Controller controller{}; return app.exec(); } |