From 140c6bfafe91007c7e24ebf59270c8ad8060e875 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Fri, 9 Dec 2011 02:26:31 +0100 Subject: Removing the entire grabButton/ungrab mechanism Applications&server no longer have to grab/ungrab buttons. Also, LED button should now work everywhere in digital MetaWatch. --- metawatch/metawatchdigital.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'metawatch/metawatchdigital.cpp') diff --git a/metawatch/metawatchdigital.cpp b/metawatch/metawatchdigital.cpp index b91b370..50ce301 100644 --- a/metawatch/metawatchdigital.cpp +++ b/metawatch/metawatchdigital.cpp @@ -333,6 +333,18 @@ QImage MetaWatchDigital::iconForNotification(const Notification *n) void MetaWatchDigital::handleWatchConnected() { + // Grab all of the buttons that are of interest to us + // We do not grab the D button, as it triggers the LED. + grabButton(IdleMode, BtnA); + grabButton(NotificationMode, BtnA); + grabButton(NotificationMode, BtnB); + grabButton(NotificationMode, BtnC); + grabButton(ApplicationMode, BtnA); + grabButton(ApplicationMode, BtnB); + grabButton(ApplicationMode, BtnC); + grabButton(ApplicationMode, BtnE); + grabButton(ApplicationMode, BtnF); + // Configure to show watch-rendered clock in idle screen configureLcdIdleSystemArea(false); -- cgit v1.2.3