summaryrefslogtreecommitdiff
path: root/libsowatch/watchserver.cpp
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-05-11 16:10:50 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-05-11 16:10:50 +0200
commitbc899047089079dde323e84a57efe46ce6af653d (patch)
treec88ef2bc6d1876518b285db15e5a400c6c4795a4 /libsowatch/watchserver.cpp
parent4b5bbdea7bdb6defc88023ba65f7aec1a7439977 (diff)
downloadsowatch-bc899047089079dde323e84a57efe46ce6af653d.tar.gz
sowatch-bc899047089079dde323e84a57efe46ce6af653d.zip
add the liveview paint engine
Diffstat (limited to 'libsowatch/watchserver.cpp')
-rw-r--r--libsowatch/watchserver.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/libsowatch/watchserver.cpp b/libsowatch/watchserver.cpp
index f79b1c1..fa4011f 100644
--- a/libsowatch/watchserver.cpp
+++ b/libsowatch/watchserver.cpp
@@ -9,8 +9,9 @@ using namespace sowatch;
WatchServer::WatchServer(Watch* watch, QObject* parent) :
QObject(parent), _watch(watch),
- _nextWatchletButton(-1), _idleWatchlet(0), _notificationWatchlet(0),
+ _nextWatchletButton(-1),
_oldNotificationThreshold(300),
+ _idleWatchlet(0), _notificationWatchlet(0),
_notifications(new NotificationsModel(this)),
_activeWatchlet(0), _currentWatchlet(0), _currentWatchletIndex(-1),
_syncTimeTimer(new QTimer(this))
@@ -161,7 +162,6 @@ const NotificationsModel * WatchServer::notifications() const
void WatchServer::postNotification(Notification *notification)
{
- const Notification::Type type = notification->type();
const Notification::Priority priority = notification->priority();
// Add notification to model
@@ -401,7 +401,6 @@ void WatchServer::handleNotificationChanged()
QObject *obj = sender();
if (obj) {
Notification* n = static_cast<Notification*>(obj);
- const Notification::Type type = n->type();
const uint lastCount = _notificationCounts[n];
_notificationCounts[n] = n->count();