diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2015-12-07 21:38:28 +0100 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2015-12-07 21:38:28 +0100 |
commit | 707f47ad2e7d8790433db3956f255ad5ce9d96d1 (patch) | |
tree | b11dd7b06bf4906d89a9bd0d84f5e8a800d8f73f | |
parent | 7ed0f7b6d60f2a85cb931080b3ae498f5ddabe0a (diff) | |
download | kube-707f47ad2e7d8790433db3956f255ad5ce9d96d1.tar.gz kube-707f47ad2e7d8790433db3956f255ad5ce9d96d1.zip |
expose maillistmodel in maillistcontroller
-rw-r--r-- | framework/mail/maillistcontroller.cpp | 2 | ||||
-rw-r--r-- | framework/mail/maillistcontroller.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/framework/mail/maillistcontroller.cpp b/framework/mail/maillistcontroller.cpp index 19fdfffb..d2e00991 100644 --- a/framework/mail/maillistcontroller.cpp +++ b/framework/mail/maillistcontroller.cpp | |||
@@ -11,7 +11,7 @@ MailListController::MailListController(QObject *parent) : QObject(parent), m_mod | |||
11 | { | 11 | { |
12 | } | 12 | } |
13 | 13 | ||
14 | QAbstractItemModel *MailListController::model() const | 14 | MailListModel *MailListController::model() const |
15 | { | 15 | { |
16 | return m_model.data(); | 16 | return m_model.data(); |
17 | 17 | ||
diff --git a/framework/mail/maillistcontroller.h b/framework/mail/maillistcontroller.h index b5a95374..ab29c779 100644 --- a/framework/mail/maillistcontroller.h +++ b/framework/mail/maillistcontroller.h | |||
@@ -11,14 +11,14 @@ class MailListController : public QObject | |||
11 | { | 11 | { |
12 | Q_OBJECT | 12 | Q_OBJECT |
13 | Q_PROPERTY (QString query READ query WRITE setQuery NOTIFY queryChanged) | 13 | Q_PROPERTY (QString query READ query WRITE setQuery NOTIFY queryChanged) |
14 | Q_PROPERTY (QAbstractItemModel *model READ model CONSTANT) | 14 | Q_PROPERTY (MailListModel *model READ model CONSTANT) |
15 | 15 | ||
16 | public: | 16 | public: |
17 | explicit MailListController(QObject *parent = Q_NULLPTR); | 17 | explicit MailListController(QObject *parent = Q_NULLPTR); |
18 | 18 | ||
19 | QString query() const; | 19 | QString query() const; |
20 | void setQuery(const QString &query); | 20 | void setQuery(const QString &query); |
21 | QAbstractItemModel *model() const; | 21 | MailListModel *model() const; |
22 | 22 | ||
23 | signals: | 23 | signals: |
24 | void queryChanged(); | 24 | void queryChanged(); |
@@ -28,5 +28,5 @@ public slots: | |||
28 | 28 | ||
29 | private: | 29 | private: |
30 | QString m_query; | 30 | QString m_query; |
31 | QScopedPointer<QAbstractItemModel> m_model; | 31 | QScopedPointer<MailListModel> m_model; |
32 | }; | 32 | }; |