summaryrefslogtreecommitdiffstats
path: root/src/keyboard.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-17 08:20:48 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-17 08:20:48 +0000
commitaa0726b20f398264f0a2abc60215be044b106f9c (patch)
tree070fdbc19a1106cfdd7f651a8ce76bb1b89a513d /src/keyboard.cpp
parentd3cf5b3e75aadc3b02d0b56f030d4c3f8c2c749d (diff)
downloadbasket-aa0726b20f398264f0a2abc60215be044b106f9c.tar.gz
basket-aa0726b20f398264f0a2abc60215be044b106f9c.zip
TQt4 port basket
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/basket@1232416 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/keyboard.cpp')
-rw-r--r--src/keyboard.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/keyboard.cpp b/src/keyboard.cpp
index a7871b3..9bab590 100644
--- a/src/keyboard.cpp
+++ b/src/keyboard.cpp
@@ -18,7 +18,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include <kapplication.h> // it define Q_WS_X11
+#include <kapplication.h> // it define TQ_WS_X11
#include "keyboard.h"
@@ -26,13 +26,13 @@
*/
// ShiftMask, ControlMask and Mod1Mask are defined in <X11/X.h>
-#if defined Q_WS_X11 && ! defined K_WS_QTONLY
+#if defined TQ_WS_X11 && ! defined K_WS_TQTONLY
#include <X11/Xlib.h> // schroder
#endif
void Keyboard::pressedKeys(bool &shiftPressed, bool &controlPressed)
{
-#if defined Q_WS_X11 && ! defined K_WS_QTONLY
+#if defined TQ_WS_X11 && ! defined K_WS_TQTONLY
Window root;
Window child;
int root_x, root_y, win_x, win_y;
@@ -49,7 +49,7 @@ void Keyboard::pressedKeys(bool &shiftPressed, bool &controlPressed)
*/
bool Keyboard::shiftPressed()
{
-#if defined Q_WS_X11 && ! defined K_WS_QTONLY
+#if defined TQ_WS_X11 && ! defined K_WS_TQTONLY
Window root;
Window child;
int root_x, root_y, win_x, win_y;
@@ -67,7 +67,7 @@ bool Keyboard::shiftPressed()
*/
bool Keyboard::controlPressed()
{
-#if defined Q_WS_X11 && ! defined K_WS_QTONLY
+#if defined TQ_WS_X11 && ! defined K_WS_TQTONLY
Window root;
Window child;
int root_x, root_y, win_x, win_y;
@@ -85,7 +85,7 @@ bool Keyboard::controlPressed()
*/
bool Keyboard::altPressed()
{
-#if defined Q_WS_X11 && ! defined K_WS_QTONLY
+#if defined TQ_WS_X11 && ! defined K_WS_TQTONLY
Window root;
Window child;
int root_x, root_y, win_x, win_y;
@@ -107,7 +107,7 @@ bool Keyboard::altPressed()
/ *
* Returns the currently pressed keyboard modifiers (e.g. shift, control, etc.)
* Usually you simply want to test for those in key events, in which case
- * QKeyEvent::state() does the job (or QKeyEvent::key() to
+ * TQKeyEvent::state() does the job (or TQKeyEvent::key() to
* notice when a modifier is pressed alone).
* But it can be useful to query for the status of the modifiers at another moment
* (e.g. some KDE apps do that upon a drop event).