summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/theora/kfile_theora.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kfile-plugins/theora/kfile_theora.cpp')
-rw-r--r--kfile-plugins/theora/kfile_theora.cpp26
1 files changed, 13 insertions, 13 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);