From dd09ca9ef4bb9780b953d6dd2999dbefe50bd1ff Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 3 Jan 2016 20:31:10 +0100 Subject: Instead of using controllers, directly use the models ...and connect components via properties --- framework/mail/mailplugin.cpp | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'framework/mail/mailplugin.cpp') diff --git a/framework/mail/mailplugin.cpp b/framework/mail/mailplugin.cpp index b2939acf..bf92f4e7 100644 --- a/framework/mail/mailplugin.cpp +++ b/framework/mail/mailplugin.cpp @@ -1,23 +1,14 @@ #include "mailplugin.h" -#include "maillistcontroller.h" #include "maillistmodel.h" -#include "singlemailcontroller.h" -#include "folderlistcontroller.h" #include "folderlistmodel.h" -#include #include void MailPlugin::registerTypes (const char *uri) { - Q_ASSERT(uri == QLatin1String("org.kde.akonadi2.mail")); + Q_ASSERT(uri == QLatin1String("org.kde.kube.mail")); - qmlRegisterType(); - qmlRegisterType(uri, 1, 0, "FolderList"); - - qmlRegisterType(); - qmlRegisterType(uri, 1, 0, "MailList"); - - qmlRegisterType(uri, 1, 0, "SingleMail"); + qmlRegisterType(uri, 1, 0, "FolderListModel"); + qmlRegisterType(uri, 1, 0, "MailListModel"); } -- cgit v1.2.3