summaryrefslogtreecommitdiffstats
path: root/kxkb/kxkb.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2025-04-14 03:17:51 +0200
committerSlávek Banko <slavek.banko@axis.cz>2025-04-14 03:36:58 +0200
commit59c2b00dd7581a84524a93c99e942b77d6272a35 (patch)
tree3f4a61c1ac5fdf6a978e1f6f1d13d25d0c34e319 /kxkb/kxkb.cpp
parent81237f3a002b18f83c826f125cba83148b3c2a1b (diff)
downloadtdebase-59c2b00dd7581a84524a93c99e942b77d6272a35.tar.gz
tdebase-59c2b00dd7581a84524a93c99e942b77d6272a35.zip
Fix FTBFS when building kxkb without tdehw library.
This relates to issue #550. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'kxkb/kxkb.cpp')
-rw-r--r--kxkb/kxkb.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/kxkb/kxkb.cpp b/kxkb/kxkb.cpp
index d62999015..6aa5b8ee2 100644
--- a/kxkb/kxkb.cpp
+++ b/kxkb/kxkb.cpp
@@ -34,7 +34,9 @@ DESCRIPTION
#include <tdeaboutdata.h>
#include <tdecmdlineargs.h>
+#ifdef WITH_TDEHWLIB
#include <tdehardwaredevices.h>
+#endif
#include <tdeglobal.h>
#include <tdeglobalaccel.h>
#include <tdelocale.h>
@@ -83,10 +85,12 @@ KXKBApp::KXKBApp(bool allowStyles, bool GUIenabled)
connect( this, TQ_SIGNAL(settingsChanged(int)), TQ_SLOT(slotSettingsChanged(int)) );
addKipcEventMask( KIPC::SettingsChanged );
+#if WITH_TDEHWLIB
TDEHardwareDevices *hwdevices = TDEGlobal::hardwareDevices();
connect(hwdevices, TQ_SIGNAL(hardwareAdded(TDEGenericDevice*)), this, TQ_SLOT(hardwareChanged(TDEGenericDevice*)));
connect(hwdevices, TQ_SIGNAL(hardwareRemoved(TDEGenericDevice*)), this, TQ_SLOT(hardwareChanged(TDEGenericDevice*)));
connect(hwdevices, TQ_SIGNAL(hardwareUpdated(TDEGenericDevice*)), this, TQ_SLOT(hardwareChanged(TDEGenericDevice*)));
+#endif
}
KXKBApp::~KXKBApp()
@@ -205,10 +209,12 @@ void KXKBApp::applyXkbOptions()
void KXKBApp::hardwareChanged(TDEGenericDevice *dev)
{
+# if WITH_TDEHWLIB
if (dev->type() == TDEGenericDeviceType::Keyboard)
{
TQTimer::singleShot(500, this, TQ_SLOT(applyXkbOptions()));
}
+# endif
}
// kdcop