summaryrefslogtreecommitdiffstats
path: root/kate/part/kateprinter.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
commit560378aaca1784ba19806a0414a32b20c744de39 (patch)
treece0dfd7c3febf2a1adc7603d1019a8be2083c415 /kate/part/kateprinter.cpp
parentd4d5af1cdbd3cc65d095e0afc5b1f4260091cf5d (diff)
downloadtdelibs-560378aaca1784ba19806a0414a32b20c744de39.tar.gz
tdelibs-560378aaca1784ba19806a0414a32b20c744de39.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kate/part/kateprinter.cpp')
-rw-r--r--kate/part/kateprinter.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kate/part/kateprinter.cpp b/kate/part/kateprinter.cpp
index e0dbdc728..f7869afef 100644
--- a/kate/part/kateprinter.cpp
+++ b/kate/part/kateprinter.cpp
@@ -184,7 +184,7 @@ bool KatePrinter::print (KateDocument *doc)
// This retrieves all tags, ued or not, but
// none of theese operations should be expensive,
// and searcing each tag in the format strings is avoided.
- TQDateTime dt = TQDateTime::currentDateTime();
+ TQDateTime dt = TQDateTime::tqcurrentDateTime();
TQMap<TQString,TQString> tags;
KUser u (KUser::UseRealUserID);
@@ -221,7 +221,7 @@ bool KatePrinter::print (KateDocument *doc)
while ( pos > -1 )
{
rep = tags[reTags.cap( 1 )];
- headerTags.replace( (uint)pos, 2, rep );
+ headerTags.tqreplace( (uint)pos, 2, rep );
pos += rep.length();
pos = reTags.search( headerTags, pos );
}
@@ -248,7 +248,7 @@ bool KatePrinter::print (KateDocument *doc)
while ( pos > -1 )
{
rep = tags[reTags.cap( 1 )];
- footerTags.replace( (uint)pos, 2, rep );
+ footerTags.tqreplace( (uint)pos, 2, rep );
pos += rep.length();
pos = reTags.search( footerTags, pos );
}
@@ -339,7 +339,7 @@ bool KatePrinter::print (KateDocument *doc)
// now that we know the vertical amount of space needed,
// it is possible to calculate the total number of pages
- // if needed, that is if any header/footer tag contains "%P".
+ // if needed, that is if any header/footer tag tqcontains "%P".
if ( headerTagList.grep("%P").count() || footerTagList.grep("%P").count() )
{
kdDebug(13020)<<"'%P' found! calculating number of pages..."<<endl;
@@ -378,9 +378,9 @@ bool KatePrinter::print (KateDocument *doc)
TQString re("%P");
TQStringList::Iterator it;
for ( it=headerTagList.begin(); it!=headerTagList.end(); ++it )
- (*it).replace( re, TQString( "%1" ).arg( _pages ) );
+ (*it).tqreplace( re, TQString( "%1" ).arg( _pages ) );
for ( it=footerTagList.begin(); it!=footerTagList.end(); ++it )
- (*it).replace( re, TQString( "%1" ).arg( _pages ) );
+ (*it).tqreplace( re, TQString( "%1" ).arg( _pages ) );
}
} // end prepare block
@@ -425,7 +425,7 @@ bool KatePrinter::print (KateDocument *doc)
for (int i=0; i<3; i++)
{
s = headerTagList[i];
- if (s.find("%p") != -1) s.replace("%p", TQString::number(currentPage));
+ if (s.tqfind("%p") != -1) s.tqreplace("%p", TQString::number(currentPage));
paint.drawText(marg, 0, headerWidth-(marg*2), headerHeight, align, s);
align = valign|(i == 0 ? Qt::AlignHCenter : Qt::AlignRight);
}
@@ -453,7 +453,7 @@ bool KatePrinter::print (KateDocument *doc)
for (int i=0; i<3; i++)
{
s = footerTagList[i];
- if (s.find("%p") != -1) s.replace("%p", TQString::number(currentPage));
+ if (s.tqfind("%p") != -1) s.tqreplace("%p", TQString::number(currentPage));
paint.drawText(marg, maxHeight+innerMargin, headerWidth-(marg*2), footerHeight, align, s);
align = Qt::AlignVCenter|(i == 0 ? Qt::AlignHCenter : Qt::AlignRight);
}
@@ -1002,4 +1002,4 @@ void KatePrintLayout::setOptions( const TQMap<TQString,TQString>& opts )
#include "kateprinter.moc"
#endif //!Q_WS_WIN
-// kate: space-indent on; indent-width 2; replace-tabs on;
+// kate: space-indent on; indent-width 2; tqreplace-tabs on;