summaryrefslogtreecommitdiffstats
path: root/src/kernel/qpainter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/qpainter.cpp')
-rw-r--r--src/kernel/qpainter.cpp68
1 files changed, 34 insertions, 34 deletions
diff --git a/src/kernel/qpainter.cpp b/src/kernel/qpainter.cpp
index e5e9026..138ead6 100644
--- a/src/kernel/qpainter.cpp
+++ b/src/kernel/qpainter.cpp
@@ -601,7 +601,7 @@ bool QPainter::begin( const QPaintDevice *pd, const QWidget *copyAttributes, boo
{
if ( copyAttributes == 0 ) {
#if defined(QT_CHECK_NULL)
- qWarning( "QPainter::begin: The widget to copy attributes from cannot "
+ tqWarning( "QPainter::begin: The widget to copy attributes from cannot "
"be null" );
#endif
return FALSE;
@@ -684,7 +684,7 @@ void QPainter::killPStack()
{
#if defined(QT_CHECK_STATE)
if ( ps_stack && !((QPStateStack *)ps_stack)->isEmpty() )
- qWarning( "QPainter::killPStack: non-empty save/restore stack when "
+ tqWarning( "QPainter::killPStack: non-empty save/restore stack when "
"end() was called" );
#endif
delete (QPStateStack *)ps_stack;
@@ -763,7 +763,7 @@ void QPainter::restore()
QPStateStack *pss = (QPStateStack *)ps_stack;
if ( pss == 0 || pss->isEmpty() ) {
#if defined(QT_CHECK_STATE)
- qWarning( "QPainter::restore: Empty stack error" );
+ tqWarning( "QPainter::restore: Empty stack error" );
#endif
return;
}
@@ -842,7 +842,7 @@ void QPainter::redirect( QPaintDevice *pdev, QPaintDevice *replacement )
}
#if defined(QT_CHECK_NULL)
if ( pdev == 0 )
- qWarning( "QPainter::redirect: The pdev argument cannot be 0" );
+ tqWarning( "QPainter::redirect: The pdev argument cannot be 0" );
#endif
if ( replacement ) {
pdev_dict->insert( pdev, replacement );
@@ -920,7 +920,7 @@ void QPainter::setPen( const QPen &pen )
{
#if defined(QT_CHECK_STATE)
if ( !isActive() )
- qWarning( "QPainter::setPen: Will be reset by begin()" );
+ tqWarning( "QPainter::setPen: Will be reset by begin()" );
#endif
if ( cpen == pen )
return;
@@ -941,7 +941,7 @@ void QPainter::setPen( PenStyle style )
{
#if defined(QT_CHECK_STATE)
if ( !isActive() )
- qWarning( "QPainter::setPen: Will be reset by begin()" );
+ tqWarning( "QPainter::setPen: Will be reset by begin()" );
#endif
QPen::QPenData *d = cpen.data; // low level access
if ( d->style == style && d->linest == style && !d->width && d->color == Qt::black )
@@ -970,7 +970,7 @@ void QPainter::setPen( const QColor &color )
{
#if defined(QT_CHECK_STATE)
if ( !isActive() )
- qWarning( "QPainter::setPen: Will be reset by begin()" );
+ tqWarning( "QPainter::setPen: Will be reset by begin()" );
#endif
QPen::QPenData *d = cpen.data; // low level access
if ( d->color == color && !d->width && d->style == SolidLine && d->linest == SolidLine )
@@ -1008,7 +1008,7 @@ void QPainter::setBrush( const QBrush &brush )
{
#if defined(QT_CHECK_STATE)
if ( !isActive() )
- qWarning( "QPainter::setBrush: Will be reset by begin()" );
+ tqWarning( "QPainter::setBrush: Will be reset by begin()" );
#endif
if ( cbrush == brush )
return;
@@ -1027,7 +1027,7 @@ void QPainter::setBrush( BrushStyle style )
{
#if defined(QT_CHECK_STATE)
if ( !isActive() )
- qWarning( "QPainter::setBrush: Will be reset by begin()" );
+ tqWarning( "QPainter::setBrush: Will be reset by begin()" );
#endif
QBrush::QBrushData *d = cbrush.data; // low level access
if ( d->style == style && d->color == Qt::black && !d->pixmap )
@@ -1058,7 +1058,7 @@ void QPainter::setBrush( const QColor &color )
{
#if defined(QT_CHECK_STATE)
if ( !isActive() )
- qWarning( "QPainter::setBrush: Will be reset by begin()" );
+ tqWarning( "QPainter::setBrush: Will be reset by begin()" );
#endif
QBrush::QBrushData *d = cbrush.data; // low level access
if ( d->color == color && d->style == SolidPattern && !d->pixmap )
@@ -1136,7 +1136,7 @@ void QPainter::setTabStops( int ts )
{
#if defined(QT_CHECK_STATE)
if ( !isActive() )
- qWarning( "QPainter::setTabStops: Will be reset by begin()" );
+ tqWarning( "QPainter::setTabStops: Will be reset by begin()" );
#endif
tabstops = ts;
if ( isActive() && testf(ExtDev) ) { // tell extended device
@@ -1167,7 +1167,7 @@ void QPainter::setTabArray( int *ta )
{
#if defined(QT_CHECK_STATE)
if ( !isActive() )
- qWarning( "QPainter::setTabArray: Will be reset by begin()" );
+ tqWarning( "QPainter::setTabArray: Will be reset by begin()" );
#endif
if ( ta != tabarray ) {
tabarraylen = 0;
@@ -1218,7 +1218,7 @@ void QPainter::setViewXForm( bool enable )
{
#if defined(QT_CHECK_STATE)
if ( !isActive() )
- qWarning( "QPainter::setViewXForm: Will be reset by begin()" );
+ tqWarning( "QPainter::setViewXForm: Will be reset by begin()" );
#endif
if ( !isActive() || enable == testf(VxF) )
return;
@@ -1272,7 +1272,7 @@ void QPainter::setWindow( int x, int y, int w, int h )
{
#if defined(QT_CHECK_STATE)
if ( !isActive() )
- qWarning( "QPainter::setWindow: Will be reset by begin()" );
+ tqWarning( "QPainter::setWindow: Will be reset by begin()" );
#endif
wx = x;
wy = y;
@@ -1322,7 +1322,7 @@ void QPainter::setViewport( int x, int y, int w, int h )
{
#if defined(QT_CHECK_STATE)
if ( !isActive() )
- qWarning( "QPainter::setViewport: Will be reset by begin()" );
+ tqWarning( "QPainter::setViewport: Will be reset by begin()" );
#endif
vx = x;
vy = y;
@@ -1354,7 +1354,7 @@ void QPainter::setWorldXForm( bool enable )
{
#if defined(QT_CHECK_STATE)
if ( !isActive() )
- qWarning( "QPainter::setWorldXForm: Will be reset by begin()" );
+ tqWarning( "QPainter::setWorldXForm: Will be reset by begin()" );
#endif
if ( !isActive() || enable == testf(WxF) )
return;
@@ -1440,7 +1440,7 @@ void QPainter::setWorldMatrix( const QWMatrix &m, bool combine )
{
if ( !isActive() ) {
#if defined(QT_CHECK_STATE)
- qWarning( "QPainter::setWorldMatrix: Will be reset by begin()" );
+ tqWarning( "QPainter::setWorldMatrix: Will be reset by begin()" );
#endif
return;
}
@@ -1493,7 +1493,7 @@ void QPainter::restoreWorldMatrix()
QWMatrixStack *stack = (QWMatrixStack *)wm_stack;
if ( stack == 0 || stack->isEmpty() ) {
#if defined(QT_CHECK_STATE)
- qWarning( "QPainter::restoreWorldMatrix: Empty stack error" );
+ tqWarning( "QPainter::restoreWorldMatrix: Empty stack error" );
#endif
return;
}
@@ -1774,7 +1774,7 @@ void QPainter::map( int x, int y, int w, int h,
} break;
default:
#if defined(QT_CHECK_STATE)
- qWarning( "QPainter::map: Internal error" );
+ tqWarning( "QPainter::map: Internal error" );
#endif
break;
}
@@ -1797,7 +1797,7 @@ void QPainter::map( int x, int y, int w, int h,
break;
default:
#if defined(QT_CHECK_STATE)
- qWarning( "QPainter::map: Internal error" );
+ tqWarning( "QPainter::map: Internal error" );
#endif
break;
}
@@ -1819,7 +1819,7 @@ void QPainter::mapInv( int x, int y, int *rx, int *ry ) const
#ifndef QT_NO_TRANSFORMATIONS
#if defined(QT_CHECK_STATE)
if ( !txinv )
- qWarning( "QPainter::mapInv: Internal error" );
+ tqWarning( "QPainter::mapInv: Internal error" );
#endif
if ( qt_old_transformations ) {
double tx = im11()*x + im21()*y+idx();
@@ -1848,7 +1848,7 @@ void QPainter::mapInv( int x, int y, int w, int h,
#ifndef QT_NO_TRANSFORMATIONS
#if defined(QT_CHECK_STATE)
if ( !txinv || txop == TxRotShear )
- qWarning( "QPainter::mapInv: Internal error" );
+ tqWarning( "QPainter::mapInv: Internal error" );
#endif
if ( qt_old_transformations ) {
double tx = im11()*x + idx();
@@ -2939,20 +2939,20 @@ void qt_format_text( const QFont& font, const QRect &_r,
int desc = fm.descent();
height = -leading;
- //qDebug("\n\nbeginLayout: lw = %d, rectwidth=%d", lineWidth , r.width());
+ //tqDebug("\n\nbeginLayout: lw = %d, rectwidth=%d", lineWidth , r.width());
while ( !textLayout.atEnd() ) {
height += leading;
textLayout.beginLine( lineWidth == INT_MAX ? lineWidth : lineWidth );
- //qDebug("-----beginLine( %d )-----", lineWidth );
+ //tqDebug("-----beginLine( %d )-----", lineWidth );
bool linesep = FALSE;
while ( 1 ) {
QTextItem ti = textLayout.currentItem();
- //qDebug("item: from=%d, ch=%x", ti.from(), text.unicode()[ti.from()].unicode() );
+ //tqDebug("item: from=%d, ch=%x", ti.from(), text.unicode()[ti.from()].unicode() );
if ( expandtabs && ti.isTab() ) {
int tw = 0;
int x = textLayout.widthUsed();
if ( tabarraylen ) {
-// qDebug("tabarraylen=%d", tabarraylen );
+// tqDebug("tabarraylen=%d", tabarraylen );
int tab = 0;
while ( tab < tabarraylen ) {
if ( tabarray[tab] > x ) {
@@ -2964,7 +2964,7 @@ void qt_format_text( const QFont& font, const QRect &_r,
} else {
tw = tabstops - (x % tabstops);
}
- //qDebug("tw = %d", tw );
+ //tqDebug("tw = %d", tw );
if ( tw )
ti.setWidth( tw );
}
@@ -2979,7 +2979,7 @@ void qt_format_text( const QFont& font, const QRect &_r,
textLayout.setLineWidth( r.width()-rb-lb );
textLayout.endLine( 0, height, tf, &ascent, &descent,
&lineLeft, &lineRight );
- //qDebug("finalizing line: lw=%d ascent = %d, descent=%d lineleft=%d lineright=%d", lineWidth, ascent, descent,lineLeft, lineRight );
+ //tqDebug("finalizing line: lw=%d ascent = %d, descent=%d lineleft=%d lineright=%d", lineWidth, ascent, descent,lineLeft, lineRight );
left = QMIN( left, lineLeft );
right = QMAX( right, lineRight );
height += ascent + descent + 1;
@@ -2996,7 +2996,7 @@ void qt_format_text( const QFont& font, const QRect &_r,
if ( brect ) {
*brect = QRect( r.x() + left, r.y() + yoff, right-left + lb+rb, height );
- //qDebug("br = %d %d %d/%d, left=%d, right=%d", brect->x(), brect->y(), brect->width(), brect->height(), left, right);
+ //tqDebug("br = %d %d %d/%d, left=%d, right=%d", brect->x(), brect->y(), brect->width(), brect->height(), left, right);
}
if (!(tf & QPainter::DontPrint)) {
@@ -3032,10 +3032,10 @@ void qt_format_text( const QFont& font, const QRect &_r,
if (fnt.overline()) _tf |= Qt::Overline;
if (fnt.strikeOut()) _tf |= Qt::StrikeOut;
- //qDebug("have %d items",textLayout.numItems());
+ //tqDebug("have %d items",textLayout.numItems());
for ( int i = 0; i < textLayout.numItems(); i++ ) {
QTextItem ti = textLayout.itemAt( i );
- //qDebug("Item %d: from=%d, length=%d, space=%d x=%d", i, ti.from(), ti.length(), ti.isSpace(), ti.x() );
+ //tqDebug("Item %d: from=%d, length=%d, space=%d x=%d", i, ti.from(), ti.length(), ti.isSpace(), ti.x() );
if ( ti.isTab() || ti.isObject() )
continue;
int textFlags = _tf;
@@ -3803,7 +3803,7 @@ void QBrush::setStyle( BrushStyle s ) // set brush style
return;
#if defined(QT_CHECK_RANGE)
if ( s == CustomPattern )
- qWarning( "QBrush::setStyle: CustomPattern is for internal use" );
+ tqWarning( "QBrush::setStyle: CustomPattern is for internal use" );
#endif
detach();
data->style = s;
@@ -3930,7 +3930,7 @@ QDataStream &operator<<( QDataStream &s, const QBrush &b )
#ifndef QT_NO_IMAGEIO
s << *b.pixmap();
#else
- qWarning("No Image Brush I/O");
+ tqWarning("No Image Brush I/O");
#endif
return s;
}
@@ -3956,7 +3956,7 @@ QDataStream &operator>>( QDataStream &s, QBrush &b )
s >> pm;
b = QBrush( color, pm );
#else
- qWarning("No Image Brush I/O");
+ tqWarning("No Image Brush I/O");
#endif
}
else