From 12cf6df3f1c90c6ccbab398f0ae03c946e4af638 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Sun, 5 May 2013 03:18:46 +0200 Subject: continue working on qml watchface support --- sowatchd/watchhandler.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'sowatchd/watchhandler.cpp') diff --git a/sowatchd/watchhandler.cpp b/sowatchd/watchhandler.cpp index bde68b4..a2ea76a 100644 --- a/sowatchd/watchhandler.cpp +++ b/sowatchd/watchhandler.cpp @@ -57,6 +57,22 @@ WatchHandler::WatchHandler(ConfigKey *config, QObject *parent) // Configure the server _server->setNextWatchletButton(_config->value("next-watchlet-button").toString()); + QString idle_watchlet_id = _config->value("idle-watchlet").toString(); + if (!idle_watchlet_id.isEmpty()) { + Watchlet *watchlet = createWatchlet(idle_watchlet_id); + if (watchlet) { + _server->setIdleWatchlet(watchlet); + } + } + + QString notif_watchlet_id = _config->value("notification-watchlet").toString(); + if (!notif_watchlet_id.isEmpty()) { + Watchlet *watchlet = createWatchlet(notif_watchlet_id); + if (watchlet) { + _server->setNotificationWatchlet(watchlet); + } + } + updateProviders(); updateWatchlets(); } -- cgit v1.2.3