diff --git a/chalk/chalkcolor/kis_profile.cpp b/chalk/chalkcolor/kis_profile.cpp index df98a7506..7afde3e9b 100644 --- a/chalk/chalkcolor/kis_profile.cpp +++ b/chalk/chalkcolor/kis_profile.cpp @@ -168,7 +168,7 @@ KisAnnotationSP KisProfile::annotation() const KisProfile * KisProfile::getScreenProfile (int screen) { -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 Atom type; int format; diff --git a/chalk/ui/kis_canvas.cpp b/chalk/ui/kis_canvas.cpp index 38df814e3..910a9e533 100644 --- a/chalk/ui/kis_canvas.cpp +++ b/chalk/ui/kis_canvas.cpp @@ -73,7 +73,7 @@ #include "kis_input_device.h" #include "fixx11h.h" -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 #include #include @@ -98,14 +98,14 @@ std::map KisCanvasWidget::X11TabletDevice #endif // EXTENDED_X11_TABLET_SUPPORT -#endif // Q_WS_X11 +#endif // TQ_WS_X11 KisCanvasWidget::KisCanvasWidget() { m_enableMoveEventCompressionHint = false; m_lastPressure = 0; -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 if (!X11SupportInitialised) { initX11Support(); } @@ -180,7 +180,7 @@ void KisCanvasWidget::widgetGotTabletEvent(TQTabletEvent *e) else { KisMoveEvent ke(device, KisPoint(e->pos()), KisPoint(e->globalPos()), pressure, e->xTilt(), e->yTilt(), TQt::NoButton); translateTabletEvent(&ke); -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 // Fix the problem that when you change from using a tablet device to the mouse, // the first mouse button event is not recognised. This is because we handle // X11 core mouse move events directly so TQt does not get to see them. This breaks @@ -292,7 +292,7 @@ void KisCanvasWidget::translateTabletEvent(KisEvent *e) m_lastPressure = e->pressure(); } -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 void KisCanvasWidget::initX11Support() { @@ -1058,7 +1058,7 @@ KisInputDevice KisCanvasWidget::findActiveInputDevice() #endif // EXTENDED_X11_TABLET_SUPPORT -#endif // Q_WS_X11 +#endif // TQ_WS_X11 /*************************************************************************/ diff --git a/chalk/ui/kis_canvas.h b/chalk/ui/kis_canvas.h index 737ca5d86..b5b883e02 100644 --- a/chalk/ui/kis_canvas.h +++ b/chalk/ui/kis_canvas.h @@ -36,10 +36,10 @@ #include "kis_input_device.h" #ifdef Q_MOC_RUN -#define Q_WS_X11 +#define TQ_WS_X11 #endif // Q_MOC_RUN -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 // Irix has a different (and better) XInput tablet driver to // the XFree/xorg driver. TQt needs a separate code path for that @@ -55,7 +55,7 @@ #include #endif -#endif // Q_WS_X11 +#endif // TQ_WS_X11 class KisEvent; class KisMoveEvent; @@ -86,7 +86,7 @@ public: static void selectTabletDeviceEvents(TQWidget *widget); #endif -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 static void initX11Support(); #endif @@ -129,7 +129,7 @@ protected: bool m_enableMoveEventCompressionHint; double m_lastPressure; -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 // On X11 systems, TQt throws away mouse move events if the application // is unable to keep up with them. We override this behaviour so that // we receive all move events, so that painting follows the mouse's motion @@ -278,7 +278,7 @@ protected: #endif // EXTENDED_X11_TABLET_SUPPORT -#endif // Q_WS_X11 +#endif // TQ_WS_X11 }; class KisCanvas : public TQObject { diff --git a/chalk/ui/kis_opengl_canvas.cpp b/chalk/ui/kis_opengl_canvas.cpp index 82363a0b8..bae8a2d14 100644 --- a/chalk/ui/kis_opengl_canvas.cpp +++ b/chalk/ui/kis_opengl_canvas.cpp @@ -102,14 +102,14 @@ void KisOpenGLCanvasWidget::dropEvent(TQDropEvent *e) widgetGotDropEvent(e); } -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 bool KisOpenGLCanvasWidget::x11Event(XEvent *event) { return KisCanvasWidget::x11Event(event, x11Display(), winId(), mapToGlobal(TQPoint(0, 0))); } -#endif // Q_WS_X11 +#endif // TQ_WS_X11 KisCanvasWidgetPainter *KisOpenGLCanvasWidget::createPainter() { diff --git a/chalk/ui/kis_opengl_canvas.h b/chalk/ui/kis_opengl_canvas.h index 99a67b09e..abf504eeb 100644 --- a/chalk/ui/kis_opengl_canvas.h +++ b/chalk/ui/kis_opengl_canvas.h @@ -32,12 +32,12 @@ #include "kis_canvas.h" #ifdef Q_MOC_RUN -#define Q_WS_X11 +#define TQ_WS_X11 #endif // Q_MOC_RUN -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 #include -#endif // Q_WS_X11 +#endif // TQ_WS_X11 #define KisOpenGLCanvasFormat (TQGL::DoubleBuffer|TQGL::Rgba|TQGL::DirectRendering|TQGL::NoDepthBuffer) @@ -66,9 +66,9 @@ protected: virtual void keyReleaseEvent(TQKeyEvent *event); virtual void dragEnterEvent(TQDragEnterEvent *event); virtual void dropEvent(TQDropEvent *event); -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 bool x11Event(XEvent *event); -#endif // Q_WS_X11 +#endif // TQ_WS_X11 }; #endif // HAVE_GL diff --git a/chalk/ui/kis_qpaintdevice_canvas.cpp b/chalk/ui/kis_qpaintdevice_canvas.cpp index cd024c4ae..ae4690098 100644 --- a/chalk/ui/kis_qpaintdevice_canvas.cpp +++ b/chalk/ui/kis_qpaintdevice_canvas.cpp @@ -97,14 +97,14 @@ void KisTQPaintDeviceCanvasWidget::dropEvent(TQDropEvent *e) widgetGotDropEvent(e); } -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 bool KisTQPaintDeviceCanvasWidget::x11Event(XEvent *event) { return KisCanvasWidget::x11Event(event, x11Display(), winId(), mapToGlobal(TQPoint(0, 0))); } -#endif // Q_WS_X11 +#endif // TQ_WS_X11 KisCanvasWidgetPainter *KisTQPaintDeviceCanvasWidget::createPainter() { diff --git a/chalk/ui/kis_qpaintdevice_canvas.h b/chalk/ui/kis_qpaintdevice_canvas.h index 706cb195e..1680a759d 100644 --- a/chalk/ui/kis_qpaintdevice_canvas.h +++ b/chalk/ui/kis_qpaintdevice_canvas.h @@ -30,12 +30,12 @@ #include "kis_canvas.h" #ifdef Q_MOC_RUN -#define Q_WS_X11 +#define TQ_WS_X11 #endif // Q_MOC_RUN -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 #include -#endif // Q_WS_X11 +#endif // TQ_WS_X11 class KisTQPaintDeviceCanvasWidget : public virtual TQWidget, public virtual KisCanvasWidget { public: @@ -62,9 +62,9 @@ protected: virtual void keyReleaseEvent(TQKeyEvent *event); virtual void dragEnterEvent(TQDragEnterEvent *event); virtual void dropEvent(TQDropEvent *event); -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 bool x11Event(XEvent *event); -#endif // Q_WS_X11 +#endif // TQ_WS_X11 }; #endif // KIS_TQPAINTDEVICE_CANVAS_H_ diff --git a/chalk/ui/kis_view.cpp b/chalk/ui/kis_view.cpp index 79246afc4..d1f6e7fa4 100644 --- a/chalk/ui/kis_view.cpp +++ b/chalk/ui/kis_view.cpp @@ -247,7 +247,7 @@ KisView::KisView(KisDoc *doc, KisUndoAdapter *adapter, TQWidget *parent, const c setFocusPolicy( TQWidget::StrongFocus ); // Must come before input devices are referenced as this detects them. -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 KisCanvasWidget::initX11Support(); #endif // Install event filter before we create any child widgets so they can see diff --git a/doc/api/Doxyfile.koffice b/doc/api/Doxyfile.koffice index cb7853a22..96b9c39a4 100644 --- a/doc/api/Doxyfile.koffice +++ b/doc/api/Doxyfile.koffice @@ -139,7 +139,7 @@ INCLUDE_PATH = INCLUDE_FILE_PATTERNS = PREDEFINED = TQT_VERSION=320 \ __cplusplus \ - Q_WS_X11 + TQ_WS_X11 EXPAND_AS_DEFINED = SKIP_FUNCTION_MACROS = YES TAGFILES = diff --git a/kexi/3rdparty/kolibs/koGlobal.cpp b/kexi/3rdparty/kolibs/koGlobal.cpp index a375327fd..03c1b3e1c 100644 --- a/kexi/3rdparty/kolibs/koGlobal.cpp +++ b/kexi/3rdparty/kolibs/koGlobal.cpp @@ -61,7 +61,7 @@ KoGlobal::KoGlobal() // Another way to get the DPI of the display would be TQPaintDeviceMetrics, // but we have no widget here (and moving this to KoView wouldn't allow // using this from the document easily). -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 m_dpiX = TQPaintDevice::x11AppDpiX(); m_dpiY = TQPaintDevice::x11AppDpiY(); #else diff --git a/kexi/kexidb/parser/sqlparser.y b/kexi/kexidb/parser/sqlparser.y index a33978065..6e123f5ed 100644 --- a/kexi/kexidb/parser/sqlparser.y +++ b/kexi/kexidb/parser/sqlparser.y @@ -446,7 +446,7 @@ #include #include //TODO OK? -#ifdef Q_WS_WIN +#ifdef TQ_WS_WIN //workaround for bug on msvc # undef LLONG_MIN #endif diff --git a/kivio/kiviopart/stencilbardockmanager.cpp b/kivio/kiviopart/stencilbardockmanager.cpp index 70600cb75..ad20970d0 100644 --- a/kivio/kiviopart/stencilbardockmanager.cpp +++ b/kivio/kiviopart/stencilbardockmanager.cpp @@ -308,14 +308,14 @@ void StencilBarDockManager::setAllStackBarsShown(bool shown) KoToolDockMoveManager::KoToolDockMoveManager() : TQObject() { -#if defined Q_WS_X11 && !defined K_WS_TQTONLY +#if defined TQ_WS_X11 && !defined K_WS_TQTONLY XGCValues gv; #endif working=false; noLast=true; -#if defined Q_WS_X11 && !defined K_WS_TQTONLY +#if defined TQ_WS_X11 && !defined K_WS_TQTONLY scr = tqt_xscreen(); root = tqt_xrootwin(); @@ -386,7 +386,7 @@ void KoToolDockMoveManager::doMoveInternal() if (check(xp, yp, w, h)) { paintProcess(false,xp, yp, w, h); -#if defined Q_WS_X11 && !defined K_WS_TQTONLY +#if defined TQ_WS_X11 && !defined K_WS_TQTONLY XFlush(tqt_xdisplay()); XSync(tqt_xdisplay(),false); #endif @@ -402,7 +402,7 @@ void KoToolDockMoveManager::stop() TQApplication::restoreOverrideCursor(); paintProcess(); -#if defined Q_WS_X11 && !defined K_WS_TQTONLY +#if defined TQ_WS_X11 && !defined K_WS_TQTONLY XFlush(tqt_xdisplay()); #endif @@ -424,7 +424,7 @@ void KoToolDockMoveManager::setGeometry(int _x, int _y, int _w, int _h) check(_x, _y, _w, _h, true); paintProcess(false,_x, _y, _w, _h); -#if defined Q_WS_X11 && !defined K_WS_TQTONLY +#if defined TQ_WS_X11 && !defined K_WS_TQTONLY XFlush(tqt_xdisplay()); XSync(tqt_xdisplay(),false); #endif @@ -440,7 +440,7 @@ void KoToolDockMoveManager::drawRectangle( int _x, int _y, int _w, int _h) ow = _w; oh = _h; -#if defined Q_WS_X11 && !defined K_WS_TQTONLY +#if defined TQ_WS_X11 && !defined K_WS_TQTONLY XDrawRectangle(tqt_xdisplay(), root, rootgc, _x, _y, _w, _h); #endif noLast = false; @@ -454,7 +454,7 @@ void KoToolDockMoveManager::paintProcess( bool onlyDelete, int _x, int _y, int _ if ( ox == _x && oy == _y && ow ==_w && oh == _h ) return; -#if defined Q_WS_X11 && !defined K_WS_TQTONLY +#if defined TQ_WS_X11 && !defined K_WS_TQTONLY XDrawRectangle(tqt_xdisplay(), root, rootgc, ox, oy, ow, oh); #endif noLast = true; @@ -546,7 +546,7 @@ void KoToolDockMoveManager::doResizeInternal() if (check(xp, yp, w, h)) { paintProcess(false,xp, yp, w, h); -#if defined Q_WS_X11 && !defined K_WS_TQTONLY +#if defined TQ_WS_X11 && !defined K_WS_TQTONLY XFlush(tqt_xdisplay()); XSync(tqt_xdisplay(),false); #endif diff --git a/kivio/kiviopart/stencilbardockmanager.h b/kivio/kiviopart/stencilbardockmanager.h index 32f5612cf..8bea05c5a 100644 --- a/kivio/kiviopart/stencilbardockmanager.h +++ b/kivio/kiviopart/stencilbardockmanager.h @@ -20,12 +20,12 @@ #define STENCILBARDOCKMANAGER_H #ifdef Q_MOC_RUN -#define Q_WS_X11 +#define TQ_WS_X11 #endif // Q_MOC_RUN #include #include -#if defined Q_WS_X11 && !defined K_WS_TQTONLY +#if defined TQ_WS_X11 && !defined K_WS_TQTONLY #include #include #include @@ -171,7 +171,7 @@ class KoToolDockMoveManager: public TQObject int offX, offY; /* X-stuff */ -#if defined Q_WS_X11 && !defined K_WS_TQTONLY +#if defined TQ_WS_X11 && !defined K_WS_TQTONLY Window root; GC rootgc; int scr; diff --git a/kspread/Doxyfile b/kspread/Doxyfile index bb39c7ba8..dc3d07325 100644 --- a/kspread/Doxyfile +++ b/kspread/Doxyfile @@ -929,7 +929,7 @@ INCLUDE_FILE_PATTERNS = PREDEFINED = TQT_VERSION=320 \ __cplusplus \ - Q_WS_X11 + TQ_WS_X11 # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then # this tag can be used to specify a list of macro names that should be expanded. diff --git a/lib/kofficecore/KoGlobal.cpp b/lib/kofficecore/KoGlobal.cpp index 94e7e7d96..b7c0ea572 100644 --- a/lib/kofficecore/KoGlobal.cpp +++ b/lib/kofficecore/KoGlobal.cpp @@ -64,7 +64,7 @@ KoGlobal::KoGlobal() // Another way to get the DPI of the display would be TQPaintDeviceMetrics, // but we have no widget here (and moving this to KoView wouldn't allow // using this from the document easily). -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 m_dpiX = TQPaintDevice::x11AppDpiX(); m_dpiY = TQPaintDevice::x11AppDpiY(); #else diff --git a/lib/kotext/KoTextZoomHandler.cpp b/lib/kotext/KoTextZoomHandler.cpp index e9fc430fa..1b6c4bdf2 100644 --- a/lib/kotext/KoTextZoomHandler.cpp +++ b/lib/kotext/KoTextZoomHandler.cpp @@ -40,7 +40,7 @@ double KoTextZoomHandler::layoutUnitToFontSize( int luSize, bool /*forPrint*/ ) { // TQt will use TQPaintDevice::x11AppDpiY() to go from pt to pixel for fonts return layoutUnitPtToPt( luSize ) * m_zoomedResolutionY -#ifdef Q_WS_X11 +#ifdef TQ_WS_X11 / POINT_TO_INCH(TQPaintDevice::x11AppDpiY()) #endif ;