From 8af1436e92c1a853b74bacc9ac0adf012fdbc4ca Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Sat, 4 May 2013 01:24:41 +0200 Subject: new calendar watchlet --- qmsgwatchlet/metawatch-digital.qml | 11 +++++++++++ qmsgwatchlet/qmsgwatchletplugin.cpp | 4 ++++ 2 files changed, 15 insertions(+) (limited to 'qmsgwatchlet') 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 + using namespace sowatch; +QTM_USE_NAMESPACE QMsgWatchletPlugin::QMsgWatchletPlugin(QObject *parent) : QObject(parent) { + qRegisterMetaType("QMessageManager::NotificationFilterIdSet"); } QMsgWatchletPlugin::~QMsgWatchletPlugin() -- cgit v1.2.3