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) --- metawatchwatchlets/metawatchwatchletsplugin.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'metawatchwatchlets/metawatchwatchletsplugin.cpp') diff --git a/metawatchwatchlets/metawatchwatchletsplugin.cpp b/metawatchwatchlets/metawatchwatchletsplugin.cpp index 601e659..4acf721 100644 --- a/metawatchwatchlets/metawatchwatchletsplugin.cpp +++ b/metawatchwatchlets/metawatchwatchletsplugin.cpp @@ -20,15 +20,19 @@ QStringList MetaWatchWatchletsPlugin::watchlets() return l; } -WatchletPluginInterface::WatchletInfo MetaWatchWatchletsPlugin::describeWatchlet(const QString &id) +WatchletPluginInterface::WatchletInfo MetaWatchWatchletsPlugin::describeWatchlet(const QString &id, const QString& watchModel) { WatchletInfo info; if (id == MetaWatchFaceWatchlet::myId) { - info.name = "MetaWatch Face Watchlet"; - info.hidden = true; + if (watchModel == "metawatch-digital") { + info.name = "MetaWatch Face Watchlet"; + // Keep non visible + } } else if (id == MetaWatchNotificationWatchlet::myId) { - info.name = "MetaWatch Notification Watchlet"; - info.hidden = true; + if (watchModel == "metawatch-digital") { + info.name = "MetaWatch Notification Watchlet"; + // Keep non visible + } } return info; } -- cgit v1.2.3