summaryrefslogtreecommitdiffstats
path: root/tdecore/kkeynative_x11.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdecore/kkeynative_x11.cpp')
-rw-r--r--tdecore/kkeynative_x11.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/tdecore/kkeynative_x11.cpp b/tdecore/kkeynative_x11.cpp
index d5ecb24da..8ab457a26 100644
--- a/tdecore/kkeynative_x11.cpp
+++ b/tdecore/kkeynative_x11.cpp
@@ -23,7 +23,7 @@
#include <tqnamespace.h>
#include <tqwindowdefs.h>
-#if defined(Q_WS_X11) || defined(Q_WS_WIN) || defined(Q_WS_MACX) // Only compile this module if we're compiling for X11, mac or win32
+#if defined(TQ_WS_X11) || defined(TQ_WS_WIN) || defined(TQ_WS_MACX) // Only compile this module if we're compiling for X11, mac or win32
#include "kkeynative.h"
#include "kkeyserver_x11.h"
@@ -34,7 +34,7 @@
#include <kdebug.h>
#include <tdelocale.h>
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
#define XK_MISCELLANY
#define XK_XKB_KEYS
#include <X11/X.h>
@@ -56,7 +56,7 @@ static KKeyNative* gx_pkey = 0;
KKeyNative::KKeyNative() { clear(); }
KKeyNative::KKeyNative( const KKey& key ) { init( key ); }
KKeyNative::KKeyNative( const KKeyNative& key ) { init( key ); }
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
KKeyNative::KKeyNative( const XEvent* pEvent ) { init( pEvent ); }
#endif
@@ -77,7 +77,7 @@ void KKeyNative::clear()
m_sym = 0;
}
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
bool KKeyNative::init( const XEvent* pEvent )
{
KeySym keySym;
@@ -91,11 +91,11 @@ bool KKeyNative::init( const XEvent* pEvent )
bool KKeyNative::init( const KKey& key )
{
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
m_sym = key.sym();
m_code = m_sym; //key.keyCodeQt();
m_mod = key.m_mod;
-#elif !defined(Q_WS_WIN) && !defined(Q_WS_MACX)
+#elif !defined(TQ_WS_WIN) && !defined(TQ_WS_MACX)
// Get any extra mods required by the sym.
// E.g., XK_Plus requires SHIFT on the en layout.
m_sym = key.sym();
@@ -167,7 +167,7 @@ KKeyNative& KKeyNative::null()
KKey KKeyNative::key() const
{
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
return KKey( m_sym, m_mod );
#else
uint modSpec;
@@ -192,7 +192,7 @@ int KKeyNative::keyCodeQt() const
bool KKeyNative::keyboardHasWinKey() { return KKeyServer::keyboardHasWinKey(); }
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
uint KKeyNative::modX( KKey::ModFlag modFlag ) { return KKeyServer::modX( modFlag ); }
uint KKeyNative::accelModMaskX() { return KKeyServer::accelModMaskX(); }
uint KKeyNative::modXNumLock() { return KKeyServer::modXNumLock(); }
@@ -201,4 +201,4 @@ uint KKeyNative::modXScrollLock() { return KKeyServer::modXScrollLo
uint KKeyNative::modXModeSwitch() { return KKeyServer::modXModeSwitch(); }
#endif
-#endif // Q_WS_X11
+#endif // TQ_WS_X11