diff options
Diffstat (limited to 'kfile-plugins/ts/kfile_ts.cpp')
-rw-r--r-- | kfile-plugins/ts/kfile_ts.cpp | 24 |
1 files changed, 12 insertions, 12 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)) |