summaryrefslogtreecommitdiffstats
path: root/src/kernel/qpainter.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-28 22:31:39 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-28 22:31:39 -0600
commit41bb408dde90e755b07cd2ab8a9bdec7548c84b0 (patch)
tree6d4d5407c000add30aa78630e009c0e5d633e440 /src/kernel/qpainter.cpp
parent1740cd279522c060e738bbbffacab83355d2b794 (diff)
downloadtqt3-41bb408dde90e755b07cd2ab8a9bdec7548c84b0.tar.gz
tqt3-41bb408dde90e755b07cd2ab8a9bdec7548c84b0.zip
Automated conversion from qt3
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 d21be3703..79960a4ec 100644
--- a/src/kernel/qpainter.cpp
+++ b/src/kernel/qpainter.cpp
@@ -601,7 +601,7 @@ bool TQPainter::begin( const TQPaintDevice *pd, const TQWidget *copyAttributes,
{
if ( copyAttributes == 0 ) {
#if defined(QT_CHECK_NULL)
- qWarning( "TQPainter::begin: The widget to copy attributes from cannot "
+ tqWarning( "TQPainter::begin: The widget to copy attributes from cannot "
"be null" );
#endif
return FALSE;
@@ -684,7 +684,7 @@ void TQPainter::killPStack()
{
#if defined(QT_CHECK_STATE)
if ( ps_stack && !((TQPStateStack *)ps_stack)->isEmpty() )
- qWarning( "TQPainter::killPStack: non-empty save/restore stack when "
+ tqWarning( "TQPainter::killPStack: non-empty save/restore stack when "
"end() was called" );
#endif
delete (TQPStateStack *)ps_stack;
@@ -763,7 +763,7 @@ void TQPainter::restore()
TQPStateStack *pss = (TQPStateStack *)ps_stack;
if ( pss == 0 || pss->isEmpty() ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQPainter::restore: Empty stack error" );
+ tqWarning( "TQPainter::restore: Empty stack error" );
#endif
return;
}
@@ -842,7 +842,7 @@ void TQPainter::redirect( TQPaintDevice *pdev, TQPaintDevice *replacement )
}
#if defined(QT_CHECK_NULL)
if ( pdev == 0 )
- qWarning( "TQPainter::redirect: The pdev argument cannot be 0" );
+ tqWarning( "TQPainter::redirect: The pdev argument cannot be 0" );
#endif
if ( replacement ) {
pdev_dict->insert( pdev, replacement );
@@ -920,7 +920,7 @@ void TQPainter::setPen( const TQPen &pen )
{
#if defined(QT_CHECK_STATE)
if ( !isActive() )
- qWarning( "TQPainter::setPen: Will be reset by begin()" );
+ tqWarning( "TQPainter::setPen: Will be reset by begin()" );
#endif
if ( cpen == pen )
return;
@@ -941,7 +941,7 @@ void TQPainter::setPen( PenStyle style )
{
#if defined(QT_CHECK_STATE)
if ( !isActive() )
- qWarning( "TQPainter::setPen: Will be reset by begin()" );
+ tqWarning( "TQPainter::setPen: Will be reset by begin()" );
#endif
TQPen::TQPenData *d = cpen.data; // low level access
if ( d->style == style && d->linest == style && !d->width && d->color == TQt::black )
@@ -970,7 +970,7 @@ void TQPainter::setPen( const TQColor &color )
{
#if defined(QT_CHECK_STATE)
if ( !isActive() )
- qWarning( "TQPainter::setPen: Will be reset by begin()" );
+ tqWarning( "TQPainter::setPen: Will be reset by begin()" );
#endif
TQPen::TQPenData *d = cpen.data; // low level access
if ( d->color == color && !d->width && d->style == SolidLine && d->linest == SolidLine )
@@ -1008,7 +1008,7 @@ void TQPainter::setBrush( const TQBrush &brush )
{
#if defined(QT_CHECK_STATE)
if ( !isActive() )
- qWarning( "TQPainter::setBrush: Will be reset by begin()" );
+ tqWarning( "TQPainter::setBrush: Will be reset by begin()" );
#endif
if ( cbrush == brush )
return;
@@ -1027,7 +1027,7 @@ void TQPainter::setBrush( BrushStyle style )
{
#if defined(QT_CHECK_STATE)
if ( !isActive() )
- qWarning( "TQPainter::setBrush: Will be reset by begin()" );
+ tqWarning( "TQPainter::setBrush: Will be reset by begin()" );
#endif
TQBrush::TQBrushData *d = cbrush.data; // low level access
if ( d->style == style && d->color == TQt::black && !d->pixmap )
@@ -1058,7 +1058,7 @@ void TQPainter::setBrush( const TQColor &color )
{
#if defined(QT_CHECK_STATE)
if ( !isActive() )
- qWarning( "TQPainter::setBrush: Will be reset by begin()" );
+ tqWarning( "TQPainter::setBrush: Will be reset by begin()" );
#endif
TQBrush::TQBrushData *d = cbrush.data; // low level access
if ( d->color == color && d->style == SolidPattern && !d->pixmap )
@@ -1136,7 +1136,7 @@ void TQPainter::setTabStops( int ts )
{
#if defined(QT_CHECK_STATE)
if ( !isActive() )
- qWarning( "TQPainter::setTabStops: Will be reset by begin()" );
+ tqWarning( "TQPainter::setTabStops: Will be reset by begin()" );
#endif
tabstops = ts;
if ( isActive() && testf(ExtDev) ) { // tell extended device
@@ -1167,7 +1167,7 @@ void TQPainter::setTabArray( int *ta )
{
#if defined(QT_CHECK_STATE)
if ( !isActive() )
- qWarning( "TQPainter::setTabArray: Will be reset by begin()" );
+ tqWarning( "TQPainter::setTabArray: Will be reset by begin()" );
#endif
if ( ta != tabarray ) {
tabarraylen = 0;
@@ -1218,7 +1218,7 @@ void TQPainter::setViewXForm( bool enable )
{
#if defined(QT_CHECK_STATE)
if ( !isActive() )
- qWarning( "TQPainter::setViewXForm: Will be reset by begin()" );
+ tqWarning( "TQPainter::setViewXForm: Will be reset by begin()" );
#endif
if ( !isActive() || enable == testf(VxF) )
return;
@@ -1272,7 +1272,7 @@ void TQPainter::setWindow( int x, int y, int w, int h )
{
#if defined(QT_CHECK_STATE)
if ( !isActive() )
- qWarning( "TQPainter::setWindow: Will be reset by begin()" );
+ tqWarning( "TQPainter::setWindow: Will be reset by begin()" );
#endif
wx = x;
wy = y;
@@ -1322,7 +1322,7 @@ void TQPainter::setViewport( int x, int y, int w, int h )
{
#if defined(QT_CHECK_STATE)
if ( !isActive() )
- qWarning( "TQPainter::setViewport: Will be reset by begin()" );
+ tqWarning( "TQPainter::setViewport: Will be reset by begin()" );
#endif
vx = x;
vy = y;
@@ -1354,7 +1354,7 @@ void TQPainter::setWorldXForm( bool enable )
{
#if defined(QT_CHECK_STATE)
if ( !isActive() )
- qWarning( "TQPainter::setWorldXForm: Will be reset by begin()" );
+ tqWarning( "TQPainter::setWorldXForm: Will be reset by begin()" );
#endif
if ( !isActive() || enable == testf(WxF) )
return;
@@ -1440,7 +1440,7 @@ void TQPainter::setWorldMatrix( const TQWMatrix &m, bool combine )
{
if ( !isActive() ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQPainter::setWorldMatrix: Will be reset by begin()" );
+ tqWarning( "TQPainter::setWorldMatrix: Will be reset by begin()" );
#endif
return;
}
@@ -1493,7 +1493,7 @@ void TQPainter::restoreWorldMatrix()
TQWMatrixStack *stack = (TQWMatrixStack *)wm_stack;
if ( stack == 0 || stack->isEmpty() ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQPainter::restoreWorldMatrix: Empty stack error" );
+ tqWarning( "TQPainter::restoreWorldMatrix: Empty stack error" );
#endif
return;
}
@@ -1774,7 +1774,7 @@ void TQPainter::map( int x, int y, int w, int h,
} break;
default:
#if defined(QT_CHECK_STATE)
- qWarning( "TQPainter::map: Internal error" );
+ tqWarning( "TQPainter::map: Internal error" );
#endif
break;
}
@@ -1797,7 +1797,7 @@ void TQPainter::map( int x, int y, int w, int h,
break;
default:
#if defined(QT_CHECK_STATE)
- qWarning( "TQPainter::map: Internal error" );
+ tqWarning( "TQPainter::map: Internal error" );
#endif
break;
}
@@ -1819,7 +1819,7 @@ void TQPainter::mapInv( int x, int y, int *rx, int *ry ) const
#ifndef QT_NO_TRANSFORMATIONS
#if defined(QT_CHECK_STATE)
if ( !txinv )
- qWarning( "TQPainter::mapInv: Internal error" );
+ tqWarning( "TQPainter::mapInv: Internal error" );
#endif
if ( qt_old_transformations ) {
double tx = im11()*x + im21()*y+idx();
@@ -1848,7 +1848,7 @@ void TQPainter::mapInv( int x, int y, int w, int h,
#ifndef QT_NO_TRANSFORMATIONS
#if defined(QT_CHECK_STATE)
if ( !txinv || txop == TxRotShear )
- qWarning( "TQPainter::mapInv: Internal error" );
+ tqWarning( "TQPainter::mapInv: Internal error" );
#endif
if ( qt_old_transformations ) {
double tx = im11()*x + idx();
@@ -2939,20 +2939,20 @@ void qt_format_text( const TQFont& font, const TQRect &_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 ) {
TQTextItem 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 TQFont& font, const TQRect &_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 TQFont& font, const TQRect &_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 = TQMIN( left, lineLeft );
right = TQMAX( right, lineRight );
height += ascent + descent + 1;
@@ -2996,7 +2996,7 @@ void qt_format_text( const TQFont& font, const TQRect &_r,
if ( brect ) {
*brect = TQRect( 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 & TQPainter::DontPrint)) {
@@ -3032,10 +3032,10 @@ void qt_format_text( const TQFont& font, const TQRect &_r,
if (fnt.overline()) _tf |= TQt::Overline;
if (fnt.strikeOut()) _tf |= TQt::StrikeOut;
- //qDebug("have %d items",textLayout.numItems());
+ //tqDebug("have %d items",textLayout.numItems());
for ( int i = 0; i < textLayout.numItems(); i++ ) {
TQTextItem 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 TQBrush::setStyle( BrushStyle s ) // set brush style
return;
#if defined(QT_CHECK_RANGE)
if ( s == CustomPattern )
- qWarning( "TQBrush::setStyle: CustomPattern is for internal use" );
+ tqWarning( "TQBrush::setStyle: CustomPattern is for internal use" );
#endif
detach();
data->style = s;
@@ -3930,7 +3930,7 @@ TQDataStream &operator<<( TQDataStream &s, const TQBrush &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 @@ TQDataStream &operator>>( TQDataStream &s, TQBrush &b )
s >> pm;
b = TQBrush( color, pm );
#else
- qWarning("No Image Brush I/O");
+ tqWarning("No Image Brush I/O");
#endif
}
else