diff options
Diffstat (limited to 'framework/mail/mailplugin.cpp')
-rw-r--r-- | framework/mail/mailplugin.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/framework/mail/mailplugin.cpp b/framework/mail/mailplugin.cpp index b9800541..ea8a5ec9 100644 --- a/framework/mail/mailplugin.cpp +++ b/framework/mail/mailplugin.cpp | |||
@@ -2,12 +2,13 @@ | |||
2 | 2 | ||
3 | #include "maillistcontroller.h" | 3 | #include "maillistcontroller.h" |
4 | #include "maillistmodel.h" | 4 | #include "maillistmodel.h" |
5 | #include <QAbstractItemModel> | ||
5 | 6 | ||
6 | #include <QtQml> | 7 | #include <QtQml> |
7 | 8 | ||
8 | void MailPlugin::registerTypes (const char *uri) | 9 | void MailPlugin::registerTypes (const char *uri) |
9 | { | 10 | { |
10 | Q_ASSERT(uri == QLatin1String("org.kde.akonadi2.mail")); | 11 | Q_ASSERT(uri == QLatin1String("org.kde.akonadi2.mail")); |
12 | qmlRegisterType<QAbstractItemModel>(); | ||
11 | qmlRegisterType<MailListController>(uri, 1, 0, "MailList"); | 13 | qmlRegisterType<MailListController>(uri, 1, 0, "MailList"); |
12 | qmlRegisterType<MailListModel>(uri, 1, 0, "MailListModel"); | 14 | } |
13 | } \ No newline at end of file | ||