summaryrefslogtreecommitdiff
path: root/qmapwatchlet/qmapwatchletplugin.cpp
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2012-08-19 17:49:36 +0200
committerJavier S. Pedro <maemo@javispedro.com>2012-08-19 17:49:36 +0200
commit0bb38d4e1b84a11e8fdfaae2e46b66c101fda40e (patch)
treee0033617bfbc158de0eae4700963af976b686d50 /qmapwatchlet/qmapwatchletplugin.cpp
parentc64d7392c2e2ae51547788252e8c83ce5480fe49 (diff)
downloadsowatch-0bb38d4e1b84a11e8fdfaae2e46b66c101fda40e.tar.gz
sowatch-0bb38d4e1b84a11e8fdfaae2e46b66c101fda40e.zip
preparing new compass watchlet
Diffstat (limited to 'qmapwatchlet/qmapwatchletplugin.cpp')
-rw-r--r--qmapwatchlet/qmapwatchletplugin.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/qmapwatchlet/qmapwatchletplugin.cpp b/qmapwatchlet/qmapwatchletplugin.cpp
index 9450558..5beaf7e 100644
--- a/qmapwatchlet/qmapwatchletplugin.cpp
+++ b/qmapwatchlet/qmapwatchletplugin.cpp
@@ -1,6 +1,7 @@
#include "qmapwatchlet.h"
#include "mapview.h"
#include "qmapwatchletplugin.h"
+#include "tripwatchlet.h"
using namespace sowatch;
QTM_USE_NAMESPACE
@@ -35,9 +36,15 @@ QStringList QMapWatchletPlugin::watchlets()
WatchletPluginInterface::WatchletInfo QMapWatchletPlugin::describeWatchlet(const QString &id)
{
WatchletInfo info;
- if (id != QMapWatchlet::myId) return info;
- info.name = tr("Map");
- info.icon = QUrl::fromLocalFile(SOWATCH_QML_DIR "/qmapwatchlet/icon.png");
+ if (id == QMapWatchlet::myId) {
+ info.name = tr("Map");
+ info.icon = QUrl::fromLocalFile(SOWATCH_QML_DIR "/qmapwatchlet/icon.png");
+ } else if (id == TripWatchlet::myId) {
+ info.name = tr("Trip computer");
+ info.icon =
+ }
+ if (id != ) return info;
+
return info;
}