From 7e51b6d5ddc01fc3bc69f30bc5d3933a7709dbf2 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 06:08:18 +0000 Subject: rename the following methods: tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmymoney@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libkdchart/KDChartPiePainter.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libkdchart/KDChartPiePainter.cpp') diff --git a/libkdchart/KDChartPiePainter.cpp b/libkdchart/KDChartPiePainter.cpp index dd00f62..ada03b4 100644 --- a/libkdchart/KDChartPiePainter.cpp +++ b/libkdchart/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 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 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]; -- cgit v1.2.1