diff options
Diffstat (limited to 'kugar/kudesigner_lib')
-rw-r--r-- | kugar/kudesigner_lib/canvas.cpp | 12 | ||||
-rw-r--r-- | kugar/kudesigner_lib/detail.cpp | 2 | ||||
-rw-r--r-- | kugar/kudesigner_lib/detailfooter.cpp | 2 | ||||
-rw-r--r-- | kugar/kudesigner_lib/detailheader.cpp | 2 | ||||
-rw-r--r-- | kugar/kudesigner_lib/propertyserializer.cpp | 4 | ||||
-rw-r--r-- | kugar/kudesigner_lib/structurewidget.cpp | 14 |
6 files changed, 18 insertions, 18 deletions
diff --git a/kugar/kudesigner_lib/canvas.cpp b/kugar/kudesigner_lib/canvas.cpp index d486ae9d..3d4ba603 100644 --- a/kugar/kudesigner_lib/canvas.cpp +++ b/kugar/kudesigner_lib/canvas.cpp @@ -162,11 +162,11 @@ bool Canvas::loadXML( const TQDomNode &report ) templ->props[ "RightMargin" ].setValue( attributes.namedItem( "RightMargin" ).nodeValue().toInt() ); // 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++ ) { - TQDomNode child = tqchildren.item( j ); + TQDomNode child = children.item( j ); if ( child.nodeType() == TQDomNode::ElementNode ) { @@ -301,12 +301,12 @@ void Canvas::setDetailFooterAttributes( TQDomNode *node ) void Canvas::addReportItems( TQDomNode *node, Band *section ) { - TQDomNodeList tqchildren = node->childNodes(); - int childCount = tqchildren.length(); + TQDomNodeList children = node->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" ) diff --git a/kugar/kudesigner_lib/detail.cpp b/kugar/kudesigner_lib/detail.cpp index db3765f8..a9f2faa5 100644 --- a/kugar/kudesigner_lib/detail.cpp +++ b/kugar/kudesigner_lib/detail.cpp @@ -39,7 +39,7 @@ Detail::Detail( int x, int y, int width, int height, int level, Canvas *canvas ) void Detail::draw( TQPainter &painter ) { - TQString str = TQString( "%1 %2" ).tqarg( i18n( "Detail" ) ).tqarg( props[ "Level" ].value().toInt() ); + TQString str = TQString( "%1 %2" ).arg( i18n( "Detail" ) ).arg( props[ "Level" ].value().toInt() ); painter.drawText( rect(), AlignVCenter | AlignLeft, str ); Band::draw( painter ); } diff --git a/kugar/kudesigner_lib/detailfooter.cpp b/kugar/kudesigner_lib/detailfooter.cpp index 14b5e13f..b1715920 100644 --- a/kugar/kudesigner_lib/detailfooter.cpp +++ b/kugar/kudesigner_lib/detailfooter.cpp @@ -36,7 +36,7 @@ DetailFooter::DetailFooter( int x, int y, int width, int height, int level, Canv void DetailFooter::draw( TQPainter &painter ) { - TQString str = TQString( "%1 %2" ).tqarg( i18n( "Detail Footer" ) ).tqarg( props[ "Level" ].value().toInt() ); + TQString str = TQString( "%1 %2" ).arg( i18n( "Detail Footer" ) ).arg( props[ "Level" ].value().toInt() ); painter.drawText( rect(), AlignVCenter | AlignLeft, str ); Band::draw( painter ); } diff --git a/kugar/kudesigner_lib/detailheader.cpp b/kugar/kudesigner_lib/detailheader.cpp index 071dea72..d43ce942 100644 --- a/kugar/kudesigner_lib/detailheader.cpp +++ b/kugar/kudesigner_lib/detailheader.cpp @@ -36,7 +36,7 @@ DetailHeader::DetailHeader( int x, int y, int width, int height, int level, Canv void DetailHeader::draw( TQPainter &painter ) { - TQString str = TQString( "%1 %2" ).tqarg( i18n( "Detail Header" ) ).tqarg( props[ "Level" ].value().toInt() ); + TQString str = TQString( "%1 %2" ).arg( i18n( "Detail Header" ) ).arg( props[ "Level" ].value().toInt() ); painter.drawText( rect(), AlignVCenter | AlignLeft, str ); Band::draw( painter ); } diff --git a/kugar/kudesigner_lib/propertyserializer.cpp b/kugar/kudesigner_lib/propertyserializer.cpp index 32ebe470..ae9f30d7 100644 --- a/kugar/kudesigner_lib/propertyserializer.cpp +++ b/kugar/kudesigner_lib/propertyserializer.cpp @@ -40,7 +40,7 @@ TQString PropertySerializer::toString( Property *prop ) switch ( prop->type() ) { case KoProperty::Color: - return TQString( "%1,%2,%3" ).tqarg( val.toColor().red() ).tqarg( val.toColor().green() ).tqarg( val.toColor().blue() ); + return TQString( "%1,%2,%3" ).arg( val.toColor().red() ).arg( val.toColor().green() ).arg( val.toColor().blue() ); case KoProperty::Boolean: return val.toBool() ? "true" : "false"; case KoProperty::Font: @@ -67,7 +67,7 @@ TQVariant PropertySerializer::fromString( Property *prop, const TQString &str ) case KoProperty::LineStyle: return TQVariant( str.toInt() ); case KoProperty::Symbol: - return TQVariant( str.tqat( 0 ).latin1() ); + return TQVariant( str.at( 0 ).latin1() ); default: return TQVariant( str ); } diff --git a/kugar/kudesigner_lib/structurewidget.cpp b/kugar/kudesigner_lib/structurewidget.cpp index 7ad4ac1b..01b4289e 100644 --- a/kugar/kudesigner_lib/structurewidget.cpp +++ b/kugar/kudesigner_lib/structurewidget.cpp @@ -142,7 +142,7 @@ void StructureWidget::refreshSection( Kudesigner::Band *section, StructureItem * break; } if ( level > 0 ) - name += tqtr( " (level %1)" ).tqarg( level ); + name += tqtr( " (level %1)" ).arg( level ); StructureItem *item = new StructureItem( root, name ); m_items[ section ] = item; @@ -165,18 +165,18 @@ void StructureWidget::refreshSectionContents( Kudesigner::Band *section, Structu switch ( box->rtti() ) { case Kudesigner::Rtti_Label: - name = tqtr( "Label: %1" ).tqarg( box->props[ "Text" ].value().toString() ); + name = tqtr( "Label: %1" ).arg( box->props[ "Text" ].value().toString() ); break; case Kudesigner::Rtti_Field: - name = tqtr( "Field: %1" ).tqarg( box->props[ "Field" ].value().toString() ); + name = tqtr( "Field: %1" ).arg( box->props[ "Field" ].value().toString() ); break; case Kudesigner::Rtti_Calculated: - name = tqtr( "Calculated Field: %1" ).tqarg( box->props[ "Field" ].value().toString() ); + name = tqtr( "Calculated Field: %1" ).arg( box->props[ "Field" ].value().toString() ); break; case Kudesigner::Rtti_Special: idx = box->props[ "Type" ].listData()->keys.findIndex( box->props[ "Type" ].value().toInt() ); - name = tqtr( "Special Field: %1" ).tqarg( box->props[ "Type" ].listData()->keys[ idx ].toString() ); + name = tqtr( "Special Field: %1" ).arg( box->props[ "Type" ].listData()->keys[ idx ].toString() ); break; case Kudesigner::Rtti_Line: name = tqtr( "Line" ); @@ -198,7 +198,7 @@ void StructureWidget::selectionMade() { StructureItem * item = static_cast<StructureItem*>( m_items[ *it ] ); item->setBold( true ); - item->tqrepaint(); + item->repaint(); m_selected.append( item ); } } @@ -211,7 +211,7 @@ void StructureWidget::selectionClear() if ( ( *it ) == 0 ) continue; ( *it ) ->setBold( false ); - ( *it ) ->tqrepaint(); + ( *it ) ->repaint(); } m_selected.clear(); } |