summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/gif
diff options
context:
space:
mode:
Diffstat (limited to 'kfile-plugins/gif')
-rw-r--r--kfile-plugins/gif/kfile_gif.cpp32
-rw-r--r--kfile-plugins/gif/kfile_gif.h4
2 files changed, 18 insertions, 18 deletions
diff --git a/kfile-plugins/gif/kfile_gif.cpp b/kfile-plugins/gif/kfile_gif.cpp
index 3c29f05f..ce54458b 100644
--- a/kfile-plugins/gif/kfile_gif.cpp
+++ b/kfile-plugins/gif/kfile_gif.cpp
@@ -31,19 +31,19 @@
#include <kgenericfactory.h>
#include <kdebug.h>
-#include <qcstring.h>
-#include <qfile.h>
-#include <qdatetime.h>
-#include <qdict.h>
-#include <qvalidator.h>
-#include <qimage.h>
+#include <tqcstring.h>
+#include <tqfile.h>
+#include <tqdatetime.h>
+#include <tqdict.h>
+#include <tqvalidator.h>
+#include <tqimage.h>
typedef KGenericFactory<KGifPlugin> GifFactory;
K_EXPORT_COMPONENT_FACTORY(kfile_gif, GifFactory("kfile_gif"))
-KGifPlugin::KGifPlugin(QObject *parent, const char *name,
- const QStringList &args)
+KGifPlugin::KGifPlugin(TQObject *parent, const char *name,
+ const TQStringList &args)
: KFilePlugin(parent, name, args)
{
kdDebug(7034) << "gif KFileMetaInfo plugin\n";
@@ -56,13 +56,13 @@ KGifPlugin::KGifPlugin(QObject *parent, const char *name,
KFileMimeTypeInfo::ItemInfo* item;
- item = addItemInfo(group, "Version", i18n("Version"), QVariant::String);
+ item = addItemInfo(group, "Version", i18n("Version"), TQVariant::String);
- item = addItemInfo( group, "Dimensions", i18n("Dimensions"), QVariant::Size );
+ item = addItemInfo( group, "Dimensions", i18n("Dimensions"), TQVariant::Size );
setHint( item, KFileMimeTypeInfo::Size );
setUnit( item, KFileMimeTypeInfo::Pixels );
- item = addItemInfo(group, "BitDepth", i18n("Bit Depth"), QVariant::Int);
+ item = addItemInfo(group, "BitDepth", i18n("Bit Depth"), TQVariant::Int);
setUnit(item, KFileMimeTypeInfo::BitsPerPixel);
}
@@ -73,14 +73,14 @@ bool KGifPlugin::readInfo( KFileMetaInfo& info, uint what )
kdDebug(7034) << "gif KFileMetaInfo readInfo\n";
- QFile file(info.path());
+ TQFile file(info.path());
if (!file.open(IO_ReadOnly)) {
- kdDebug(7034) << "Couldn't open " << QFile::encodeName(info.path()) << endl;
+ kdDebug(7034) << "Couldn't open " << TQFile::encodeName(info.path()) << endl;
return false;
}
- QDataStream fstream(&file);
+ TQDataStream fstream(&file);
bool isGIF87a = false;
char magic[7];
@@ -92,7 +92,7 @@ bool KGifPlugin::readInfo( KFileMetaInfo& info, uint what )
magic[6] = 0x00; // null terminate
// I have special requirements...
- fstream.setByteOrder( QDataStream::LittleEndian );
+ fstream.setByteOrder( TQDataStream::LittleEndian );
fstream >> width;
fstream >> height;
fstream >> miscInfo;
@@ -108,7 +108,7 @@ bool KGifPlugin::readInfo( KFileMetaInfo& info, uint what )
appendItem( group, "Version", i18n("Unknown") );
}
- appendItem( group, "Dimensions", QSize(width, height) );
+ appendItem( group, "Dimensions", TQSize(width, height) );
if ( isGIF87a ) {
appendItem( group, "BitDepth", ( (miscInfo & 0x07) + 1) );
diff --git a/kfile-plugins/gif/kfile_gif.h b/kfile-plugins/gif/kfile_gif.h
index 6f932f37..f4c0be51 100644
--- a/kfile-plugins/gif/kfile_gif.h
+++ b/kfile-plugins/gif/kfile_gif.h
@@ -22,14 +22,14 @@
#include <kfilemetainfo.h>
#include <kurl.h>
-class QStringList;
+class TQStringList;
class KGifPlugin: public KFilePlugin
{
Q_OBJECT
public:
- KGifPlugin( QObject *parent, const char *name, const QStringList& args );
+ KGifPlugin( TQObject *parent, const char *name, const TQStringList& args );
virtual bool readInfo ( KFileMetaInfo& info, uint what );
};