diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-10-17 19:46:30 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-10-17 19:46:30 +0900 |
commit | 69d87202cb139ffe9e4b3ce92e434523b7b09b64 (patch) | |
tree | 7b133311a4d5e5394f2612dced305f815c04847b /src/kernel/qpainter_x11.cpp | |
parent | e07baa10b7b8e7105e02a621efadac67216c61ed (diff) | |
download | tqt3-69d87202cb139ffe9e4b3ce92e434523b7b09b64.tar.gz tqt3-69d87202cb139ffe9e4b3ce92e434523b7b09b64.zip |
QT_NO_* -> TQT_NO_* renaming.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/kernel/qpainter_x11.cpp')
-rw-r--r-- | src/kernel/qpainter_x11.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/kernel/qpainter_x11.cpp b/src/kernel/qpainter_x11.cpp index bcc12af10..697dc784d 100644 --- a/src/kernel/qpainter_x11.cpp +++ b/src/kernel/qpainter_x11.cpp @@ -132,7 +132,7 @@ void qt_erase_rect( TQWidget* w, const TQRect& r) } -#ifdef QT_NO_XFTFREETYPE +#ifdef TQT_NO_XFTFREETYPE static const TQt::HANDLE rendhd = 0; #endif @@ -153,12 +153,12 @@ static inline void x11SetClipRegion(Display *dpy, GC gc, GC gc2, TQt::HANDLE dra if (gc2) XSetClipRectangles( dpy, gc2, 0, 0, rects, num, YXBanded ); -#ifndef QT_NO_XFTFREETYPE +#ifndef TQT_NO_XFTFREETYPE if (draw) XftDrawSetClipRectangles((XftDraw *) draw, 0, 0, rects, num); #else Q_UNUSED(draw); -#endif // QT_NO_XFTFREETYPE +#endif // TQT_NO_XFTFREETYPE } static inline void x11ClearClipRegion(Display *dpy, GC gc, GC gc2, TQt::HANDLE draw) @@ -168,7 +168,7 @@ static inline void x11ClearClipRegion(Display *dpy, GC gc, GC gc2, TQt::HANDLE d if (gc2) XSetClipMask(dpy, gc2, None); -#ifndef QT_NO_XFTFREETYPE +#ifndef TQT_NO_XFTFREETYPE if (draw) { # ifdef QT_XFT2 XftDrawSetClip((XftDraw *) draw, None); @@ -182,7 +182,7 @@ static inline void x11ClearClipRegion(Display *dpy, GC gc, GC gc2, TQt::HANDLE d } #else Q_UNUSED(draw); -#endif // QT_NO_XFTFREETYPE +#endif // TQT_NO_XFTFREETYPE } @@ -1127,7 +1127,7 @@ bool TQPainter::begin( const TQPaintDevice *pd, bool unclipped ) updateBrush(); XSetSubwindowMode( dpy, gc, IncludeInferiors ); XSetSubwindowMode( dpy, gc_brush, IncludeInferiors ); -#ifndef QT_NO_XFTFREETYPE +#ifndef TQT_NO_XFTFREETYPE if (rendhd) XftDrawSetSubwindowMode((XftDraw *) rendhd, IncludeInferiors); #endif @@ -1234,13 +1234,13 @@ bool TQPainter::end() // end painting if ( testf(ExtDev) ) pdev->cmd( TQPaintDevice::PdcEnd, this, 0 ); -#ifndef QT_NO_XFTFREETYPE +#ifndef TQT_NO_XFTFREETYPE if (rendhd) { // reset clipping/subwindow mode on our render picture XftDrawSetClip((XftDraw *) rendhd, None); XftDrawSetSubwindowMode((XftDraw *) rendhd, ClipByChildren); } -#endif // QT_NO_XFTFREETYPE +#endif // TQT_NO_XFTFREETYPE if ( pfont ) { delete pfont; @@ -2744,7 +2744,7 @@ void TQPainter::drawPixmap( int x, int y, const TQPixmap &pixmap, XSetTSOrigin( dpy, gc, 0, 0 ); XSetFillStyle( dpy, gc, FillSolid ); } else { -#if !defined(QT_NO_XFTFREETYPE) && !defined(QT_NO_XRENDER) +#if !defined(TQT_NO_XFTFREETYPE) && !defined(TQT_NO_XRENDER) Picture pict = rendhd ? XftDrawPicture((XftDraw *) rendhd) : None; TQPixmap *alpha = pixmap.data->alphapm; @@ -2754,7 +2754,7 @@ void TQPainter::drawPixmap( int x, int y, const TQPixmap &pixmap, alpha->x11RenderHandle(), pict, sx, sy, sx, sy, x, y, sw, sh); } else -#endif // !QT_NO_XFTFREETYPE && !QT_NO_XRENDER +#endif // !TQT_NO_XFTFREETYPE && !TQT_NO_XRENDER { XCopyArea( dpy, pixmap.handle(), hd, gc, sx, sy, sw, sh, x, y ); } @@ -2858,7 +2858,7 @@ void TQPainter::drawTiledPixmap( int x, int y, int w, int h, if ( txop == TxTranslate ) map( x, y, &x, &y ); -#if !defined(QT_NO_XFTFREETYPE) && !defined(QT_NO_XRENDER) +#if !defined(TQT_NO_XFTFREETYPE) && !defined(TQT_NO_XRENDER) Picture pict = rendhd ? XftDrawPicture((XftDraw *) rendhd) : None; TQPixmap *alpha = pixmap.data->alphapm; @@ -2889,7 +2889,7 @@ void TQPainter::drawTiledPixmap( int x, int y, int w, int h, } return; } -#endif // !QT_NO_XFTFREETYPE && !QT_NO_XRENDER +#endif // !TQT_NO_XFTFREETYPE && !TQT_NO_XRENDER XSetTile( dpy, gc, pixmap.handle() ); XSetFillStyle( dpy, gc, FillTiled ); |