From a69789502feb0235bddad0cf3cb9ed9ca7554632 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 4 Jul 2018 09:59:58 +0200 Subject: 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. --- framework/src/frameworkplugin.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'framework/src/frameworkplugin.cpp') 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 @@ #include "extensionmodel.h" #include "viewhighlighter.h" #include "file.h" +#include "logmodel.h" #include #include @@ -178,6 +179,7 @@ void FrameworkPlugin::registerTypes (const char *uri) qmlRegisterType(uri, 1, 0,"ContactController"); qmlRegisterType(uri, 1, 0,"PeopleModel"); qmlRegisterType(uri, 1, 0, "TextDocumentHandler"); + qmlRegisterType(uri, 1, 0, "LogModel"); qmlRegisterType(uri, 1, 0, "AccountFactory"); qmlRegisterType(uri, 1, 0, "AccountsModel"); -- cgit v1.2.3