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.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kugar/lib/mreportengine.cpp b/kugar/lib/mreportengine.cpp
index 77f402ed7..2263ba616 100644
--- a/kugar/lib/mreportengine.cpp
+++ b/kugar/lib/mreportengine.cpp
@@ -652,21 +652,21 @@ void MReportEngine::recalcDimensions()
recalcAttribute( "LeftMargin", rattributes );
recalcAttribute( "RightMargin", rattributes );
- TQDomNodeList tqchildren = report.childNodes();
- int childCount = tqchildren.length();
+ TQDomNodeList children = report.childNodes();
+ int childCount = children.length();
for ( int j = 0; j < childCount; j++ )
{
- child = tqchildren.item( j );
+ child = children.item( j );
TQDomNamedNodeMap attributes = child.attributes();
- TQDomNodeList tqchildren2 = child.childNodes();
- int childCount2 = tqchildren2.length();
+ TQDomNodeList children2 = child.childNodes();
+ int childCount2 = children2.length();
recalcAttribute( "Height", attributes );
for ( int k = 0; k < childCount2; k++ )
{
- TQDomNode child2 = tqchildren2.item( k );
+ TQDomNode child2 = children2.item( k );
TQDomNamedNodeMap attributes = child2.attributes();
recalcAttribute( "X", attributes );
recalcAttribute( "Y", attributes );
@@ -685,7 +685,7 @@ void MReportEngine::recalcAttribute( const TQString& name, TQDomNamedNodeMap att
{
if ( !attributes.namedItem( name ).isNull() )
{
- attributes.namedItem( name ).setNodeValue( TQString( "%1" ).tqarg( attributes.namedItem( name ).nodeValue().toInt() * 93 / 81 ) );
+ attributes.namedItem( name ).setNodeValue( TQString( "%1" ).arg( attributes.namedItem( name ).nodeValue().toInt() * 93 / 81 ) );
}
}
@@ -712,12 +712,12 @@ void MReportEngine::initTemplate()
setReportAttributes( &report );
// Get all the child report elements
- TQDomNodeList tqchildren = report.childNodes();
- int childCount = tqchildren.length();
+ TQDomNodeList children = report.childNodes();
+ int childCount = children.length();
for ( int j = 0; j < childCount; j++ )
{
- child = tqchildren.item( j );
+ child = children.item( j );
if ( child.nodeType() == TQDomNode::ElementNode )
{
@@ -803,14 +803,14 @@ void MReportEngine::setSectionAttributes( MReportSection* section, TQDomNode* re
section->setPrintFrequency( attributes.namedItem( "PrintFrequency" ).nodeValue().toInt() );
// Process the sections labels
- TQDomNodeList tqchildren = report->childNodes();
- int childCount = tqchildren.length();
+ TQDomNodeList children = report->childNodes();
+ int childCount = children.length();
// For each label, extract the attr list and add the new label
// to the sections's label collection
for ( int j = 0; j < childCount; j++ )
{
- TQDomNode child = tqchildren.item( j );
+ TQDomNode child = children.item( j );
if ( child.nodeType() == TQDomNode::ElementNode )
{
if ( child.nodeName() == "Line" )
@@ -881,12 +881,12 @@ void MReportEngine::setDetailAttributes( TQDomNode* report )
detail->setRepeat( attributes.namedItem( "Repeat" ).nodeValue() == "true" );
// Process the report detail labels
- TQDomNodeList tqchildren = report->childNodes();
- int childCount = tqchildren.length();
+ TQDomNodeList children = report->childNodes();
+ int childCount = children.length();
for ( int j = 0; j < childCount; j++ )
{
- TQDomNode child = tqchildren.item( j );
+ TQDomNode child = children.item( j );
if ( child.nodeType() == TQDomNode::ElementNode )
{
if ( child.nodeName() == "Line" )