From aa85254cd16cb870b8d1649ef1dbad09bd8491e8 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 1 Mar 2012 13:19:48 -0600 Subject: Rename additional global TQt functions --- libkdchart/KDChartPainter.cpp | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'libkdchart/KDChartPainter.cpp') diff --git a/libkdchart/KDChartPainter.cpp b/libkdchart/KDChartPainter.cpp index 849d2b2..03df77a 100644 --- a/libkdchart/KDChartPainter.cpp +++ b/libkdchart/KDChartPainter.cpp @@ -192,7 +192,7 @@ void KDChartPainter::registerPainter( const TQString& /*painterName*/, KDChartPainter* /*painter*/ ) { // PENDING(kalle) Implement this - qDebug( "Sorry, not implemented: KDChartPainter::registerPainter()" ); + tqDebug( "Sorry, not implemented: KDChartPainter::registerPainter()" ); } @@ -208,7 +208,7 @@ void KDChartPainter::registerPainter( const TQString& /*painterName*/, void KDChartPainter::unregisterPainter( const TQString& /*painterName*/ ) { // PENDING(kalle) Implement this - qDebug( "Sorry, not implemented: KDChartPainter::unregisterPainter()" ); + tqDebug( "Sorry, not implemented: KDChartPainter::unregisterPainter()" ); } @@ -247,7 +247,7 @@ void KDChartPainter::paint( TQPainter* painter, if( rect ) drawRect = *rect; else if( !KDChart::painterToDrawRect( painter, drawRect ) ){ - qDebug("ERROR: KDChartPainter::paint() could not calculate the drawing area."); + tqDebug("ERROR: KDChartPainter::paint() could not calculate the drawing area."); return; } setupGeometry( painter, data, drawRect ); @@ -255,7 +255,7 @@ void KDChartPainter::paint( TQPainter* painter, else drawRect = _outermostRect; - //qDebug("A2: _legendRect:\n%i,%i\n%i,%i", _legendRect.left(),_legendRect.top(),_legendRect.right(),_legendRect.bottom() ); + //tqDebug("A2: _legendRect:\n%i,%i\n%i,%i", _legendRect.left(),_legendRect.top(),_legendRect.right(),_legendRect.bottom() ); // Note: In addition to the below paintArea calls there might be several @@ -628,11 +628,11 @@ void KDChartPainter::paintDataValues( TQPainter* painter, if(anchor.x() < -250){ anchor.setX(-250); - //qDebug("!! bad negative x position in KDChartPainter::paintDataValues() !!"); + //tqDebug("!! bad negative x position in KDChartPainter::paintDataValues() !!"); } if(anchor.y() < -2500){ anchor.setY(-2500); - //qDebug("!! bad negative y position in KDChartPainter::paintDataValues() !!"); + //tqDebug("!! bad negative y position in KDChartPainter::paintDataValues() !!"); } int rotation( params()->dataValuesRotation( region->chart, @@ -1358,7 +1358,7 @@ TQFont KDChartPainter::trueLegendTitleFont() const static_cast < int > ( params()->legendTitleFontRelSize() * averageValueP1000 ); font.setPixelSize( nTxtHeight ); - // qDebug("l-t-height %i",nTxtHeight); + // tqDebug("l-t-height %i",nTxtHeight); } return font; } @@ -1394,8 +1394,8 @@ void KDChartPainter::paintLegend( TQPainter* painter, painter->drawRect( _legendRect ); } */ - //qDebug("B: _legendRect:\n %i,%i\n %i,%i", _legendRect.left(),_legendRect.top(),_legendRect.right(),_legendRect.bottom() ); - //qDebug("B: legendArea():\n %i,%i\n %i,%i\n", _params->legendArea().left(),_params->legendArea().top(),_params->legendArea().right(),_params->legendArea().bottom() ); + //tqDebug("B: _legendRect:\n %i,%i\n %i,%i", _legendRect.left(),_legendRect.top(),_legendRect.right(),_legendRect.bottom() ); + //tqDebug("B: legendArea():\n %i,%i\n %i,%i\n", _params->legendArea().left(),_params->legendArea().top(),_params->legendArea().right(),_params->legendArea().bottom() ); const int em2 = 2 * _legendEMSpace; const int em4 = 4 * _legendEMSpace; @@ -1879,7 +1879,7 @@ void KDChartPainter::calculateAllAxesRects( // iterate over all axes uint iAxis; for ( iAxis = 0; iAxis < KDCHART_MAX_AXES; ++iAxis ) { - //qDebug( "iAxis %i", iAxis ); + //tqDebug( "iAxis %i", iAxis ); const KDChartAxisParams& para = params()->axisParams( iAxis ); int areaSize = 0; @@ -1917,7 +1917,7 @@ void KDChartPainter::calculateAllAxesRects( dataDataset, dataDataset2, KDCHART_ALL_CHARTS ) ) { - qDebug( "IMPLEMENTATION ERROR: findDataset( DataEntry, ... ) should *always* return true. (a)" ); + tqDebug( "IMPLEMENTATION ERROR: findDataset( DataEntry, ... ) should *always* return true. (a)" ); dataDataset = KDCHART_ALL_DATASETS; } TQVariant::Type valType = TQVariant::Invalid; @@ -1987,7 +1987,7 @@ void KDChartPainter::calculateAllAxesRects( break; case KDChartAxisParams::AxisAreaModeMinMaxSize: { - qDebug( "Sorry, not implemented: AxisAreaModeMinMaxSize" ); + tqDebug( "Sorry, not implemented: AxisAreaModeMinMaxSize" ); } // @@ -2157,7 +2157,7 @@ void KDChartPainter::setupGeometry( TQPainter* painter, KDChartTableDataBase* data, const TQRect& drawRect ) { - //qDebug("INVOKING: KDChartPainter::setupGeometry()"); + //tqDebug("INVOKING: KDChartPainter::setupGeometry()"); // avoid recursion from repaint() being called due to params() changed signals... const bool oldBlockSignalsState = params()->signalsBlocked(); const_cast < KDChartParams* > ( params() )->blockSignals( true ); @@ -2248,7 +2248,7 @@ void KDChartPainter::setupGeometry( TQPainter* painter, font ); _legendTitleWidth = _legendTitle->width(); _legendTitleHeight = _legendTitle->height(); - // qDebug("1. _legendTitleHeight %i",_legendTitleHeight); + // tqDebug("1. _legendTitleHeight %i",_legendTitleHeight); } painter->setFont( trueLegendFont() ); @@ -2284,7 +2284,7 @@ void KDChartPainter::setupGeometry( TQPainter* painter, // have some space before the boundary line comes). sizeX = TQMAX( sizeX, _legendTitleWidth + _legendEMSpace*2 ); - //qDebug("setupGeometry mustDrawVerticalLegend: %s", mustDrawVerticalLegend() ? "YES":"NO "); + //tqDebug("setupGeometry mustDrawVerticalLegend: %s", mustDrawVerticalLegend() ? "YES":"NO "); // PENDING Michel: do that after having calculated the position if( !mustDrawVerticalLegend() ){ @@ -2303,7 +2303,7 @@ void KDChartPainter::setupGeometry( TQPainter* painter, _legendRect = TQRect( xposLeft + ( (xposRight-xposLeft) - sizeX ) / 2, yposTop, sizeX, sizeY ); yposTop = _legendRect.bottom() + params()->legendSpacing(); - //qDebug("A: _legendRect:\n%i,%i\n%i,%i", _legendRect.left(),_legendRect.top(),_legendRect.right(),_legendRect.bottom() ); + //tqDebug("A: _legendRect:\n%i,%i\n%i,%i", _legendRect.left(),_legendRect.top(),_legendRect.right(),_legendRect.bottom() ); break; case KDChartParams::LegendBottom: if ( params()->showGrid() ) @@ -2413,7 +2413,7 @@ void KDChartPainter::setupGeometry( TQPainter* painter, break; default: // Should not be able to happen - qDebug( "KDChart: Unknown legend position" ); + tqDebug( "KDChart: Unknown legend position" ); } _params->setLegendArea( _legendRect ); @@ -2517,7 +2517,7 @@ void KDChartPainter::findLegendTexts( KDChartTableDataBase* data ) } default: // Should not happen - qDebug( "KDChart: Unknown legend source" ); + tqDebug( "KDChart: Unknown legend source" ); } } -- cgit v1.2.1