From 0bb38d4e1b84a11e8fdfaae2e46b66c101fda40e Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Sun, 19 Aug 2012 17:49:36 +0200 Subject: preparing new compass watchlet --- qmapwatchlet/qmapwatchletplugin.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'qmapwatchlet/qmapwatchletplugin.cpp') 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; } -- cgit v1.2.3