diff options
Diffstat (limited to 'qmsgwatchlet')
-rw-r--r-- | qmsgwatchlet/metawatch-digital.qml | 11 | ||||
-rw-r--r-- | qmsgwatchlet/qmsgwatchletplugin.cpp | 4 |
2 files changed, 15 insertions, 0 deletions
diff --git a/qmsgwatchlet/metawatch-digital.qml b/qmsgwatchlet/metawatch-digital.qml index e5e999f..89a5f00 100644 --- a/qmsgwatchlet/metawatch-digital.qml +++ b/qmsgwatchlet/metawatch-digital.qml @@ -20,6 +20,7 @@ MWPage { anchors.bottom: parent.bottom clip: true model: MessageModel { + id: model sortBy: MessageModel.Timestamp sortOrder: MessageModel.DescendingOrder filter: MessageIntersectionFilter { @@ -33,6 +34,16 @@ MWPage { comparator: MessageFilter.Equal value: MessageFilter.InboxFolder } + MessageFilter { + type: MessageFilter.Status + comparator: MessageFilter.Includes + value: MessageFilter.Incoming + } + MessageFilter { + type: MessageFilter.Status + comparator: MessageFilter.Excludes + value: MessageFilter.Removed + } } limit: 20 } diff --git a/qmsgwatchlet/qmsgwatchletplugin.cpp b/qmsgwatchlet/qmsgwatchletplugin.cpp index 2471d03..dfabd12 100644 --- a/qmsgwatchlet/qmsgwatchletplugin.cpp +++ b/qmsgwatchlet/qmsgwatchletplugin.cpp @@ -1,11 +1,15 @@ #include "qmsgwatchlet.h" #include "qmsgwatchletplugin.h" +#include <QtMessaging/QMessageManager> + using namespace sowatch; +QTM_USE_NAMESPACE QMsgWatchletPlugin::QMsgWatchletPlugin(QObject *parent) : QObject(parent) { + qRegisterMetaType<QMessageManager::NotificationFilterIdSet>("QMessageManager::NotificationFilterIdSet"); } QMsgWatchletPlugin::~QMsgWatchletPlugin() |