diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:56:31 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:56:31 -0600 |
commit | c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54 (patch) | |
tree | 1ee1912ac4bb966475f0db0f2a78678661b4b4a5 /kugar/lib/mreportengine.cpp | |
parent | 94844816550ad672ccfcdc25659c625546239998 (diff) | |
download | koffice-c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54.tar.gz koffice-c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54.zip |
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 94844816550ad672ccfcdc25659c625546239998.
Diffstat (limited to 'kugar/lib/mreportengine.cpp')
-rw-r--r-- | kugar/lib/mreportengine.cpp | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/kugar/lib/mreportengine.cpp b/kugar/lib/mreportengine.cpp index ca747b3e..4e1544d3 100644 --- a/kugar/lib/mreportengine.cpp +++ b/kugar/lib/mreportengine.cpp @@ -289,7 +289,7 @@ MPageCollection* MReportEngine::renderReport() // Initialize the basic page data currHeight = pageHeight - ( topMargin + bottomMargin + pFooter.getHeight() ); currPage = 0; - currDate = TQDate::currentDate(); + currDate = TQDate::tqcurrentDate(); // Initialise global report variables unsigned int rowCount = records.length(); @@ -336,7 +336,7 @@ MPageCollection* MReportEngine::renderReport() { // Update status event if ( ( chkRow = ( j / 2 ) % 20 ) == 0 ) - emit signalRenderStatus( j / 2 ); + emit signalRendertqStatus( j / 2 ); // Check for cancel action if ( cancelRender ) @@ -481,7 +481,7 @@ MPageCollection* MReportEngine::renderReport() pages->setPageOrientation( pageOrientation ); // Send final status - emit signalRenderStatus( rowCount / 2 ); + emit signalRendertqStatus( rowCount / 2 ); m_needRegeneration = false; m_pageCollection = pages; return pages; @@ -652,21 +652,21 @@ void MReportEngine::recalcDimensions() recalcAttribute( "LeftMargin", rattributes ); recalcAttribute( "RightMargin", rattributes ); - TQDomNodeList children = report.childNodes(); - int childCount = children.length(); + TQDomNodeList tqchildren = report.childNodes(); + int childCount = tqchildren.length(); for ( int j = 0; j < childCount; j++ ) { - child = children.item( j ); + child = tqchildren.item( j ); TQDomNamedNodeMap attributes = child.attributes(); - TQDomNodeList children2 = child.childNodes(); - int childCount2 = children2.length(); + TQDomNodeList tqchildren2 = child.childNodes(); + int childCount2 = tqchildren2.length(); recalcAttribute( "Height", attributes ); for ( int k = 0; k < childCount2; k++ ) { - TQDomNode child2 = children2.item( k ); + TQDomNode child2 = tqchildren2.item( k ); TQDomNamedNodeMap attributes = child2.attributes(); recalcAttribute( "X", attributes ); recalcAttribute( "Y", attributes ); @@ -685,11 +685,11 @@ void MReportEngine::recalcAttribute( const TQString& name, TQDomNamedNodeMap att { if ( !attributes.namedItem( name ).isNull() ) { - attributes.namedItem( name ).setNodeValue( TQString( "%1" ).arg( attributes.namedItem( name ).nodeValue().toInt() * 93 / 81 ) ); + attributes.namedItem( name ).setNodeValue( TQString( "%1" ).tqarg( attributes.namedItem( name ).nodeValue().toInt() * 93 / 81 ) ); } } -/** Walks the document tree, setting the report layout */ +/** Walks the document tree, setting the report tqlayout */ void MReportEngine::initTemplate() { heightOfDetails = 0; @@ -712,12 +712,12 @@ void MReportEngine::initTemplate() setReportAttributes( &report ); // Get all the child report elements - TQDomNodeList children = report.childNodes(); - int childCount = children.length(); + TQDomNodeList tqchildren = report.childNodes(); + int childCount = tqchildren.length(); for ( int j = 0; j < childCount; j++ ) { - child = children.item( j ); + child = tqchildren.item( j ); if ( child.nodeType() == TQDomNode::ElementNode ) { @@ -748,7 +748,7 @@ void MReportEngine::initTemplate() } } -/** Sets the main layout attributes for the report */ +/** Sets the main tqlayout attributes for the report */ void MReportEngine::setReportAttributes( TQDomNode* report ) { // Get the attributes for the report @@ -792,7 +792,7 @@ int MReportEngine::scaleDeltaHeight( int height ) const return f > 1 ? int( f + 0.5 ) : ceil( f ); } -/** Sets the layout attributes for the given report section */ +/** Sets the tqlayout attributes for the given report section */ void MReportEngine::setSectionAttributes( MReportSection* section, TQDomNode* report ) { // Get the attributes for the section @@ -803,14 +803,14 @@ void MReportEngine::setSectionAttributes( MReportSection* section, TQDomNode* re section->setPrintFrequency( attributes.namedItem( "PrintFrequency" ).nodeValue().toInt() ); // Process the sections labels - TQDomNodeList children = report->childNodes(); - int childCount = children.length(); + TQDomNodeList tqchildren = report->childNodes(); + int childCount = tqchildren.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 = children.item( j ); + TQDomNode child = tqchildren.item( j ); if ( child.nodeType() == TQDomNode::ElementNode ) { if ( child.nodeName() == "Line" ) @@ -852,7 +852,7 @@ void MReportEngine::setSectionAttributes( MReportSection* section, TQDomNode* re } } -/** Sets the layout attributes for the detail headers and footers */ +/** Sets the tqlayout attributes for the detail headers and footers */ void MReportEngine::setDetMiscAttributes( MReportSection* section, TQDomNode* report ) { // Get the attributes for the section @@ -866,7 +866,7 @@ void MReportEngine::setDetMiscAttributes( MReportSection* section, TQDomNode* re } -/** Sets the layout attributes for the detail section */ +/** Sets the tqlayout attributes for the detail section */ void MReportEngine::setDetailAttributes( TQDomNode* report ) { // Get the attributes for the detail section @@ -881,12 +881,12 @@ void MReportEngine::setDetailAttributes( TQDomNode* report ) detail->setRepeat( attributes.namedItem( "Repeat" ).nodeValue() == "true" ); // Process the report detail labels - TQDomNodeList children = report->childNodes(); - int childCount = children.length(); + TQDomNodeList tqchildren = report->childNodes(); + int childCount = tqchildren.length(); for ( int j = 0; j < childCount; j++ ) { - TQDomNode child = children.item( j ); + TQDomNode child = tqchildren.item( j ); if ( child.nodeType() == TQDomNode::ElementNode ) { if ( child.nodeName() == "Line" ) @@ -923,7 +923,7 @@ void MReportEngine::setDetailAttributes( TQDomNode* report ) details.append( detail ); } -/** Sets a line's layout attributes */ +/** Sets a line's tqlayout attributes */ void MReportEngine::setLineAttributes( MLineObject* line, TQDomNamedNodeMap* attr ) { line->setLine( scaleDeltaWidth( attr->namedItem( "X1" ).nodeValue().toInt() ), @@ -941,7 +941,7 @@ void MReportEngine::setLineAttributes( MLineObject* line, TQDomNamedNodeMap* att line->setStyle( attr->namedItem( "Style" ).nodeValue().toInt() ); } -/** Sets a label's layout attributes */ +/** Sets a label's tqlayout attributes */ void MReportEngine::setLabelAttributes( MLabelObject* label, TQDomNamedNodeMap* attr ) { TQString tmp; @@ -986,7 +986,7 @@ void MReportEngine::setLabelAttributes( MLabelObject* label, TQDomNamedNodeMap* label->setWordWrap( attr->namedItem( "WordWrap" ).nodeValue().toInt() == 0 ? false : true ); } -/** Sets a special field's layout attributes */ +/** Sets a special field's tqlayout attributes */ void MReportEngine::setSpecialAttributes( MSpecialObject* field, TQDomNamedNodeMap* attr ) { field->setType( attr->namedItem( "Type" ).nodeValue().toInt() ); @@ -995,7 +995,7 @@ void MReportEngine::setSpecialAttributes( MSpecialObject* field, TQDomNamedNodeM setLabelAttributes( ( MLabelObject * ) field, attr ); } -/** Sets a field's layout attributes */ +/** Sets a field's tqlayout attributes */ void MReportEngine::setFieldAttributes( MFieldObject* field, TQDomNamedNodeMap* attr ) { field->setFieldName( attr->namedItem( "Field" ).nodeValue() ); @@ -1015,7 +1015,7 @@ void MReportEngine::setFieldAttributes( MFieldObject* field, TQDomNamedNodeMap* setLabelAttributes( ( MLabelObject * ) field, attr ); } -/** Sets a calculated field's layout attributes */ +/** Sets a calculated field's tqlayout attributes */ void MReportEngine::setCalculatedFieldAttributes( MCalcObject* field, TQDomNamedNodeMap* attr ) { field->setCalculationType( attr->namedItem( "CalculationType" ).nodeValue().toInt() ); |