From b6edfe41c9395f2e20784cbf0e630af6426950a3 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/koffice@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kugar/lib/mreportengine.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'kugar/lib/mreportengine.cpp') diff --git a/kugar/lib/mreportengine.cpp b/kugar/lib/mreportengine.cpp index 654e1fff9..4e1544d30 100644 --- a/kugar/lib/mreportengine.cpp +++ b/kugar/lib/mreportengine.cpp @@ -933,9 +933,9 @@ void MReportEngine::setLineAttributes( MLineObject* line, TQDomNamedNodeMap* att TQString tmp = attr->namedItem( "Color" ).nodeValue(); - line->setColor( tmp.left( tmp.tqfind( "," ) ).toInt(), - tmp.mid( tmp.tqfind( "," ) + 1, ( tmp.tqfindRev( "," ) - tmp.tqfind( "," ) ) - 1 ).toInt(), - tmp.right( tmp.length() - tmp.tqfindRev( "," ) - 1 ).toInt() ); + line->setColor( tmp.left( tmp.find( "," ) ).toInt(), + tmp.mid( tmp.find( "," ) + 1, ( tmp.findRev( "," ) - tmp.find( "," ) ) - 1 ).toInt(), + tmp.right( tmp.length() - tmp.findRev( "," ) - 1 ).toInt() ); line->setWidth( attr->namedItem( "Width" ).nodeValue().toInt() ); line->setStyle( attr->namedItem( "Style" ).nodeValue().toInt() ); @@ -953,19 +953,19 @@ void MReportEngine::setLabelAttributes( MLabelObject* label, TQDomNamedNodeMap* scaleDeltaHeight( attr->namedItem( "Height" ).nodeValue().toInt() ) ); tmp = attr->namedItem( "BackgroundColor" ).nodeValue(); - label->setBackgroundColor( tmp.left( tmp.tqfind( "," ) ).toInt(), - tmp.mid( tmp.tqfind( "," ) + 1, ( tmp.tqfindRev( "," ) - tmp.tqfind( "," ) ) - 1 ).toInt(), - tmp.right( tmp.length() - tmp.tqfindRev( "," ) - 1 ).toInt() ); + label->setBackgroundColor( tmp.left( tmp.find( "," ) ).toInt(), + tmp.mid( tmp.find( "," ) + 1, ( tmp.findRev( "," ) - tmp.find( "," ) ) - 1 ).toInt(), + tmp.right( tmp.length() - tmp.findRev( "," ) - 1 ).toInt() ); tmp = attr->namedItem( "ForegroundColor" ).nodeValue(); - label->setForegroundColor( tmp.left( tmp.tqfind( "," ) ).toInt(), - tmp.mid( tmp.tqfind( "," ) + 1, ( tmp.tqfindRev( "," ) - tmp.tqfind( "," ) ) - 1 ).toInt(), - tmp.right( tmp.length() - tmp.tqfindRev( "," ) - 1 ).toInt() ); + label->setForegroundColor( tmp.left( tmp.find( "," ) ).toInt(), + tmp.mid( tmp.find( "," ) + 1, ( tmp.findRev( "," ) - tmp.find( "," ) ) - 1 ).toInt(), + tmp.right( tmp.length() - tmp.findRev( "," ) - 1 ).toInt() ); tmp = attr->namedItem( "BorderColor" ).nodeValue(); - label->setBorderColor( tmp.left( tmp.tqfind( "," ) ).toInt(), - tmp.mid( tmp.tqfind( "," ) + 1, ( tmp.tqfindRev( "," ) - tmp.tqfind( "," ) ) - 1 ).toInt(), - tmp.right( tmp.length() - tmp.tqfindRev( "," ) - 1 ).toInt() ); + label->setBorderColor( tmp.left( tmp.find( "," ) ).toInt(), + tmp.mid( tmp.find( "," ) + 1, ( tmp.findRev( "," ) - tmp.find( "," ) ) - 1 ).toInt(), + tmp.right( tmp.length() - tmp.findRev( "," ) - 1 ).toInt() ); label->setBorderWidth( attr->namedItem( "BorderWidth" ).nodeValue().toInt() ); label->setBorderStyle( attr->namedItem( "BorderStyle" ).nodeValue().toInt() ); @@ -1008,9 +1008,9 @@ void MReportEngine::setFieldAttributes( MFieldObject* field, TQDomNamedNodeMap* TQString tmp = attr->namedItem( "NegValueColor" ).nodeValue(); - field->setNegValueColor( tmp.left( tmp.tqfind( "," ) ).toInt(), - tmp.mid( tmp.tqfind( "," ) + 1, ( tmp.tqfindRev( "," ) - tmp.tqfind( "," ) ) - 1 ).toInt(), - tmp.right( tmp.length() - tmp.tqfindRev( "," ) - 1 ).toInt() ); + field->setNegValueColor( tmp.left( tmp.find( "," ) ).toInt(), + tmp.mid( tmp.find( "," ) + 1, ( tmp.findRev( "," ) - tmp.find( "," ) ) - 1 ).toInt(), + tmp.right( tmp.length() - tmp.findRev( "," ) - 1 ).toInt() ); setLabelAttributes( ( MLabelObject * ) field, attr ); } -- cgit v1.2.3