diff options
Diffstat (limited to 'nekowatchlet/nekowatchletplugin.cpp')
-rw-r--r-- | nekowatchlet/nekowatchletplugin.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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; } |