From 5ed7e732c163e2e40312f25588b7121b9efc3f9d Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 4 Nov 2018 00:36:23 +0900 Subject: Renamed Sleep to Suspend, following discussion on a more consistent naming convention for shutdown actions. Signed-off-by: Michele Calgaro --- src/hardware.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/hardware.cpp') diff --git a/src/hardware.cpp b/src/hardware.cpp index 4d688f5..1b16289 100644 --- a/src/hardware.cpp +++ b/src/hardware.cpp @@ -306,7 +306,7 @@ void HardwareInfo::processMessage (msg_type type, TQString message, TQString val } else if (value.startsWith("power")) { TQTimer::singleShot(50, this, TQT_SLOT(emitPowerButtonPressed())); } else if (value.startsWith("sleep") || value.startsWith("suspend")) { - TQTimer::singleShot(50, this, TQT_SLOT(emitSleepButtonPressed())); + TQTimer::singleShot(50, this, TQT_SLOT(emitSuspendButtonPressed())); } else if (value.startsWith("hibernate")) { TQTimer::singleShot(50, this, TQT_SLOT(emitS2diskButtonPressed())); } else if (value.startsWith("brightness-")) { @@ -1357,9 +1357,9 @@ void HardwareInfo::emitPowerButtonPressed() { } /*! - * Function to emit the signal for the Sleep button. + * Function to emit the signal for the Suspend button. */ -void HardwareInfo::emitSleepButtonPressed() { +void HardwareInfo::emitSuspendButtonPressed() { if (sessionIsActive) { emit sleepButtonPressed(); } else { -- cgit v1.2.3