From 80c58c124caf17f670d8efc120f5ae4bfd9aa09f Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Tue, 14 May 2013 01:13:41 +0200 Subject: added liveview watchlet menu (API break) --- nekowatchlet/liveview-icon.png | Bin 0 -> 225 bytes nekowatchlet/metawatch-digital-icon.png | Bin 0 -> 225 bytes nekowatchlet/nekowatchletplugin.cpp | 6 ++++-- nekowatchlet/nekowatchletplugin.h | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 nekowatchlet/liveview-icon.png create mode 100644 nekowatchlet/metawatch-digital-icon.png (limited to 'nekowatchlet') diff --git a/nekowatchlet/liveview-icon.png b/nekowatchlet/liveview-icon.png new file mode 100644 index 0000000..cbc5382 Binary files /dev/null and b/nekowatchlet/liveview-icon.png differ diff --git a/nekowatchlet/metawatch-digital-icon.png b/nekowatchlet/metawatch-digital-icon.png new file mode 100644 index 0000000..cbc5382 Binary files /dev/null and b/nekowatchlet/metawatch-digital-icon.png differ diff --git a/nekowatchlet/nekowatchletplugin.cpp b/nekowatchlet/nekowatchletplugin.cpp index aee7923..7d3aa87 100644 --- a/nekowatchlet/nekowatchletplugin.cpp +++ b/nekowatchlet/nekowatchletplugin.cpp @@ -19,12 +19,14 @@ QStringList NekoWatchletPlugin::watchlets() return l; } -WatchletPluginInterface::WatchletInfo NekoWatchletPlugin::describeWatchlet(const QString &id) +WatchletPluginInterface::WatchletInfo NekoWatchletPlugin::describeWatchlet(const QString &id, const QString &watchModel) { WatchletInfo info; if (id != NekoWatchlet::myId) return info; info.name = "Neko"; - info.icon = QUrl::fromLocalFile(SOWATCH_QML_DIR "/nekowatchlet/icon.png"); + info.icon = QUrl::fromLocalFile(SOWATCH_QML_DIR "/nekowatchlet/" + watchModel + "-icon.png"); + info.phoneIcon = QUrl::fromLocalFile(SOWATCH_QML_DIR "/nekowatchlet/icon.png"); + info.visible = true; return info; } diff --git a/nekowatchlet/nekowatchletplugin.h b/nekowatchlet/nekowatchletplugin.h index b03df53..452361e 100644 --- a/nekowatchlet/nekowatchletplugin.h +++ b/nekowatchlet/nekowatchletplugin.h @@ -16,7 +16,7 @@ public: ~NekoWatchletPlugin(); QStringList watchlets(); - WatchletInfo describeWatchlet(const QString &id); + WatchletInfo describeWatchlet(const QString &id, const QString &watchModel); Watchlet* getWatchlet(const QString& id, ConfigKey *settings, Watch* watch); }; -- cgit v1.2.3