summaryrefslogtreecommitdiffstats
path: root/kchart/kdchart/KDChartPiePainter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kchart/kdchart/KDChartPiePainter.cpp')
-rw-r--r--kchart/kdchart/KDChartPiePainter.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kchart/kdchart/KDChartPiePainter.cpp b/kchart/kdchart/KDChartPiePainter.cpp
index dd00f627..ada03b44 100644
--- a/kchart/kdchart/KDChartPiePainter.cpp
+++ b/kchart/kdchart/KDChartPiePainter.cpp
@@ -241,7 +241,7 @@ void KDChartPiePainter::paintData( TQPainter* painter,
// take one pie from the stack
int currentpie = todostack.pop();
// if this pie was already drawn, ignore it
- if ( donelist.tqfind( currentpie ) != donelist.end() )
+ if ( donelist.find( currentpie ) != donelist.end() )
continue;
// If this pie is the frontmost pie, put it back, but at the
@@ -278,10 +278,10 @@ void KDChartPiePainter::paintData( TQPainter* painter,
// whether these have not been painted already, and put them
// on the stack.
int leftOfCurrent = findLeftPie( currentpie );
- if ( donelist.tqfind( leftOfCurrent ) == donelist.end() )
+ if ( donelist.find( leftOfCurrent ) == donelist.end() )
todostack.push( leftOfCurrent );
int rightOfCurrent = findRightPie( currentpie );
- if ( donelist.tqfind( rightOfCurrent ) == donelist.end() )
+ if ( donelist.find( rightOfCurrent ) == donelist.end() )
todostack.push( rightOfCurrent );
}
@@ -326,7 +326,7 @@ void KDChartPiePainter::drawOnePie( TQPainter* painter,
// need to compute a new position for each or some of the pie
TQValueList<int> explodeList = params()->explodeValues();
if( explodeList.count() == 0 || // nothing on list, explode all
- explodeList.tqfind( pie ) != explodeList.end() ) {
+ explodeList.find( pie ) != explodeList.end() ) {
double explodeAngle = ( startAngle + angleLen / 2 ) / 16;
double explodeAngleRad = DEGTORAD( explodeAngle );
double cosAngle = cos( explodeAngleRad );
@@ -335,7 +335,7 @@ void KDChartPiePainter::drawOnePie( TQPainter* painter,
// find the explode factor for this particular pie
double explodeFactor = 0.0;
TQMap<int,double> explodeFactors = params()->explodeFactors();
- if( !explodeFactors.tqcontains( pie ) ) // not on factors list, use default
+ if( !explodeFactors.contains( pie ) ) // not on factors list, use default
explodeFactor = params()->explodeFactor();
else // on factors list, use segment-specific value
explodeFactor = explodeFactors[pie];