summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/ts
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
commit4ae0c208b66e0f7954e194384464fe2d0a2c56dd (patch)
treeb0a7cd1c184f0003c0292eb416ed27f674f9cc43 /kfile-plugins/ts
parent1964ea0fb4ab57493ca2ebb709c8d3b5395fd653 (diff)
downloadtdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.tar.gz
tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kfile-plugins/ts')
-rw-r--r--kfile-plugins/ts/kfile_ts.cpp24
-rw-r--r--kfile-plugins/ts/kfile_ts.h4
2 files changed, 14 insertions, 14 deletions
diff --git a/kfile-plugins/ts/kfile_ts.cpp b/kfile-plugins/ts/kfile_ts.cpp
index 3d84bb67..0d6f5dc1 100644
--- a/kfile-plugins/ts/kfile_ts.cpp
+++ b/kfile-plugins/ts/kfile_ts.cpp
@@ -22,20 +22,20 @@
#include <kgenericfactory.h>
#include <kdebug.h>
-#include <qfile.h>
-#include <qstringlist.h>
+#include <tqfile.h>
+#include <tqstringlist.h>
typedef KGenericFactory<KTsPlugin> TsFactory;
K_EXPORT_COMPONENT_FACTORY(kfile_ts, TsFactory("kfile_ts"))
-KTsPlugin::KTsPlugin(QObject *parent, const char *name,
- const QStringList &args) : KFilePlugin(parent, name, args)
+KTsPlugin::KTsPlugin(TQObject *parent, const char *name,
+ const TQStringList &args) : KFilePlugin(parent, name, args)
{
makeMimeTypeInfo( "application/x-linguist" );
}
-void KTsPlugin::makeMimeTypeInfo(const QString& mimeType)
+void KTsPlugin::makeMimeTypeInfo(const TQString& mimeType)
{
KFileMimeTypeInfo* info = addMimeTypeInfo(mimeType);
@@ -43,18 +43,18 @@ void KTsPlugin::makeMimeTypeInfo(const QString& mimeType)
addGroupInfo(info, "General", i18n("General"));
KFileMimeTypeInfo::ItemInfo* item;
- item = addItemInfo(group, "Messages", i18n("Messages"), QVariant::Int);
+ item = addItemInfo(group, "Messages", i18n("Messages"), TQVariant::Int);
setAttributes(item, KFileMimeTypeInfo::Averaged);
- item = addItemInfo(group, "Translated", i18n("Translated"), QVariant::Int);
+ item = addItemInfo(group, "Translated", i18n("Translated"), TQVariant::Int);
setAttributes(item, KFileMimeTypeInfo::Averaged);
- item = addItemInfo(group, "Untranslated", i18n("Untranslated"), QVariant::Int);
+ item = addItemInfo(group, "Untranslated", i18n("Untranslated"), TQVariant::Int);
setAttributes(item, KFileMimeTypeInfo::Averaged);
- item = addItemInfo(group, "Obsolete", i18n("Obsolete"), QVariant::Int);
+ item = addItemInfo(group, "Obsolete", i18n("Obsolete"), TQVariant::Int);
}
bool KTsPlugin::readInfo(KFileMetaInfo& info, uint)
{
- QFile f(info.path());
+ TQFile f(info.path());
if (!f.open(IO_ReadOnly))
return false;
@@ -62,8 +62,8 @@ bool KTsPlugin::readInfo(KFileMetaInfo& info, uint)
int untranslated = 0;
int obsolete = 0;
- QTextStream stream( &f );
- QString line = stream.readLine();
+ TQTextStream stream( &f );
+ TQString line = stream.readLine();
// is it really a linguist file?
if (!line.contains("<!DOCTYPE TS>", false))
diff --git a/kfile-plugins/ts/kfile_ts.h b/kfile-plugins/ts/kfile_ts.h
index 8bf73293..4515422e 100644
--- a/kfile-plugins/ts/kfile_ts.h
+++ b/kfile-plugins/ts/kfile_ts.h
@@ -29,11 +29,11 @@ class KTsPlugin: public KFilePlugin
Q_OBJECT
public:
- KTsPlugin(QObject *parent, const char *name, const QStringList& args);
+ KTsPlugin(TQObject *parent, const char *name, const TQStringList& args);
virtual bool readInfo(KFileMetaInfo& info, uint what);
private:
- void makeMimeTypeInfo(const QString& mimeType);
+ void makeMimeTypeInfo(const TQString& mimeType);
};
#endif