summaryrefslogtreecommitdiff
path: root/metawatch/metawatchdigital.cpp
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2011-12-09 02:26:31 +0100
committerJavier S. Pedro <maemo@javispedro.com>2011-12-09 02:26:31 +0100
commit140c6bfafe91007c7e24ebf59270c8ad8060e875 (patch)
tree59c23a95edb83736fb914ade8fc287c5490528fd /metawatch/metawatchdigital.cpp
parentcbf8e3ad49917dc71e8c5f6413c55f266c1c4ad3 (diff)
downloadsowatch-140c6bfafe91007c7e24ebf59270c8ad8060e875.tar.gz
sowatch-140c6bfafe91007c7e24ebf59270c8ad8060e875.zip
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.
Diffstat (limited to 'metawatch/metawatchdigital.cpp')
-rw-r--r--metawatch/metawatchdigital.cpp12
1 files changed, 12 insertions, 0 deletions
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);