diff options
Diffstat (limited to 'kfile-plugins/ts')
-rw-r--r-- | kfile-plugins/ts/kfile_ts.cpp | 24 | ||||
-rw-r--r-- | kfile-plugins/ts/kfile_ts.h | 4 |
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 |