diff options
Diffstat (limited to 'libkdchart/KDChart.cpp')
-rw-r--r-- | libkdchart/KDChart.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/libkdchart/KDChart.cpp b/libkdchart/KDChart.cpp index 4d8fd0c..ab83da2 100644 --- a/libkdchart/KDChart.cpp +++ b/libkdchart/KDChart.cpp @@ -98,7 +98,7 @@ bool hasCartesianAxes( KDChartParams::ChartType chartType ) case KDChartParams::Polar: return false; // Polar axes are NO cartesian axes! case KDChartParams::BoxWhisker: return true; default: - qDebug("\n\n\n\nKDCHART ERROR: Type missing in KDChart.cpp hasCartesianAxes()\n" + tqDebug("\n\n\n\nKDCHART ERROR: Type missing in KDChart.cpp hasCartesianAxes()\n" "=============================================================\n" "=============================================================\n\n\n\n"); } @@ -129,7 +129,7 @@ bool KDChart::painterToDrawRect( TQPainter* painter, TQRect& drawRect ) return true; }else{ drawRect = TQRect( TQPoint(0,0), TQSize(0,0) ); - qDebug("ERROR: KDChartPainter::painterToDrawRect() was called with *no* painter."); + tqDebug("ERROR: KDChartPainter::painterToDrawRect() was called with *no* painter."); return false; } } @@ -158,13 +158,13 @@ bool KDChart::setupGeometry( TQPainter* painter, KDChartTableDataBase* data, const TQRect& drawRect ) { -//qDebug("INVOKING: KDChart::setupGeometry()"); +//tqDebug("INVOKING: KDChart::setupGeometry()"); if( !params ){ - qDebug("ERROR: setupGeometry::paint() was called with *no* params."); + tqDebug("ERROR: setupGeometry::paint() was called with *no* params."); return false; } if( !data ){ - qDebug("ERROR: setupGeometry::paint() was called with *no* data."); + tqDebug("ERROR: setupGeometry::paint() was called with *no* data."); return false; } // don't crash due to memory problems when running on windows @@ -178,7 +178,7 @@ bool KDChart::setupGeometry( TQPainter* painter, static bool bFirstCleanUpInstall = true; if( bFirstCleanUpInstall ) { bFirstCleanUpInstall = false; - qAddPostRoutine( cleanupPainter ); + tqAddPostRoutine( cleanupPainter ); } // Check whether last call of this methode gave us the same params pointer. @@ -260,7 +260,7 @@ void KDChart::paint( TQPainter* painter, const TQRect* rect, bool mustCalculateGeometry ) { -//qDebug("KDChart::paint() mustCalculateGeometry: "+TQString(mustCalculateGeometry?"TRUE":"FALSE") ); +//tqDebug("KDChart::paint() mustCalculateGeometry: "+TQString(mustCalculateGeometry?"TRUE":"FALSE") ); #if defined KDAB_EVAL EvalDialog::checkEvalLicense( "KD Chart" ); #endif @@ -272,9 +272,9 @@ void KDChart::paint( TQPainter* painter, KDChartParams* params = paraParams; KDChartTableDataBase* data = paraData; if( !paraParams && !paraData ){ - qDebug("-----"); - qDebug("Note: KDChart::paint() was called without \"params\" and without \"data\"."); - qDebug("----- Showing a default bar chart."); + tqDebug("-----"); + tqDebug("Note: KDChart::paint() was called without \"params\" and without \"data\"."); + tqDebug("----- Showing a default bar chart."); params = new KDChartParams(); params->setDatasetGap(3 * params->valueBlockGap()); params->setPrintDataValues( false ); @@ -297,19 +297,19 @@ void KDChart::paint( TQPainter* painter, if( rect ) drawRect = *rect; else if( !painterToDrawRect( painter, drawRect ) ){ - qDebug("ERROR: KDChart::paint() could not calculate a drawing area."); + tqDebug("ERROR: KDChart::paint() could not calculate a drawing area."); bOk = false; } - //qDebug("xxx" ); + //tqDebug("xxx" ); if( (params || data) && !setupGeometry( painter, params, data, drawRect ) ){ - qDebug("ERROR: KDChart::paint() could not calculate the chart geometry."); + tqDebug("ERROR: KDChart::paint() could not calculate the chart geometry."); bOk = false; } }else{ drawRect = cpainter->outermostRect(); } - //qDebug("yyy" ); + //tqDebug("yyy" ); if( bOk ){ // Note: the following *must* paint the main-chart first @@ -320,7 +320,7 @@ void KDChart::paint( TQPainter* painter, bool paintFirst = true; bool paintLast = ! ( cpainter && cpainter2 ); if ( cpainter ) { // can be 0 if no exceptions are used - //qDebug("zzz" ); + //tqDebug("zzz" ); cpainter->paint( painter, data, paintFirst, paintLast, regions, &drawRect, false ); paintFirst = false; @@ -478,7 +478,7 @@ TQString KDChart::globals() globals += TQString::number( it2.data().blue() ); globals += TQString::fromLatin1( " );\n" ); } - //qDebug( "%s",globals.latin1() ); + //tqDebug( "%s",globals.latin1() ); return globals; } |