From edb0581f3426731bb8247d61f3676d6ce00506f1 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 24 Aug 2013 19:48:44 -0500 Subject: Fix human readable display of ACPI buttons --- tdecore/tdehw/tdeeventdevice.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tdecore/tdehw/tdeeventdevice.cpp') 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; } -- cgit v1.2.1