summaryrefslogtreecommitdiffstats
path: root/framework/src/frameworkplugin.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-07-04 09:59:58 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-07-04 10:02:33 +0200
commita69789502feb0235bddad0cf3cb9ed9ca7554632 (patch)
treedd9f02fc5f87eb4152cbf42b49bfd17f243d56af /framework/src/frameworkplugin.cpp
parent9d196fecae23a1f1d2f7922a180e3122547f9e4c (diff)
downloadkube-a69789502feb0235bddad0cf3cb9ed9ca7554632.tar.gz
kube-a69789502feb0235bddad0cf3cb9ed9ca7554632.zip
Introduced a logmodel
To get rid of weird problems of lists converting to qmllistmodels. I'm relatively sure some crashes I've seen were related to this.
Diffstat (limited to 'framework/src/frameworkplugin.cpp')
-rw-r--r--framework/src/frameworkplugin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/framework/src/frameworkplugin.cpp b/framework/src/frameworkplugin.cpp
index b5635733..9c81b7e1 100644
--- a/framework/src/frameworkplugin.cpp
+++ b/framework/src/frameworkplugin.cpp
@@ -46,6 +46,7 @@
46#include "extensionmodel.h" 46#include "extensionmodel.h"
47#include "viewhighlighter.h" 47#include "viewhighlighter.h"
48#include "file.h" 48#include "file.h"
49#include "logmodel.h"
49 50
50#include <QtQml> 51#include <QtQml>
51#include <QQuickImageProvider> 52#include <QQuickImageProvider>
@@ -178,6 +179,7 @@ void FrameworkPlugin::registerTypes (const char *uri)
178 qmlRegisterType<ContactController>(uri, 1, 0,"ContactController"); 179 qmlRegisterType<ContactController>(uri, 1, 0,"ContactController");
179 qmlRegisterType<PeopleModel>(uri, 1, 0,"PeopleModel"); 180 qmlRegisterType<PeopleModel>(uri, 1, 0,"PeopleModel");
180 qmlRegisterType<TextDocumentHandler>(uri, 1, 0, "TextDocumentHandler"); 181 qmlRegisterType<TextDocumentHandler>(uri, 1, 0, "TextDocumentHandler");
182 qmlRegisterType<LogModel>(uri, 1, 0, "LogModel");
181 183
182 qmlRegisterType<AccountFactory>(uri, 1, 0, "AccountFactory"); 184 qmlRegisterType<AccountFactory>(uri, 1, 0, "AccountFactory");
183 qmlRegisterType<AccountsModel>(uri, 1, 0, "AccountsModel"); 185 qmlRegisterType<AccountsModel>(uri, 1, 0, "AccountsModel");