summaryrefslogtreecommitdiffstats
path: root/kpresenter/KPrWebPresentation.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-19 11:38:41 -0600
committerTimothy Pearson <[email protected]>2011-12-19 11:38:41 -0600
commitf0de9e167e289ab7dc33e57f077c1f04ec7c68c8 (patch)
tree1fc538e179833e62caec21956bfe47a252be5a72 /kpresenter/KPrWebPresentation.cpp
parent11191ef0b9908604d1d7aaca382b011ef22c454c (diff)
downloadkoffice-f0de9e167e289ab7dc33e57f077c1f04ec7c68c8.tar.gz
koffice-f0de9e167e289ab7dc33e57f077c1f04ec7c68c8.zip
Remove additional unneeded tq method conversions
Diffstat (limited to 'kpresenter/KPrWebPresentation.cpp')
-rw-r--r--kpresenter/KPrWebPresentation.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kpresenter/KPrWebPresentation.cpp b/kpresenter/KPrWebPresentation.cpp
index 40ad82be..0d490cf4 100644
--- a/kpresenter/KPrWebPresentation.cpp
+++ b/kpresenter/KPrWebPresentation.cpp
@@ -129,7 +129,7 @@ static TQString EscapeSgmlText(const TQTextCodec* codec, const TQString& strIn,
{
if (!codec->canEncode(ch))
{
- strReturn+=TQString("&#%1;").tqarg(ch.tqunicode());
+ strReturn+=TQString("&#%1;").arg(ch.tqunicode());
break;
}
}
@@ -156,7 +156,7 @@ static TQString EscapeEncodingOnly(const TQTextCodec* codec, const TQString& str
{
if (!codec->canEncode(ch))
{
- strReturn+=TQString("&#%1;").tqarg(ch.tqunicode());
+ strReturn+=TQString("&#%1;").arg(ch.tqunicode());
continue;
}
}
@@ -211,7 +211,7 @@ void KPrWebPresentation::loadConfig()
if ( num <= slideInfos.count() ) {
for ( unsigned int i = 0; i < num; i++ )
{
- TQString key = TQString::fromLatin1( "SlideTitle%1" ).tqarg( i );
+ TQString key = TQString::fromLatin1( "SlideTitle%1" ).arg( i );
if ( cfg.hasKey( key ) )
{
// We'll assume that the selected pages haven't changed... Hmm.
@@ -245,7 +245,7 @@ void KPrWebPresentation::saveConfig()
cfg.writeEntry( "Slides", slideInfos.count() );
for ( unsigned int i = 0; i < slideInfos.count(); i++ )
- cfg.writeEntry( TQString::fromLatin1( "SlideTitle%1" ).tqarg( i ), slideInfos[ i ].slideTitle );
+ cfg.writeEntry( TQString::fromLatin1( "SlideTitle%1" ).arg( i ), slideInfos[ i ].slideTitle );
cfg.writeEntry( "BackColor", backColor );
cfg.writeEntry( "TitleColor", titleColor );
@@ -310,7 +310,7 @@ void KPrWebPresentation::createSlidesPictures( KProgress *progressBar )
for ( unsigned int i = 0; i < slideInfos.count(); i++ ) {
int pgNum = slideInfos[i].pageNumber;
view->getCanvas()->drawPageInPix( pix, pgNum, zoom, true /*force real variable value*/ );
- filename = TQString( "%1/pics/slide_%2.png" ).tqarg( path ).tqarg( i + 1 );
+ filename = TQString( "%1/pics/slide_%2.png" ).arg( path ).arg( i + 1 );
KTempFile tmp;
pix.save( tmp.name(), "PNG" );
@@ -395,8 +395,8 @@ void KPrWebPresentation::createSlidesHTML( KProgress *progressBar )
unsigned int pgNum = i + 1; // pgquiles # elpauer . org - I think this is a bug, seems to be an overflow if we have max_unsigned_int slides
KTempFile tmp;
- TQString dest= TQString( "%1/html/slide_%2.html" ).tqarg( path ).tqarg( pgNum );
- TQString next= TQString( "slide_%2.html" ).tqarg( pgNum<slideInfos.count() ? pgNum+1 : (m_bLoopSlides ? 1 : pgNum ) ); // Ugly, but it works
+ TQString dest= TQString( "%1/html/slide_%2.html" ).arg( path ).arg( pgNum );
+ TQString next= TQString( "slide_%2.html" ).arg( pgNum<slideInfos.count() ? pgNum+1 : (m_bLoopSlides ? 1 : pgNum ) ); // Ugly, but it works
TQFile file( tmp.name() );
file.open( IO_WriteOnly );
@@ -480,7 +480,7 @@ void KPrWebPresentation::createSlidesHTML( KProgress *progressBar )
streamOut << "<a href=\"" << next << "\">";
streamOut << "<img src=\"../pics/slide_" << pgNum << ".png\" border=\"0\" alt=\""
- << i18n( "Slide %1" ).tqarg( pgNum ) << "\"" << ( isXML() ?" /":"") << ">";
+ << i18n( "Slide %1" ).arg( pgNum ) << "\"" << ( isXML() ?" /":"") << ">";
if ( i < slideInfos.count() - 1 )
streamOut << "</a>";
@@ -509,9 +509,9 @@ void KPrWebPresentation::createSlidesHTML( KProgress *progressBar )
if (email.isEmpty())
htmlAuthor=escapeHtmlText( codec, author );
else
- htmlAuthor=TQString("<a href=\"mailto:%1\">%2</a>").tqarg( escapeHtmlText( codec, email )).tqarg( escapeHtmlText( codec, author ));
+ htmlAuthor=TQString("<a href=\"mailto:%1\">%2</a>").arg( escapeHtmlText( codec, email )).arg( escapeHtmlText( codec, author ));
streamOut << EscapeEncodingOnly ( codec, i18n( "Created on %1 by <i>%2</i> with <a href=\"http://www.koffice.org/kpresenter\">KPresenter</a>" )
- .tqarg( KGlobal::locale()->formatDate ( TQDate::currentDate() ) ).tqarg( htmlAuthor ) );
+ .arg( KGlobal::locale()->formatDate ( TQDate::currentDate() ) ).arg( htmlAuthor ) );
streamOut << " </center><hr noshade=\"noshade\"" << ( isXML() ?" /":"") << ">\n";
}
@@ -532,7 +532,7 @@ void KPrWebPresentation::createMainPage( KProgress *progressBar )
{
TQTextCodec *codec = KGlobal::charsets()->codecForName( m_encoding );
KTempFile tmp;
- TQString dest = TQString( "%1/index.html" ).tqarg( path );
+ TQString dest = TQString( "%1/index.html" ).arg( path );
TQFile file( tmp.name() );
file.open( IO_WriteOnly );
TQTextStream streamOut( &file );
@@ -560,9 +560,9 @@ void KPrWebPresentation::createMainPage( KProgress *progressBar )
// footer: author name, e-mail
TQString htmlAuthor = email.isEmpty() ? escapeHtmlText( codec, author ) :
- TQString("<a href=\"mailto:%1\">%2</a>").tqarg( escapeHtmlText( codec, email )).tqarg( escapeHtmlText( codec, author ));
+ TQString("<a href=\"mailto:%1\">%2</a>").arg( escapeHtmlText( codec, email )).arg( escapeHtmlText( codec, author ));
streamOut << EscapeEncodingOnly ( codec, i18n( "Created on %1 by <i>%2</i> with <a href=\"http://www.koffice.org/kpresenter\">KPresenter</a>" )
- .tqarg( KGlobal::locale()->formatDate ( TQDate::currentDate() ) ).tqarg( htmlAuthor ) );
+ .arg( KGlobal::locale()->formatDate ( TQDate::currentDate() ) ).arg( htmlAuthor ) );
streamOut << "</body>\n</html>\n";
file.close();
@@ -1081,7 +1081,7 @@ void KPrWebPresentationWizard::pageChanged()
{
TQString msg = i18n( "<qt>The directory <b>%1</b> does not exist.<br>"
"Do you want create it?</qt>" );
- if( KMessageBox::questionYesNo( this, msg.tqarg( pathname ),
+ if( KMessageBox::questionYesNo( this, msg.arg( pathname ),
i18n( "Directory Not Found" ) )
== KMessageBox::Yes)
{