summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/html
diff options
context:
space:
mode:
Diffstat (limited to 'kfile-plugins/html')
-rw-r--r--kfile-plugins/html/kfile_html.cpp10
-rw-r--r--kfile-plugins/html/kfile_html.h3
2 files changed, 7 insertions, 6 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;
}
diff --git a/kfile-plugins/html/kfile_html.h b/kfile-plugins/html/kfile_html.h
index 5034d53..1f23eae 100644
--- a/kfile-plugins/html/kfile_html.h
+++ b/kfile-plugins/html/kfile_html.h
@@ -29,9 +29,10 @@ class TQStringList;
class KHtmlPlugin: public KFilePlugin
{
Q_OBJECT
+ TQ_OBJECT
public:
- KHtmlPlugin( TQObject *parent, const char *name, const TQStringList& args );
+ KHtmlPlugin( TQObject *tqparent, const char *name, const TQStringList& args );
virtual bool readInfo( KFileMetaInfo& info, uint what );
};