summaryrefslogtreecommitdiff
path: root/sysinfowatchlet/sysinfoplugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sysinfowatchlet/sysinfoplugin.cpp')
-rw-r--r--sysinfowatchlet/sysinfoplugin.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/sysinfowatchlet/sysinfoplugin.cpp b/sysinfowatchlet/sysinfoplugin.cpp
index c87e864..9254940 100644
--- a/sysinfowatchlet/sysinfoplugin.cpp
+++ b/sysinfowatchlet/sysinfoplugin.cpp
@@ -19,12 +19,14 @@ QStringList SysInfoPlugin::watchlets()
return l;
}
-SysInfoPlugin::WatchletInfo SysInfoPlugin::describeWatchlet(const QString &id)
+SysInfoPlugin::WatchletInfo SysInfoPlugin::describeWatchlet(const QString &id, const QString &watchModel)
{
WatchletInfo info;
if (id != "com.javispedro.sowatch.sysinfo") return info;
info.name = "Phone info";
- info.icon = QUrl::fromLocalFile(SOWATCH_QML_DIR "/sysinfowatchlet/icon.png");
+ info.phoneIcon = QUrl::fromLocalFile(SOWATCH_QML_DIR "/sysinfowatchlet/icon.png");
+ info.icon = QUrl::fromLocalFile(SOWATCH_QML_DIR "/sysinfowatchlet/" + watchModel + "-icon.png");
+ info.visible = true;
return info;
}