From a3a78dc564239fb0a0c51f4ac878c8f7b88e7471 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 16 May 2014 03:20:14 +0200 Subject: Use new signal switchChanged for monitoring closing the lid This resolves Bug 2052 --- src/hardware.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/hardware.cpp b/src/hardware.cpp index cb4e98c..92d2b36 100644 --- a/src/hardware.cpp +++ b/src/hardware.cpp @@ -603,6 +603,7 @@ bool HardwareInfo::intialiseHWInfo() { if (!allUDIs.contains( hwdevice->uniqueID() )) { allUDIs.append( hwdevice->uniqueID() ); } + connect(edevice, TQT_SIGNAL(switchChanged()), this, TQT_SLOT(checkLidcloseState())); checkLidcloseState(); } } -- cgit v1.2.1