summaryrefslogtreecommitdiffstats
path: root/kivio/kiviopart/stencilbardockmanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'kivio/kiviopart/stencilbardockmanager.h')
-rw-r--r--kivio/kiviopart/stencilbardockmanager.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/kivio/kiviopart/stencilbardockmanager.h b/kivio/kiviopart/stencilbardockmanager.h
index 12eb18c9..8894def1 100644
--- a/kivio/kiviopart/stencilbardockmanager.h
+++ b/kivio/kiviopart/stencilbardockmanager.h
@@ -19,9 +19,13 @@
#ifndef STENCILBARDOCKMANAGER_H
#define STENCILBARDOCKMANAGER_H
+#ifdef Q_MOC_RUN
+#define Q_WS_X11
+#endif // Q_MOC_RUN
+
#include <tqwidget.h>
#include <tqptrlist.h>
-#if defined TQ_WS_X11 && !defined K_WS_TQTONLY
+#if defined Q_WS_X11 && !defined K_WS_TQTONLY
#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
@@ -167,7 +171,7 @@ class KoToolDockMoveManager: public TQObject
int offX, offY;
/* X-stuff */
-#if defined TQ_WS_X11 && !defined K_WS_TQTONLY
+#if defined Q_WS_X11 && !defined K_WS_TQTONLY
Window root;
GC rootgc;
int scr;