summaryrefslogtreecommitdiff
path: root/nekowatchlet/nekowatchlet.cpp
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2012-08-17 02:29:28 +0200
committerJavier S. Pedro <maemo@javispedro.com>2012-08-17 02:29:28 +0200
commit9c44782c5eab5635ca6adf4717409bf2ffb6c694 (patch)
tree99f774bccb6e964864168b346155bbd5a52bf3b2 /nekowatchlet/nekowatchlet.cpp
parentf9ac9d207025fb8d40d1be753cde78beb77aa202 (diff)
downloadsowatch-9c44782c5eab5635ca6adf4717409bf2ffb6c694.tar.gz
sowatch-9c44782c5eab5635ca6adf4717409bf2ffb6c694.zip
new nekowatchlet and minor graphics/performance changes
Diffstat (limited to 'nekowatchlet/nekowatchlet.cpp')
-rw-r--r--nekowatchlet/nekowatchlet.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/nekowatchlet/nekowatchlet.cpp b/nekowatchlet/nekowatchlet.cpp
new file mode 100644
index 0000000..627d127
--- /dev/null
+++ b/nekowatchlet/nekowatchlet.cpp
@@ -0,0 +1,17 @@
+#include "nekowatchlet.h"
+
+using namespace sowatch;
+
+const QLatin1String NekoWatchlet::myId("com.javispedro.sowatch.neko");
+
+NekoWatchlet::NekoWatchlet(WatchServer* server) :
+ DeclarativeWatchlet(server, myId)
+{
+ // Workaround Qt's stupid clip region calculation when
+ // - There's a QML item with clip = true
+ // - And we are using "compat" updateRects() signal mode
+ setFullUpdateMode(true);
+
+ setSource(QUrl(SOWATCH_QML_DIR "/nekowatchlet/" + server->watch()->model() + ".qml"));
+}
+