diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-14 06:51:44 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-14 06:51:44 +0800 |
commit | 58be31e2d8098c5ce8b8406a9e96f88dcc0dcf9c (patch) | |
tree | 739da8c1662163f6fb3e42d51c3dbcafef8d9ed7 /main.cxx | |
parent | 4ceea1de7eccc623fe33d823ba4446f6323d5248 (diff) |
No need for task list to be instantiated as a singleton
Diffstat (limited to 'main.cxx')
-rw-r--r-- | main.cxx | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -18,14 +18,6 @@ int main(int argc, char* argv[]) return new User; }); - TaskList::typeId = qmlRegisterSingletonType<User>("KelakonUser", 0, 1, "TaskList" - , [](QQmlEngine *engine, - QJSEngine *scriptEngine) -> QObject* { - Q_UNUSED(engine) - Q_UNUSED(scriptEngine) - return new TaskList; - }); - engine.load(QUrl(QStringLiteral("qrc:/main.qml"))); Controller controller{&engine}; |