diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
commit | e654398e46e37abf457b2b1122ab898d2c51c49f (patch) | |
tree | d39ee6440f3c3663c3ead84a2d4cc2d034667e96 /kfile-plugins/avi | |
parent | e4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff) | |
download | tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kfile-plugins/avi')
-rw-r--r-- | kfile-plugins/avi/kfile_avi.cpp | 32 | ||||
-rw-r--r-- | kfile-plugins/avi/kfile_avi.h | 8 |
2 files changed, 20 insertions, 20 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); diff --git a/kfile-plugins/avi/kfile_avi.h b/kfile-plugins/avi/kfile_avi.h index 298fca31..db60fc72 100644 --- a/kfile-plugins/avi/kfile_avi.h +++ b/kfile-plugins/avi/kfile_avi.h @@ -21,7 +21,7 @@ #define __KFILE_AVI_H__ #include <kfilemetainfo.h> -#include <qfile.h> +#include <tqfile.h> #if !defined(__osf__) #include <inttypes.h> @@ -39,7 +39,7 @@ class KAviPlugin: public KFilePlugin Q_OBJECT public: - KAviPlugin( QObject *parent, const char *name, const QStringList& args ); + KAviPlugin( TQObject *parent, const char *name, const TQStringList& args ); @@ -58,8 +58,8 @@ private: // methods to sort out human readable names for the codecs const char * resolve_audio(uint16_t id); - QFile f; - QDataStream dstream; + TQFile f; + TQDataStream dstream; // AVI header information bool done_avih; |