summaryrefslogtreecommitdiffstats
path: root/kugar/lib/mreportengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kugar/lib/mreportengine.cpp')
-rw-r--r--kugar/lib/mreportengine.cpp30
1 files changed, 15 insertions, 15 deletions
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 );
}