diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-02-15 19:11:41 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-02-15 19:11:41 +0000 |
commit | 374d939d8af431477ce2601815f0ba121b66871c (patch) | |
tree | ad878478dcc0bedf51e3cffb2ed611ada422b290 /kdoctools | |
parent | f9279733bf71e446933b46f40cbe9c9b9f57b778 (diff) | |
download | tdelibs-374d939d8af431477ce2601815f0ba121b66871c.tar.gz tdelibs-374d939d8af431477ce2601815f0ba121b66871c.zip |
Allow kdelibs to function correctly with TQt for Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1220926 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdoctools')
-rw-r--r-- | kdoctools/kio_help.cpp | 4 | ||||
-rw-r--r-- | kdoctools/xslt.cpp | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/kdoctools/kio_help.cpp b/kdoctools/kio_help.cpp index f1f1c634b..00d968e6a 100644 --- a/kdoctools/kio_help.cpp +++ b/kdoctools/kio_help.cpp @@ -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"; } diff --git a/kdoctools/xslt.cpp b/kdoctools/xslt.cpp index 9cbf4cb4d..af3d7520b 100644 --- a/kdoctools/xslt.cpp +++ b/kdoctools/xslt.cpp @@ -133,7 +133,7 @@ xmlParserInputPtr meinExternalEntityLoader(const char *URL, const char *ID, TQString splitOut(const TQString &parsed, int index) { int start_index = index + 1; - while (parsed.at(start_index - 1) != '>') start_index++; + while (parsed.tqat(start_index - 1) != '>') start_index++; int inside = 0; @@ -170,7 +170,7 @@ TQString splitOut(const TQString &parsed, int index) if (index > 0) { int endindex = filedata.tqfindRev("</FILENAME>"); - while (filedata.at(endindex) != '>') endindex++; + while (filedata.tqat(endindex) != '>') endindex++; endindex++; filedata = filedata.left(index) + filedata.mid(endindex); } @@ -279,7 +279,7 @@ TQString lookForCache( const TQString &filename ) { kdDebug() << "lookForCache " << filename << endl; assert( filename.endsWith( ".docbook" ) ); - assert( filename.at( 0 ) == '/' ); + assert( filename.tqat( 0 ) == '/' ); TQString cache = filename.left( filename.length() - 7 ); TQString output; @@ -336,7 +336,7 @@ TQCString fromUnicode( const TQString &data ) buffer_len += test.length(); } else { TQString res; - res.sprintf( "&#%d;", TQChar(part.at( i )).tqunicode() ); + res.sprintf( "&#%d;", TQChar(part.tqat( i )).tqunicode() ); test = locale->fromUnicode( res ); if (buffer_len + test.length() + 1 > sizeof(buffer)) break; |