summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/html
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-18 17:00:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-18 17:00:31 +0000
commit395a904bff7b4d6ead445c342f7ac0c5fbf29121 (patch)
tree9829cadb79d2cc7c29a940627fadb28b11e54150 /kfile-plugins/html
parent399f47c376fdf4d19192732a701ea9578d11619d (diff)
downloadtdeaddons-395a904bff7b4d6ead445c342f7ac0c5fbf29121.tar.gz
tdeaddons-395a904bff7b4d6ead445c342f7ac0c5fbf29121.zip
TQt4 port kdeaddons
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1237404 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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 );
};