diff options
Diffstat (limited to 'src/kernel/qpainter_x11.cpp')
-rw-r--r-- | src/kernel/qpainter_x11.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/src/kernel/qpainter_x11.cpp b/src/kernel/qpainter_x11.cpp index badbe9e23..a35b5b3b8 100644 --- a/src/kernel/qpainter_x11.cpp +++ b/src/kernel/qpainter_x11.cpp @@ -347,7 +347,7 @@ static GC alloc_gc( Display *dpy, int scrn, Drawable hd, bool monochrome=FALSE, p++; } #if defined(QT_CHECK_NULL) - qWarning( "TQPainter: Internal error; no available GC" ); + tqWarning( "TQPainter: Internal error; no available GC" ); #endif GC gc = XCreateGC( dpy, hd, 0, 0 ); XSetGraphicsExposures( dpy, gc, False ); @@ -449,9 +449,9 @@ static void cleanup_gc_cache() if ( !gc_cache_init ) return; #if defined(GC_CACHE_STAT) - qDebug( "Number of cache hits = %d", g_numhits ); - qDebug( "Number of cache creates = %d", g_numcreates ); - qDebug( "Number of cache faults = %d", g_numfaults ); + tqDebug( "Number of cache hits = %d", g_numhits ); + tqDebug( "Number of cache creates = %d", g_numcreates ); + tqDebug( "Number of cache faults = %d", g_numfaults ); for ( int i=0; i<gc_cache_size; i++ ) { TQCString str; TQBuffer buf( str ); @@ -464,7 +464,7 @@ static void cleanup_gc_cache() << g->count << '\t'; } s << '\0'; - qDebug( str ); + tqDebug( str ); buf.close(); } #endif @@ -640,7 +640,7 @@ void TQPainter::setFont( const TQFont &font ) { #if defined(QT_CHECK_STATE) if ( !isActive() ) - qWarning( "TQPainter::setFont: Will be reset by begin()" ); + tqWarning( "TQPainter::setFont: Will be reset by begin()" ); #endif if ( cfont.d != font.d ) { cfont = font; @@ -1013,14 +1013,14 @@ bool TQPainter::begin( const TQPaintDevice *pd, bool unclipped ) { if ( isActive() ) { // already active painting #if defined(QT_CHECK_STATE) - qWarning( "TQPainter::begin: Painter is already active." + tqWarning( "TQPainter::begin: Painter is already active." "\n\tYou must end() the painter before a second begin()" ); #endif return FALSE; } if ( pd == 0 ) { #if defined(QT_CHECK_NULL) - qWarning( "TQPainter::begin: Paint device cannot be null" ); + tqWarning( "TQPainter::begin: Paint device cannot be null" ); #endif return FALSE; } @@ -1039,7 +1039,7 @@ bool TQPainter::begin( const TQPaintDevice *pd, bool unclipped ) if ( pdev->isExtDev() && pdev->paintingActive() ) { // somebody else is already painting #if defined(QT_CHECK_STATE) - qWarning( "TQPainter::begin: Another TQPainter is already painting " + tqWarning( "TQPainter::begin: Another TQPainter is already painting " "this device;\n\tAn extended paint device can only be " "painted by one TQPainter at a time." ); #endif @@ -1129,7 +1129,7 @@ bool TQPainter::begin( const TQPaintDevice *pd, bool unclipped ) TQPixmap *pm = (TQPixmap*)pdev; if ( pm->isNull() ) { #if defined(QT_CHECK_NULL) - qWarning( "TQPainter::begin: Cannot paint null pixmap" ); + tqWarning( "TQPainter::begin: Cannot paint null pixmap" ); #endif end(); return FALSE; @@ -1189,7 +1189,7 @@ bool TQPainter::end() // end painting { if ( !isActive() ) { #if defined(QT_CHECK_STATE) - qWarning( "TQPainter::end: Missing begin() or begin() failed" ); + tqWarning( "TQPainter::end: Missing begin() or begin() failed" ); #endif return FALSE; } @@ -1290,7 +1290,7 @@ void TQPainter::setBackgroundColor( const TQColor &c ) { if ( !isActive() ) { #if defined(QT_CHECK_STATE) - qWarning( "TQPainter::setBackgroundColor: Call begin() first" ); + tqWarning( "TQPainter::setBackgroundColor: Call begin() first" ); #endif return; } @@ -1325,13 +1325,13 @@ void TQPainter::setBackgroundMode( BGMode m ) { if ( !isActive() ) { #if defined(QT_CHECK_STATE) - qWarning( "TQPainter::setBackgroundMode: Call begin() first" ); + tqWarning( "TQPainter::setBackgroundMode: Call begin() first" ); #endif return; } if ( m != TransparentMode && m != OpaqueMode ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQPainter::setBackgroundMode: Invalid mode" ); + tqWarning( "TQPainter::setBackgroundMode: Invalid mode" ); #endif return; } @@ -1379,13 +1379,13 @@ void TQPainter::setRasterOp( RasterOp r ) { if ( !isActive() ) { #if defined(QT_CHECK_STATE) - qWarning( "TQPainter::setRasterOp: Call begin() first" ); + tqWarning( "TQPainter::setRasterOp: Call begin() first" ); #endif return; } if ( (uint)r > LastROP ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQPainter::setRasterOp: Invalid ROP code" ); + tqWarning( "TQPainter::setRasterOp: Invalid ROP code" ); #endif return; } @@ -1420,7 +1420,7 @@ void TQPainter::setBrushOrigin( int x, int y ) { if ( !isActive() ) { #if defined(QT_CHECK_STATE) - qWarning( "TQPainter::setBrushOrigin: Call begin() first" ); + tqWarning( "TQPainter::setBrushOrigin: Call begin() first" ); #endif return; } @@ -1449,7 +1449,7 @@ void TQPainter::setClipping( bool enable ) { if ( !isActive() ) { #if defined(QT_CHECK_STATE) - qWarning( "TQPainter::setClipping: Will be reset by begin()" ); + tqWarning( "TQPainter::setClipping: Will be reset by begin()" ); #endif return; } @@ -1514,7 +1514,7 @@ void TQPainter::setClipRegion( const TQRegion &rgn, CoordinateMode m ) { #if defined(QT_CHECK_STATE) if ( !isActive() ) - qWarning( "TQPainter::setClipRegion: Will be reset by begin()" ); + tqWarning( "TQPainter::setClipRegion: Will be reset by begin()" ); #endif if ( m == CoordDevice ) crgn = rgn; @@ -2501,7 +2501,7 @@ void TQPainter::drawCubicBezier( const TQPointArray &a, int index ) return; if ( a.size() - index < 4 ) { #if defined(QT_CHECK_RANGE) - qWarning( "TQPainter::drawCubicBezier: Cubic Bezier needs 4 control " + tqWarning( "TQPainter::drawCubicBezier: Cubic Bezier needs 4 control " "points" ); #endif return; @@ -2681,7 +2681,7 @@ void TQPainter::drawPixmap( int x, int y, const TQPixmap &pixmap, TQBitmap *comb = new TQBitmap( sw, sh ); comb->detach(); - GC cgc = qt_xget_temp_gc( pixmap.x11Screen(), TRUE ); // get temporary mono GC + GC cgc = tqt_xget_temp_gc( pixmap.x11Screen(), TRUE ); // get temporary mono GC XSetForeground( dpy, cgc, 0 ); XFillRectangle( dpy, comb->handle(), cgc, 0, 0, sw, sh ); XSetBackground( dpy, cgc, 0 ); |