summaryrefslogtreecommitdiffstats
path: root/tdecore/tdehw/tdeeventdevice.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-08-24 19:48:44 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-08-24 19:48:44 -0500
commitedb0581f3426731bb8247d61f3676d6ce00506f1 (patch)
tree1ecd2014355bcbba2085a42a5e81054042da377c /tdecore/tdehw/tdeeventdevice.cpp
parent8e37bb9724a476c7f34bd80545a21a91dd63b5b2 (diff)
downloadtdelibs-edb0581f3426731bb8247d61f3676d6ce00506f1.tar.gz
tdelibs-edb0581f3426731bb8247d61f3676d6ce00506f1.zip
Fix human readable display of ACPI buttons
Diffstat (limited to 'tdecore/tdehw/tdeeventdevice.cpp')
-rw-r--r--tdecore/tdehw/tdeeventdevice.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tdecore/tdehw/tdeeventdevice.cpp b/tdecore/tdehw/tdeeventdevice.cpp
index a98bc78c3..3a45cf5d1 100644
--- a/tdecore/tdehw/tdeeventdevice.cpp
+++ b/tdecore/tdehw/tdeeventdevice.cpp
@@ -114,6 +114,12 @@ TQStringList TDEEventDevice::friendlySwitchList(TDESwitchType::TDESwitchType swi
if (switches & TDESwitchType::LineInInsert) {
ret.append(i18n("Line In Inserted"));
}
+ if (switches & TDESwitchType::PowerButton) {
+ ret.append(i18n("Power Button"));
+ }
+ if (switches & TDESwitchType::SleepButton) {
+ ret.append(i18n("Sleep Button"));
+ }
return ret;
}