diff options
Diffstat (limited to 'libkdchart/KDChartPainter.cpp')
-rw-r--r-- | libkdchart/KDChartPainter.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libkdchart/KDChartPainter.cpp b/libkdchart/KDChartPainter.cpp index f68b8ff..987857a 100644 --- a/libkdchart/KDChartPainter.cpp +++ b/libkdchart/KDChartPainter.cpp @@ -1140,13 +1140,13 @@ TQRect KDChartPainter::calculateAreaRect( bool & allCustomBoxes, break; default: { - uint tqmaskBASE = KDChartEnums::AreaBASEMask & area; - pos = area - tqmaskBASE; - if ( KDChartEnums::AreaAxisBASE == tqmaskBASE ) { + uint maskBASE = KDChartEnums::AreaBASEMask & area; + pos = area - maskBASE; + if ( KDChartEnums::AreaAxisBASE == maskBASE ) { rect = params()->axisParams( pos ).axisTrueAreaRect(); - } else if ( KDChartEnums::AreaHdFtBASE == tqmaskBASE ) { + } else if ( KDChartEnums::AreaHdFtBASE == maskBASE ) { rect = params()->headerFooterRect( pos ); - } else if ( KDChartEnums::AreaCustomBoxesBASE == tqmaskBASE ) { + } else if ( KDChartEnums::AreaCustomBoxesBASE == maskBASE ) { const KDChartCustomBox * box = params()->customBox( pos ); if( box ) { rect = box->trueRect( calculateAnchor( *box, regions ), @@ -2011,10 +2011,10 @@ void KDChartPainter::calculateAllAxesRects( for( idx = 0; idx <= params()->maxCustomBoxIdx(); ++idx ) { const KDChartCustomBox * box = params()->customBox( idx ); if ( box ) - if ( box->tqparentAxisArea() == KDChartAxisParams::AxisPosBottom - || box->tqparentAxisArea() == KDChartAxisParams::AxisPosLeft - || box->tqparentAxisArea() == KDChartAxisParams::AxisPosTop - || box->tqparentAxisArea() == KDChartAxisParams::AxisPosRight ) + if ( box->parentAxisArea() == KDChartAxisParams::AxisPosBottom + || box->parentAxisArea() == KDChartAxisParams::AxisPosLeft + || box->parentAxisArea() == KDChartAxisParams::AxisPosTop + || box->parentAxisArea() == KDChartAxisParams::AxisPosRight ) boxSize = box->trueRect(TQPoint( 0,0 ), _areaWidthP1000, _areaHeightP1000 ).height(); } |