summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/theora
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
commite654398e46e37abf457b2b1122ab898d2c51c49f (patch)
treed39ee6440f3c3663c3ead84a2d4cc2d034667e96 /kfile-plugins/theora
parente4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff)
downloadtdemultimedia-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/theora')
-rw-r--r--kfile-plugins/theora/kfile_theora.cpp26
-rw-r--r--kfile-plugins/theora/kfile_theora.h2
2 files changed, 14 insertions, 14 deletions
diff --git a/kfile-plugins/theora/kfile_theora.cpp b/kfile-plugins/theora/kfile_theora.cpp
index 0a687cd7..d426cc7f 100644
--- a/kfile-plugins/theora/kfile_theora.cpp
+++ b/kfile-plugins/theora/kfile_theora.cpp
@@ -18,7 +18,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include <qfile.h>
+#include <tqfile.h>
#include <config.h>
#include "kfile_theora.h"
@@ -56,8 +56,8 @@ typedef KGenericFactory<theoraPlugin> theoraFactory;
K_EXPORT_COMPONENT_FACTORY(kfile_theora, theoraFactory( "kfile_theora" ))
-theoraPlugin::theoraPlugin(QObject *parent, const char *name,
- const QStringList &args)
+theoraPlugin::theoraPlugin(TQObject *parent, const char *name,
+ const TQStringList &args)
: KFilePlugin(parent, name, args)
{
// kdDebug(7034) << "theora plugin\n";
@@ -71,25 +71,25 @@ theoraPlugin::theoraPlugin(QObject *parent, const char *name,
group = addGroupInfo(info, "Video", i18n("Video Details"));
setAttributes(group, 0);
- item = addItemInfo(group, "Length", i18n("Length"), QVariant::Int);
+ item = addItemInfo(group, "Length", i18n("Length"), TQVariant::Int);
setUnit(item, KFileMimeTypeInfo::Seconds);
setHint(item, KFileMimeTypeInfo::Length);
- item = addItemInfo(group, "Resolution", i18n("Resolution"), QVariant::Size);
+ item = addItemInfo(group, "Resolution", i18n("Resolution"), TQVariant::Size);
setHint(item, KFileMimeTypeInfo::Size);
setUnit(item, KFileMimeTypeInfo::Pixels);
- item = addItemInfo(group, "FrameRate", i18n("Frame Rate"), QVariant::Int);
+ item = addItemInfo(group, "FrameRate", i18n("Frame Rate"), TQVariant::Int);
setUnit(item, KFileMimeTypeInfo::FramesPerSecond);
- item = addItemInfo(group, "TargetBitrate", i18n("Target Bitrate"), QVariant::Int);
+ item = addItemInfo(group, "TargetBitrate", i18n("Target Bitrate"), TQVariant::Int);
setUnit(item, KFileMimeTypeInfo::Bitrate);
- item = addItemInfo(group, "Quality", i18n("Quality"), QVariant::Int);
+ item = addItemInfo(group, "Quality", i18n("Quality"), TQVariant::Int);
// audio group
group = addGroupInfo(info, "Audio", i18n("Audio Details"));
setAttributes(group, 0);
- addItemInfo(group, "Channels", i18n("Channels"), QVariant::Int);
+ addItemInfo(group, "Channels", i18n("Channels"), TQVariant::Int);
- item = addItemInfo(group, "SampleRate", i18n("Sample Rate"), QVariant::Int);
+ item = addItemInfo(group, "SampleRate", i18n("Sample Rate"), TQVariant::Int);
setUnit(item, KFileMimeTypeInfo::Hertz);
}
@@ -133,10 +133,10 @@ bool theoraPlugin::readInfo( KFileMetaInfo& info, uint what)
if ( info.path().isEmpty() ) // remote file
return false;
- fp = fopen(QFile::encodeName(info.path()),"rb");
+ fp = fopen(TQFile::encodeName(info.path()),"rb");
if (!fp)
{
- kdDebug(7034) << "Unable to open " << QFile::encodeName(info.path()) << endl;
+ kdDebug(7034) << "Unable to open " << TQFile::encodeName(info.path()) << endl;
return false;
}
@@ -292,7 +292,7 @@ bool theoraPlugin::readInfo( KFileMetaInfo& info, uint what)
stream_fps=t_info.fps_numerator/t_info.fps_denominator;
KFileMetaInfoGroup videogroup = appendGroup(info, "Video");
appendItem(videogroup, "Length", int (duration));
- appendItem(videogroup, "Resolution", QSize(t_info.frame_width,t_info.frame_height));
+ appendItem(videogroup, "Resolution", TQSize(t_info.frame_width,t_info.frame_height));
appendItem(videogroup, "FrameRate", stream_fps);
appendItem(videogroup, "Quality", (int) t_info.quality);
diff --git a/kfile-plugins/theora/kfile_theora.h b/kfile-plugins/theora/kfile_theora.h
index 3d2c224e..2bc9fd54 100644
--- a/kfile-plugins/theora/kfile_theora.h
+++ b/kfile-plugins/theora/kfile_theora.h
@@ -33,7 +33,7 @@ class theoraPlugin: public KFilePlugin
Q_OBJECT
public:
- theoraPlugin( QObject *parent, const char *name, const QStringList& args );
+ theoraPlugin( TQObject *parent, const char *name, const TQStringList& args );
virtual bool readInfo( KFileMetaInfo& info, uint what);
};