diff --git a/kbarcode/barcodeitem.cpp b/kbarcode/barcodeitem.cpp
index 39af930..2b34aaa 100644
--- a/kbarcode/barcodeitem.cpp
+++ b/kbarcode/barcodeitem.cpp
@@ -213,13 +213,13 @@ void BarcodeItem::drawIpl( TQTextStream* stream, IPLUtils* utils )
}
int counter = utils->counter();
- TQString s = TQString("B%1;").tqarg( counter ); // field number
+ TQString s = TQString("B%1;").arg( counter ); // field number
s += utils->fieldOrigin( rect().x(), rect().y() );
- s += TQString("c%1;").tqarg( encoding ); // encoding type
- s += TQString("h%1;").tqarg( rect().height() ); // height of barcode
- s += TQString("w%1;").tqarg( 3 ); // width of barcode (per line)
- s += TQString("d0,%1;").tqarg( value().length() ); // max length of data
+ s += TQString("c%1;").arg( encoding ); // encoding type
+ s += TQString("h%1;").arg( rect().height() ); // height of barcode
+ s += TQString("w%1;").arg( 3 ); // width of barcode (per line)
+ s += TQString("d0,%1;").arg( value().length() ); // max length of data
*stream << utils->field( s );
utils->addValue( value() );
@@ -235,11 +235,11 @@ void BarcodeItem::drawEPcl( TQTextStream* stream )
}
// Coordinates cannot start at zero
- TQString s = TQString("B %1").tqarg( rect().x()+1 );
- s += TQString(" %1 0").tqarg( rect().y() + rect().height() );
- s += TQString(" %1 1 4").tqarg( encoding );
- s += TQString(" %1 1").tqarg( rect().height() );
- s += TQString(" %1").tqarg( value() );
+ TQString s = TQString("B %1").arg( rect().x()+1 );
+ s += TQString(" %1 0").arg( rect().y() + rect().height() );
+ s += TQString(" %1 1 4").arg( encoding );
+ s += TQString(" %1 1").arg( rect().height() );
+ s += TQString(" %1").arg( value() );
*stream << EPCLUtils::field( s );
}
diff --git a/kbarcode/batchprinter.cpp b/kbarcode/batchprinter.cpp
index 9bc1409..2319fda 100644
--- a/kbarcode/batchprinter.cpp
+++ b/kbarcode/batchprinter.cpp
@@ -300,7 +300,7 @@ void BatchPrinter::startImages()
else
name += m_image_custom_filename;
- TQString filename = name + TQString("_%1.").tqarg( i ) + KImageIO::suffix( m_image_format );
+ TQString filename = name + TQString("_%1.").arg( i ) + KImageIO::suffix( m_image_format );
unsigned int c = 0;
while( TQFile::exists( filename ) ) {
@@ -334,7 +334,7 @@ void BatchPrinter::startBCP()
TQFile file( m_path );
if( !file.open( IO_WriteOnly ) ) // | IO_Raw ) )
{
- KMessageBox::error( parent, TQString( i18n("
", pos );
//qDebug("D=" + d );
@@ -218,11 +218,11 @@ bool DSRichText::parseParagraph()
if( d.isNull() )
return false;
- d = parseParagraphTag( d, &tqalignment );
+ d = parseParagraphTag( d, &alignment );
WordList words;
TQString data;
- initFormat( &f, tqalignment );
+ initFormat( &f, alignment );
if( d.isEmpty() ) {
// found empty paragraph
@@ -237,7 +237,7 @@ bool DSRichText::parseParagraph()
data.append( d[i] );
parseWords( data, &f, &words );
- initFormat( &f, tqalignment );
+ initFormat( &f, alignment );
data = TQString();
// bail out now, otherwise there is
@@ -250,7 +250,7 @@ bool DSRichText::parseParagraph()
i += span.length();
if( span.startsWith( "") ) {
d = d.mid( 3, d.length() - 3 );
} else if( d.startsWith(" " ) ) {
int x = d.find(">" ) + 1;
d = d.mid( x, d.length() - x );
diff --git a/kbarcode/dsrichtext.h b/kbarcode/dsrichtext.h
index 8381419..8c56b56 100644
--- a/kbarcode/dsrichtext.h
+++ b/kbarcode/dsrichtext.h
@@ -31,13 +31,13 @@ class DSRichText;
/** This class represents one word,
* formated with a font, a color and an
- * tqalignment.
+ * alignment.
*/
struct formated_word {
TQString text;
TQFont font;
TQColor color;
- int tqalignment;
+ int alignment;
bool line;
};
@@ -138,10 +138,10 @@ class DSRichText {
bool parseParagraph();
/** remove and tag and return the corresponding TQt tqalignment value.
+ TQString parseParagraphTag( const TQString & t, int* alignment );
+ /** parse the align attribute of a tag and return the corresponding TQt alignment value.
*/
int parseAlignment( const TQString & align );
/** parse the css style attribute of a tag and return a matching TQFont for these
@@ -150,7 +150,7 @@ class DSRichText {
TQFont parseStyle( const TQString & s, TQColor* color );
TQString parse( const TQString & t, const TQString & find, const TQString & end, int start );
void parseWords( const TQString & t, formated_word* w, WordList* words );
- void initFormat( formated_word* f, int tqalignment );
+ void initFormat( formated_word* f, int alignment );
void initLine( TQValueList
Vertical Gap: ") + I2S(d.getMeasurements().gapV()) +
i18n("%4
Top Gap: ") + I2S(d.getMeasurements().gapTop()) +
i18n("%5
Left Gap: ") + I2S(d.getMeasurements().gapLeft()) + "%6
"
- ).tqarg( Measurements::system() )
- .tqarg( Measurements::system() )
- .tqarg( Measurements::system() )
- .tqarg( Measurements::system() )
- .tqarg( Measurements::system() )
- .tqarg( Measurements::system() ) );
+ ).arg( Measurements::system() )
+ .arg( Measurements::system() )
+ .arg( Measurements::system() )
+ .arg( Measurements::system() )
+ .arg( Measurements::system() )
+ .arg( Measurements::system() ) );
preview->setRect( TQRect( (int)d.getMeasurements().gapLeftMM(),
(int)d.getMeasurements().gapTopMM(),
@@ -184,14 +184,14 @@ void NewLabel::updateText()
(int)d.getMeasurements().heightMM() ) );
preview->setMeasurements( d.getMeasurements() );
preview->setPrvEnabled( true );
- preview->tqrepaint();
+ preview->repaint();
curid = d.getId();
}
else
{
TextLabel4->setText( i18n("No label selected.") );
preview->setPrvEnabled( false );
- preview->tqrepaint();
+ preview->repaint();
}
}
diff --git a/kbarcode/pixmapbarcode.cpp b/kbarcode/pixmapbarcode.cpp
index ce07836..6e84193 100644
--- a/kbarcode/pixmapbarcode.cpp
+++ b/kbarcode/pixmapbarcode.cpp
@@ -172,9 +172,9 @@ bool PixmapBarcode::createPixmap( TQPixmap* target, int resx, int resy )
sh = (double)(size.y() + size.height());
}
- cmd = TQString("gs -g%1x%2").tqarg(int(sw*(double)barkode->scaling())).tqarg(int(sh*(double)barkode->scaling()));
+ cmd = TQString("gs -g%1x%2").arg(int(sw*(double)barkode->scaling())).arg(int(sh*(double)barkode->scaling()));
cmd += " -r" + TQString::number( resx*(double)barkode->scaling()) + "x" + TQString::number( resy*(double)barkode->scaling() );
- cmd += TQString(" -sDEVICE=%1 -sOutputFile=").tqarg( bMonocrome ? "pbmraw" : "ppm" );
+ cmd += TQString(" -sDEVICE=%1 -sOutputFile=").arg( bMonocrome ? "pbmraw" : "ppm" );
cmd += input->name();
cmd += " -sNOPAUSE -q - -c showpage quit";
@@ -394,24 +394,24 @@ TQString PixmapBarcode::createTBarcodeCmd()
// autocorrection
flag.append( barkode->tbarcodeOptions()->autocorrect() ? " Aon" : " Aoff" );
// barcode height
- flag.append( TQString( " h%1" ).tqarg( barkode->tbarcodeOptions()->height() ) );
+ flag.append( TQString( " h%1" ).arg( barkode->tbarcodeOptions()->height() ) );
// text above
if( barkode->tbarcodeOptions()->above() )
flag.append( " a" );
cmd = "tbarcodeclient ";
if( !Barkode::hasFeature( barkode->type(), BARCODE2D ) )
- cmd += TQString( " m%1" ).tqarg( barkode->tbarcodeOptions()->moduleWidth() * 1000 );
+ cmd += TQString( " m%1" ).arg( barkode->tbarcodeOptions()->moduleWidth() * 1000 );
if( Barkode::hasFeature( barkode->type(), DATAMATRIX ) )
- cmd += TQString( " Ds%1" ).tqarg( barkode->datamatrixSize() );
+ cmd += TQString( " Ds%1" ).arg( barkode->datamatrixSize() );
if( Barkode::hasFeature( barkode->type(), PDF417BARCODE ) )
- cmd += TQString( " Pr%1 Pc%2 Pe%3" ).tqarg( barkode->pdf417Options()->row() )
- .tqarg( barkode->pdf417Options()->col() )
- .tqarg( barkode->pdf417Options()->err() );
+ cmd += TQString( " Pr%1 Pc%2 Pe%3" ).arg( barkode->pdf417Options()->row() )
+ .arg( barkode->pdf417Options()->col() )
+ .arg( barkode->pdf417Options()->err() );
- cmd += " " + barkode->type() + TQString(" tPS c%1").tqarg( barkode->tbarcodeOptions()->checksum() );
+ cmd += " " + barkode->type() + TQString(" tPS c%1").arg( barkode->tbarcodeOptions()->checksum() );
cmd += flag + " d" + KShellProcess::quote( barkode->parsedValue() );
return cmd;
diff --git a/kbarcode/propertywidget.cpp b/kbarcode/propertywidget.cpp
index 16cf783..a55c193 100644
--- a/kbarcode/propertywidget.cpp
+++ b/kbarcode/propertywidget.cpp
@@ -519,7 +519,7 @@ void PropertyImage::applySettings( DocumentItem* item, KMacroCommand* command )
if( !imgUrl->url().isEmpty() )
{
if( !pix.load( imgUrl->url() ) )
- KMessageBox::error( NULL, TQString( i18n("Image format not supported for file: %1") ).tqarg( imgUrl->url() ) );
+ KMessageBox::error( NULL, TQString( i18n("Image format not supported for file: %1") ).arg( imgUrl->url() ) );
}
else
{
diff --git a/kbarcode/purepostscript.cpp b/kbarcode/purepostscript.cpp
index cdbf1e9..43c7f84 100644
--- a/kbarcode/purepostscript.cpp
+++ b/kbarcode/purepostscript.cpp
@@ -190,8 +190,8 @@ void PurePostscriptBarcode::createProgram( TQString & prg )
prg = "%!PS-Adobe-2.0 EPSF-2.0\n%%EndComments\n%%EndProlog\n";
prg += m_program;
prg += TQString("20 20 moveto\n(%1) (%2) %3 barcode\n")
- .tqarg( barkode->parsedValue() )
- .tqarg( opt ).tqarg( type );
+ .arg( barkode->parsedValue() )
+ .arg( opt ).arg( type );
}
TQRect PurePostscriptBarcode::bbox( const char* postscript, long postscript_size )
@@ -206,7 +206,7 @@ TQRect PurePostscriptBarcode::bbox( const char* postscript, long postscript_size
psfile.file()->writeBlock( postscript, postscript_size );
psfile.file()->close();
- if( !readFromPipe( TQString( gs_bbox ).tqarg( psfile.file()->name() ).latin1(), &buffer, &len ) || !len )
+ if( !readFromPipe( TQString( gs_bbox ).arg( psfile.file()->name() ).latin1(), &buffer, &len ) || !len )
{
psfile.unlink();
return TQRect( 0, 0, 0, 0 );
diff --git a/kbarcode/rectitem.cpp b/kbarcode/rectitem.cpp
index 40ce7fa..9e52e97 100644
--- a/kbarcode/rectitem.cpp
+++ b/kbarcode/rectitem.cpp
@@ -81,9 +81,9 @@ void RectItem::drawZpl( TQTextStream* stream )
*stream << ZPLUtils::fieldOrigin( rect().x(), rect().y() );
if( m_circle )
- *stream << TQString("~GE%1,%2,%3,B").tqarg( rect().width() ).tqarg( rect().height() ).tqarg( thick );
+ *stream << TQString("~GE%1,%2,%3,B").arg( rect().width() ).arg( rect().height() ).arg( thick );
else
- *stream << TQString("~GB%1,%2,%3,B,0").tqarg( rect().width() ).tqarg( rect().height() ).tqarg( thick );
+ *stream << TQString("~GB%1,%2,%3,B,0").arg( rect().width() ).arg( rect().height() ).arg( thick );
}
void RectItem::drawIpl( TQTextStream* stream, IPLUtils* utils )
@@ -97,12 +97,12 @@ void RectItem::drawIpl( TQTextStream* stream, IPLUtils* utils )
{
int counter = utils->counter();
- TQString s = TQString("W%1;").tqarg( counter ); // field number
+ TQString s = TQString("W%1;").arg( counter ); // field number
s += utils->fieldOrigin( rect().x(), rect().y() );
- s += TQString("l%1;").tqarg( rect().width() ); // box length
- s += TQString("h%1;").tqarg( rect().height() ); // box height
- s += TQString("w%1;").tqarg( thick );
+ s += TQString("l%1;").arg( rect().width() ); // box length
+ s += TQString("h%1;").arg( rect().height() ); // box height
+ s += TQString("w%1;").arg( thick );
*stream << utils->field( s );
}
@@ -110,11 +110,11 @@ void RectItem::drawIpl( TQTextStream* stream, IPLUtils* utils )
void RectItem::drawEPcl( TQTextStream* stream )
{
- TQString s = TQString("C %1").tqarg( rect().x()+1 );
- s += TQString(" %1").tqarg( rect().y()+1 );
- s += TQString(" %1").tqarg( rect().width() );
- s += TQString(" %1").tqarg( rect().height() );
- s += TQString(" %1 2").tqarg( pen().width() );
+ TQString s = TQString("C %1").arg( rect().x()+1 );
+ s += TQString(" %1").arg( rect().y()+1 );
+ s += TQString(" %1").arg( rect().width() );
+ s += TQString(" %1").arg( rect().height() );
+ s += TQString(" %1 2").arg( pen().width() );
*stream << EPCLUtils::field( s );
}
diff --git a/kbarcode/sqltables.cpp b/kbarcode/sqltables.cpp
index a9b6767..79ae9d7 100644
--- a/kbarcode/sqltables.cpp
+++ b/kbarcode/sqltables.cpp
@@ -383,7 +383,7 @@ void SqlTables::updateTables()
// check for field0 - field9 (1.4.0)
TQStringList fields;
for( unsigned int i = 0; i < 10; i++ )
- fields.append( TQString("field%1").tqarg( i ) );
+ fields.append( TQString("field%1").arg( i ) );
TQSqlQuery query("SHOW FIELDS FROM " TABLE_BASIC );
while ( query.next() )
diff --git a/kbarcode/tbarcode2.cpp b/kbarcode/tbarcode2.cpp
index 22ae500..eb98756 100644
--- a/kbarcode/tbarcode2.cpp
+++ b/kbarcode/tbarcode2.cpp
@@ -141,7 +141,7 @@ TQRect TBarcode2::bbox( const char* postscript, long postscript_size )
psfile.file()->writeBlock( postscript, postscript_size );
psfile.file()->close();
- if( !readFromPipe( TQString( gs_bbox ).tqarg( psfile.file()->name() ).latin1(), &buffer, &len ) || !len )
+ if( !readFromPipe( TQString( gs_bbox ).arg( psfile.file()->name() ).latin1(), &buffer, &len ) || !len )
{
psfile.unlink();
return TQRect( 0, 0, 0, 0 );
diff --git a/kbarcode/tec.cpp b/kbarcode/tec.cpp
index b217f4c..7d20b79 100644
--- a/kbarcode/tec.cpp
+++ b/kbarcode/tec.cpp
@@ -91,14 +91,14 @@ TQString tec452(const TQString &url, int count, const TQString &art, const TQStr
TQDomElement e = n.toElement(); // try to convert the node to an element.
if( !e.isNull() )
if( e.tagName() == "id" ) {
- result += TQString("{D%1,").tqarg( convZeros((e.attribute( "height" ).toInt() + e.attribute( "gap_v" ).toInt())*10,4)); // Altura + Gap vertical
- result += TQString("%1,").tqarg( convZeros(e.attribute( "width" ).toInt()*10,4) ); // Anchura
- result += TQString("%1|}\n").tqarg( convZeros(e.attribute( "height" ).toInt()*10,4) ); // Altura
+ result += TQString("{D%1,").arg( convZeros((e.attribute( "height" ).toInt() + e.attribute( "gap_v" ).toInt())*10,4)); // Altura + Gap vertical
+ result += TQString("%1,").arg( convZeros(e.attribute( "width" ).toInt()*10,4) ); // Anchura
+ result += TQString("%1|}\n").arg( convZeros(e.attribute( "height" ).toInt()*10,4) ); // Altura
result += TQString("{C|}\n"); // Clear buffer
result += TQString("{U2;0130|}\n"); // BackFeed
- result += TQString("{D%1,").tqarg( convZeros((e.attribute( "height" ).toInt() + e.attribute( "gap_v" ).toInt())*10,4)); // Altura + Gap vertical
- result += TQString("%1,").tqarg( convZeros(e.attribute( "width" ).toInt()*10,4) ); // Anchura
- result += TQString("%1|}\n").tqarg( convZeros(e.attribute( "height" ).toInt()*10,4) ); // Altura
+ result += TQString("{D%1,").arg( convZeros((e.attribute( "height" ).toInt() + e.attribute( "gap_v" ).toInt())*10,4)); // Altura + Gap vertical
+ result += TQString("%1,").arg( convZeros(e.attribute( "width" ).toInt()*10,4) ); // Anchura
+ result += TQString("%1|}\n").arg( convZeros(e.attribute( "height" ).toInt()*10,4) ); // Altura
result += TQString("{AX;+000,+000,+00|}\n"); // Position Fine adjust
result += TQString("{AY;+04,1|}\n"); // Print density fine adjust
@@ -130,20 +130,20 @@ TQString tec452(const TQString &url, int count, const TQString &art, const TQStr
if( e.tagName() == "value" ) data = e.text();
n = n.nextSibling();
}
- result += TQString("{RB%1;").tqarg( convZeros(countBar, 2) ); // count de RB
- result += TQString("%1|}\n").tqarg( data ); // Data + fin
+ result += TQString("{RB%1;").arg( convZeros(countBar, 2) ); // count de RB
+ result += TQString("%1|}\n").arg( data ); // Data + fin
countBar++;
} else if( e.tagName() == "textfield" ) {
- result += TQString("{PC%1;").tqarg( convZeros(countText, 3) ); // count
- result += TQString("%1,").tqarg( posConv(e.attribute( "x_mm"), 4 ) ); // X position
- result += TQString("%1,").tqarg( posConv(e.attribute( "y_mm"), 4 ) ); // Y position
- result += TQString("%1,").tqarg( "10" );
- result += TQString("%1,").tqarg( "15" );
- result += TQString("%1,").tqarg( "J" );
- result += TQString("%1,").tqarg( "00" );
- result += TQString("%1|}\n").tqarg( "B" );
+ result += TQString("{PC%1;").arg( convZeros(countText, 3) ); // count
+ result += TQString("%1,").arg( posConv(e.attribute( "x_mm"), 4 ) ); // X position
+ result += TQString("%1,").arg( posConv(e.attribute( "y_mm"), 4 ) ); // Y position
+ result += TQString("%1,").arg( "10" );
+ result += TQString("%1,").arg( "15" );
+ result += TQString("%1,").arg( "J" );
+ result += TQString("%1,").arg( "00" );
+ result += TQString("%1|}\n").arg( "B" );
TQString etext;
TQDomNode n = e.firstChild();
@@ -155,9 +155,9 @@ TQString tec452(const TQString &url, int count, const TQString &art, const TQStr
n = n.nextSibling();
}
- result += TQString("{RC%1;").tqarg( convZeros(countText, 3) ); // count de RB
+ result += TQString("{RC%1;").arg( convZeros(countText, 3) ); // count de RB
etext=getData(etext, art, group, id );
- result += TQString("%1|}\n").tqarg( etext ); // Data + fin
+ result += TQString("%1|}\n").arg( etext ); // Data + fin
countText++;
}
else if( e.tagName() == "rect" ) {
@@ -165,40 +165,40 @@ TQString tec452(const TQString &url, int count, const TQString &art, const TQStr
if (e.attribute("colorr")=="0" and e.attribute("colorg")=="0" and e.attribute("colorb")=="0") {
result += TQString("{XR;"); // XR
- result += TQString("%1,").tqarg( posConv(e.attribute( "x_mm"), 4 ) ); // X position
- result += TQString("%1,").tqarg( posConv(e.attribute( "y_mm"), 4 ) ); // Y position
- result += TQString("%1,").tqarg( convZeros(posConv(e.attribute( "x_mm"), 4 ).toInt()+posConv(e.attribute( "width_mm"),4 ).toInt(),4)); // X position
- result += TQString("%1,").tqarg( convZeros(posConv(e.attribute( "y_mm"), 4 ).toInt()+posConv(e.attribute( "height_mm"),4 ).toInt(),4)); // Y position
+ result += TQString("%1,").arg( posConv(e.attribute( "x_mm"), 4 ) ); // X position
+ result += TQString("%1,").arg( posConv(e.attribute( "y_mm"), 4 ) ); // Y position
+ result += TQString("%1,").arg( convZeros(posConv(e.attribute( "x_mm"), 4 ).toInt()+posConv(e.attribute( "width_mm"),4 ).toInt(),4)); // X position
+ result += TQString("%1,").arg( convZeros(posConv(e.attribute( "y_mm"), 4 ).toInt()+posConv(e.attribute( "height_mm"),4 ).toInt(),4)); // Y position
result += TQString("A"); // Type of Clear
result += TQString("|}\n"); // FIN
result += TQString("{XR;"); // XR
- result += TQString("%1,").tqarg( posConv(e.attribute( "x_mm"), 4 ) ); // X position
- result += TQString("%1,").tqarg( posConv(e.attribute( "y_mm"), 4 ) ); // Y position
- result += TQString("%1,").tqarg( convZeros(posConv(e.attribute( "x_mm"), 4 ).toInt()+posConv(e.attribute( "width_mm"),4 ).toInt(),4)); // X position
- result += TQString("%1,").tqarg( convZeros(posConv(e.attribute( "y_mm"), 4 ).toInt()+posConv(e.attribute( "height_mm"),4 ).toInt(),4)); // Y position
+ result += TQString("%1,").arg( posConv(e.attribute( "x_mm"), 4 ) ); // X position
+ result += TQString("%1,").arg( posConv(e.attribute( "y_mm"), 4 ) ); // Y position
+ result += TQString("%1,").arg( convZeros(posConv(e.attribute( "x_mm"), 4 ).toInt()+posConv(e.attribute( "width_mm"),4 ).toInt(),4)); // X position
+ result += TQString("%1,").arg( convZeros(posConv(e.attribute( "y_mm"), 4 ).toInt()+posConv(e.attribute( "height_mm"),4 ).toInt(),4)); // Y position
result += TQString("B"); // Type of Clear
result += TQString("|}\n"); // FIN
}
else {
result += TQString("{LC;"); // LC
- result += TQString("%1,").tqarg( posConv(e.attribute( "x_mm"), 4 ) ); // X position
- result += TQString("%1,").tqarg( posConv(e.attribute( "y_mm"), 4 ) ); // Y position
- result += TQString("%1,").tqarg( convZeros(posConv(e.attribute( "x_mm"), 4 ).toInt()+posConv(e.attribute( "width_mm"),4 ).toInt(),4)); // X position
- result += TQString("%1,").tqarg( convZeros(posConv(e.attribute( "y_mm"), 4 ).toInt()+posConv(e.attribute( "height_mm"),4 ).toInt(),4)); // Y position
+ result += TQString("%1,").arg( posConv(e.attribute( "x_mm"), 4 ) ); // X position
+ result += TQString("%1,").arg( posConv(e.attribute( "y_mm"), 4 ) ); // Y position
+ result += TQString("%1,").arg( convZeros(posConv(e.attribute( "x_mm"), 4 ).toInt()+posConv(e.attribute( "width_mm"),4 ).toInt(),4)); // X position
+ result += TQString("%1,").arg( convZeros(posConv(e.attribute( "y_mm"), 4 ).toInt()+posConv(e.attribute( "height_mm"),4 ).toInt(),4)); // Y position
result += TQString("1,"); // Type of line 0=line 1=Rectangulo 2=Jagged line 3=Rectangle with jagged lines
- result += TQString("%1").tqarg(lineWidth(e)); // No. of line width dots 1-9
+ result += TQString("%1").arg(lineWidth(e)); // No. of line width dots 1-9
//result += TQString("999"); // Radius of rounded corners of a rectangle
result += TQString("|}\n"); // FIN
}
}
else if( e.tagName() == "line" ) {
result += TQString("{LC;"); // LC
- result += TQString("%1,").tqarg( posConv(e.attribute( "x_mm"), 4 ) ); // X position
- result += TQString("%1,").tqarg( posConv(e.attribute( "y_mm"), 4 ) ); // Y position
- result += TQString("%1,").tqarg( convZeros(posConv(e.attribute( "x_mm"), 4 ).toInt()+posConv(e.attribute( "width_mm"),4 ).toInt(),4)); // X position
- result += TQString("%1,").tqarg( convZeros(posConv(e.attribute( "y_mm"), 4 ).toInt()+posConv(e.attribute( "height_mm"),4 ).toInt(),4)); // Y position
+ result += TQString("%1,").arg( posConv(e.attribute( "x_mm"), 4 ) ); // X position
+ result += TQString("%1,").arg( posConv(e.attribute( "y_mm"), 4 ) ); // Y position
+ result += TQString("%1,").arg( convZeros(posConv(e.attribute( "x_mm"), 4 ).toInt()+posConv(e.attribute( "width_mm"),4 ).toInt(),4)); // X position
+ result += TQString("%1,").arg( convZeros(posConv(e.attribute( "y_mm"), 4 ).toInt()+posConv(e.attribute( "height_mm"),4 ).toInt(),4)); // Y position
result += TQString("0,"); // Type of line 0=line 1=Rectangulo 2=Jagged line 3=Rectangle with jagged lines
- result += TQString("%1").tqarg(lineWidth(e)); // No. of line width dots 1-9
+ result += TQString("%1").arg(lineWidth(e)); // No. of line width dots 1-9
//result += TQString("999"); // Radius of rounded corners of a rectangle
result += TQString("|}\n"); // FIN
}
@@ -206,7 +206,7 @@ TQString tec452(const TQString &url, int count, const TQString &art, const TQStr
}
result += TQString("{U1;0130|}\n"); // ForwardFeed
- result += TQString("{XS;I,%1,0000C2000|}\n").tqarg(convZeros(count,4)); // Issue Command
+ result += TQString("{XS;I,%1,0000C2000|}\n").arg(convZeros(count,4)); // Issue Command
return result;
}
@@ -214,7 +214,7 @@ TQString tec452(const TQString &url, int count, const TQString &art, const TQStr
TQString convZeros( int count, int zeros )
{
-TQString str= TQString("%1").tqarg(count);
+TQString str= TQString("%1").arg(count);
int l=strlen(str); //get the string length
for(;l