summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/ts
diff options
context:
space:
mode:
Diffstat (limited to 'kfile-plugins/ts')
-rw-r--r--kfile-plugins/ts/kfile_ts.cpp12
-rw-r--r--kfile-plugins/ts/kfile_ts.h3
2 files changed, 8 insertions, 7 deletions
diff --git a/kfile-plugins/ts/kfile_ts.cpp b/kfile-plugins/ts/kfile_ts.cpp
index 0d6f5dc1..e027fda6 100644
--- a/kfile-plugins/ts/kfile_ts.cpp
+++ b/kfile-plugins/ts/kfile_ts.cpp
@@ -29,8 +29,8 @@ typedef KGenericFactory<KTsPlugin> TsFactory;
K_EXPORT_COMPONENT_FACTORY(kfile_ts, TsFactory("kfile_ts"))
-KTsPlugin::KTsPlugin(TQObject *parent, const char *name,
- const TQStringList &args) : KFilePlugin(parent, name, args)
+KTsPlugin::KTsPlugin(TQObject *tqparent, const char *name,
+ const TQStringList &args) : KFilePlugin(tqparent, name, args)
{
makeMimeTypeInfo( "application/x-linguist" );
}
@@ -66,18 +66,18 @@ bool KTsPlugin::readInfo(KFileMetaInfo& info, uint)
TQString line = stream.readLine();
// is it really a linguist file?
- if (!line.contains("<!DOCTYPE TS>", false))
+ if (!line.tqcontains("<!DOCTYPE TS>", false))
return false;
while (!stream.eof())
{
line = stream.readLine();
- if (line.contains("type=\"obsolete\"")) obsolete++;
+ if (line.tqcontains("type=\"obsolete\"")) obsolete++;
- if (line.contains("<source>")) messages++;
+ if (line.tqcontains("<source>")) messages++;
- if (line.contains("type=\"unfinished\"")) untranslated++;
+ if (line.tqcontains("type=\"unfinished\"")) untranslated++;
}
diff --git a/kfile-plugins/ts/kfile_ts.h b/kfile-plugins/ts/kfile_ts.h
index 930de46e..65941e47 100644
--- a/kfile-plugins/ts/kfile_ts.h
+++ b/kfile-plugins/ts/kfile_ts.h
@@ -27,9 +27,10 @@ class TQStringList;
class KTsPlugin: public KFilePlugin
{
Q_OBJECT
+ TQ_OBJECT
public:
- KTsPlugin(TQObject *parent, const char *name, const TQStringList& args);
+ KTsPlugin(TQObject *tqparent, const char *name, const TQStringList& args);
virtual bool readInfo(KFileMetaInfo& info, uint what);
private: