summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/ts/kfile_ts.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-12 01:36:19 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-12 01:36:19 +0000
commit99a2774ca6f1cab334de5d43fe36fc44ae889a4c (patch)
treeeff34cf0762227f6baf2a93e8fef48d4bed2651c /kfile-plugins/ts/kfile_ts.cpp
parent1c104292188541106338d4940b0f04beeb4301a0 (diff)
downloadtdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.tar.gz
tdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.zip
TQt4 convert kdesdk
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1236185 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kfile-plugins/ts/kfile_ts.cpp')
-rw-r--r--kfile-plugins/ts/kfile_ts.cpp12
1 files changed, 6 insertions, 6 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++;
}