diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-05-14 01:13:41 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-05-14 01:13:41 +0200 |
commit | 80c58c124caf17f670d8efc120f5ae4bfd9aa09f (patch) | |
tree | c6d036f06437e54f80afd65e1a700a018cab994b /qorgwatchlet/qorgwatchletplugin.cpp | |
parent | c3392e5d539e87f4720b3d107aaefffdc9579f4d (diff) | |
download | sowatch-80c58c124caf17f670d8efc120f5ae4bfd9aa09f.tar.gz sowatch-80c58c124caf17f670d8efc120f5ae4bfd9aa09f.zip |
added liveview watchlet menu (API break)
Diffstat (limited to 'qorgwatchlet/qorgwatchletplugin.cpp')
-rw-r--r-- | qorgwatchlet/qorgwatchletplugin.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/qorgwatchlet/qorgwatchletplugin.cpp b/qorgwatchlet/qorgwatchletplugin.cpp index 8416f0f..24db91f 100644 --- a/qorgwatchlet/qorgwatchletplugin.cpp +++ b/qorgwatchlet/qorgwatchletplugin.cpp @@ -24,12 +24,14 @@ QStringList QOrgWatchletPlugin::watchlets() return l; } -WatchletPluginInterface::WatchletInfo QOrgWatchletPlugin::describeWatchlet(const QString &id) +WatchletPluginInterface::WatchletInfo QOrgWatchletPlugin::describeWatchlet(const QString &id, const QString &watchModel) { WatchletInfo info; if (id != "com.javispedro.sowatch.qorg") return info; info.name = "Calendar"; - info.icon = QUrl::fromLocalFile(SOWATCH_QML_DIR "/qorgwatchlet/icon.png"); + info.phoneIcon = QUrl::fromLocalFile(SOWATCH_QML_DIR "/qorgwatchlet/icon.png"); + info.icon = QUrl::fromLocalFile(SOWATCH_QML_DIR "/qorgwatchlet/" + watchModel + "-icon.png"); + info.visible = true; return info; } |