summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/avi/kfile_avi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kfile-plugins/avi/kfile_avi.cpp')
-rw-r--r--kfile-plugins/avi/kfile_avi.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kfile-plugins/avi/kfile_avi.cpp b/kfile-plugins/avi/kfile_avi.cpp
index 30919206..a7c2bc31 100644
--- a/kfile-plugins/avi/kfile_avi.cpp
+++ b/kfile-plugins/avi/kfile_avi.cpp
@@ -27,11 +27,11 @@
#include <kstringvalidator.h>
#include <kdebug.h>
-#include <qdict.h>
-#include <qvalidator.h>
-#include <qcstring.h>
-#include <qfile.h>
-#include <qdatetime.h>
+#include <tqdict.h>
+#include <tqvalidator.h>
+#include <tqcstring.h>
+#include <tqfile.h>
+#include <tqdatetime.h>
#if !defined(__osf__)
#include <inttypes.h>
@@ -45,8 +45,8 @@ typedef KGenericFactory<KAviPlugin> AviFactory;
K_EXPORT_COMPONENT_FACTORY(kfile_avi, AviFactory( "kfile_avi" ))
-KAviPlugin::KAviPlugin(QObject *parent, const char *name,
- const QStringList &args)
+KAviPlugin::KAviPlugin(TQObject *parent, const char *name,
+ const TQStringList &args)
: KFilePlugin(parent, name, args)
{
@@ -58,16 +58,16 @@ KAviPlugin::KAviPlugin(QObject *parent, const char *name,
KFileMimeTypeInfo::ItemInfo* item;
- item = addItemInfo(group, "Length", i18n("Length"), QVariant::Int);
+ item = addItemInfo(group, "Length", i18n("Length"), TQVariant::Int);
setUnit(item, KFileMimeTypeInfo::Seconds);
- item = addItemInfo(group, "Resolution", i18n("Resolution"), QVariant::Size);
+ item = addItemInfo(group, "Resolution", i18n("Resolution"), TQVariant::Size);
- item = addItemInfo(group, "Frame rate", i18n("Frame Rate"), QVariant::Int);
+ item = addItemInfo(group, "Frame rate", i18n("Frame Rate"), TQVariant::Int);
setSuffix(item, i18n("fps"));
- item = addItemInfo(group, "Video codec", i18n("Video Codec"), QVariant::String);
- item = addItemInfo(group, "Audio codec", i18n("Audio Codec"), QVariant::String);
+ item = addItemInfo(group, "Video codec", i18n("Video Codec"), TQVariant::String);
+ item = addItemInfo(group, "Audio codec", i18n("Audio Codec"), TQVariant::String);
}
@@ -486,13 +486,13 @@ bool KAviPlugin::readInfo( KFileMetaInfo& info, uint /*what*/)
// open file, set up stream and set endianness
if (!f.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 dstream(&file);
+ //TQDataStream dstream(&file);
dstream.setDevice(&f);
- dstream.setByteOrder(QDataStream::LittleEndian);
+ dstream.setByteOrder(TQDataStream::LittleEndian);
/***************************************************/
@@ -514,7 +514,7 @@ bool KAviPlugin::readInfo( KFileMetaInfo& info, uint /*what*/)
if (0 != avih_microsecperframe) {
appendItem(group, "Frame rate", int(1000000 / avih_microsecperframe));
}
- appendItem(group, "Resolution", QSize(avih_width, avih_height));
+ appendItem(group, "Resolution", TQSize(avih_width, avih_height));
// work out and add length
uint64_t mylength = (uint64_t) ((float) avih_totalframes * (float) avih_microsecperframe / 1000000.0);