diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:59:13 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:59:13 -0600 |
commit | 56160bf4dfe503631ef6373367b281f081bab2b4 (patch) | |
tree | 7fcea2ffd9c3420af999c3dcad0ed032eef93956 /kdoctools/kio_help.cpp | |
parent | 13281e2856a2ef43bbab78c5528470309c23aa77 (diff) | |
download | tdelibs-56160bf4dfe503631ef6373367b281f081bab2b4.tar.gz tdelibs-56160bf4dfe503631ef6373367b281f081bab2b4.zip |
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 13281e2856a2ef43bbab78c5528470309c23aa77.
Diffstat (limited to 'kdoctools/kio_help.cpp')
-rw-r--r-- | kdoctools/kio_help.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kdoctools/kio_help.cpp b/kdoctools/kio_help.cpp index 78873af72..9da16d83e 100644 --- a/kdoctools/kio_help.cpp +++ b/kdoctools/kio_help.cpp @@ -19,9 +19,9 @@ #include <tqvaluelist.h> #include <tqfileinfo.h> #include <tqfile.h> -#include <textstream.h> +#include <tqtextstream.h> #include <tqregexp.h> -#include <textcodec.h> +#include <tqtextcodec.h> #include <kdebug.h> #include <kurl.h> @@ -112,7 +112,7 @@ TQString HelpProtocol::lookupFile(const TQString &fname, } else { - unicodeError( i18n("There is no documentation available for %1." ).arg(path) ); + tqunicodeError( i18n("There is no documentation available for %1." ).arg(path) ); finished(); return TQString::null; } @@ -123,7 +123,7 @@ TQString HelpProtocol::lookupFile(const TQString &fname, } -void HelpProtocol::unicodeError( const TQString &t ) +void HelpProtocol::tqunicodeError( const TQString &t ) { data(fromUnicode( TQString( "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=%1\"></head>\n" @@ -148,10 +148,10 @@ void HelpProtocol::get( const KURL& url ) doc = url.path(); if ( !mGhelp ) { - if (doc.at(0) != '/') + if (doc.tqat(0) != '/') doc = doc.prepend('/'); - if (doc.at(doc.length() - 1) == '/') + if (doc.tqat(doc.length() - 1) == '/') doc += "index.html"; } @@ -215,7 +215,7 @@ void HelpProtocol::get( const KURL& url ) kdDebug( 7119 ) << "parsed " << mParsed.length() << endl; if (mParsed.isEmpty()) { - unicodeError( i18n( "The requested help file could not be parsed:<br>%1" ).arg( file ) ); + tqunicodeError( i18n( "The requested help file could not be parsed:<br>%1" ).arg( file ) ); } else { int pos1 = mParsed.find( "charset=" ); if ( pos1 > 0 ) { @@ -248,7 +248,7 @@ void HelpProtocol::get( const KURL& url ) kdDebug( 7119 ) << "parsed " << mParsed.length() << endl; if (mParsed.isEmpty()) { - unicodeError( i18n( "The requested help file could not be parsed:<br>%1" ).arg( file ) ); + tqunicodeError( i18n( "The requested help file could not be parsed:<br>%1" ).arg( file ) ); } else { TQString query = url.query(), anchor; @@ -316,7 +316,7 @@ void HelpProtocol::emitFile( const KURL& url ) return; } - unicodeError( i18n("Could not find filename %1 in %2.").arg(filename).arg( url.url() ) ); + tqunicodeError( i18n("Could not find filename %1 in %2.").arg(filename).arg( url.url() ) ); return; } |