diff options
Diffstat (limited to 'kfile-plugins/html/kfile_html.cpp')
-rw-r--r-- | kfile-plugins/html/kfile_html.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kfile-plugins/html/kfile_html.cpp b/kfile-plugins/html/kfile_html.cpp index 5adddfc..d49d184 100644 --- a/kfile-plugins/html/kfile_html.cpp +++ b/kfile-plugins/html/kfile_html.cpp @@ -34,9 +34,9 @@ typedef KGenericFactory<KHtmlPlugin> HtmlFactory; K_EXPORT_COMPONENT_FACTORY( kfile_html, HtmlFactory( "kfile_html" ) ) -KHtmlPlugin::KHtmlPlugin( TQObject *parent, const char *name, +KHtmlPlugin::KHtmlPlugin( TQObject *tqparent, const char *name, const TQStringList &args ) - : KFilePlugin( parent, name, args ) + : KFilePlugin( tqparent, name, args ) { kdDebug(7034) << "html plugin\n"; @@ -69,7 +69,7 @@ bool KHtmlPlugin::readInfo( KFileMetaInfo& info, uint ) // or until <body> if the author forgot it // In this case, it's better to limit the size of the buffer to something // sensible. Think a 0-filled 3GB file with an .html extension. - int maxBufSize = QMIN(f.size(), 32768); + int maxBufSize = TQMIN(f.size(), 32768); TQByteArray data(maxBufSize + 1); f.readBlock(data.data(), maxBufSize); data[maxBufSize]='\0'; @@ -86,7 +86,7 @@ bool KHtmlPlugin::readInfo( KFileMetaInfo& info, uint ) exp.setPattern("\\s*<\\s*!doctype\\s*([^>]*)\\s*>"); if (exp.search(s, last) != -1) { - kdDebug(7034) << "DocType: " << exp.capturedTexts().join("-") << endl; + kdDebug(7034) << "DocType: " << TQString(exp.capturedTexts().join("-")) << endl; appendItem(group, "Doctype", exp.cap(1)); last += exp.matchedLength(); } @@ -151,7 +151,7 @@ bool KHtmlPlugin::readInfo( KFileMetaInfo& info, uint ) // find out if it contains javascript exp.setPattern("<script>"); - appendItem(group, "Javascript", TQVariant( s.find(exp)!=-1, 42)); + appendItem(group, "Javascript", TQVariant( s.tqfind(exp)!=-1, 42)); return true; } |