From e654398e46e37abf457b2b1122ab898d2c51c49f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:43:15 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- krec/ogg_export/krecexport_ogg.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'krec/ogg_export/krecexport_ogg.cpp') diff --git a/krec/ogg_export/krecexport_ogg.cpp b/krec/ogg_export/krecexport_ogg.cpp index 6a5d5735..e2b495dd 100644 --- a/krec/ogg_export/krecexport_ogg.cpp +++ b/krec/ogg_export/krecexport_ogg.cpp @@ -22,12 +22,12 @@ #include #include -#include -#include +#include +#include #include #include #include -#include +#include #include #include #include @@ -36,7 +36,7 @@ K_EXPORT_COMPONENT_FACTORY( libkrecexport_ogg, KGenericFactory ) KRecExport_OGG krecExportOGG( 0 ); -KRecExport_OGG::KRecExport_OGG( QObject* p, const char* n, const QStringList& ) +KRecExport_OGG::KRecExport_OGG( TQObject* p, const char* n, const TQStringList& ) : KRecExportItem( p,n ) , _file( 0 ) , init_done( false ) @@ -54,14 +54,14 @@ kdDebug( 60005 ) << k_funcinfo << endl; return new KRecExport_OGG( 0 ); } -QStringList KRecExport_OGG::extensions() { +TQStringList KRecExport_OGG::extensions() { //kdDebug( 60005 ) << k_funcinfo << endl; - QStringList tmp; + TQStringList tmp; tmp << "*.ogg" << "*.OGG"; return tmp; } -bool KRecExport_OGG::initialize( const QString &filename ) { +bool KRecExport_OGG::initialize( const TQString &filename ) { kdDebug( 60005 ) << k_funcinfo << endl; if ( !_file && !( samplingRate()!=44100 && bits()!=16 && channels()!=2 && @@ -76,7 +76,7 @@ kdDebug( 60005 ) << k_funcinfo << endl; " the corresponding section of the audiocd:/ configuration. Make use" \ " of the Control Center to configure these settings." ), i18n( "Quality Configuration" ), "qualityinfo_ogg" ); - _file = new QFile( filename ); + _file = new TQFile( filename ); if ( _file->open( IO_Raw|IO_WriteOnly ) ) { if ( ! init_done ) { setOggParameters(); @@ -95,7 +95,7 @@ kdDebug( 60005 ) << k_funcinfo << endl; vorbis_comment_add_tag ( &vc, const_cast( "kde-encoder" ), const_cast( "KRec" ) ); if ( write_vorbis_comments ) { - QDateTime dt = QDateTime::currentDateTime(); + TQDateTime dt = TQDateTime::currentDateTime(); vorbis_comment_add_tag ( &vc, const_cast( "title" ), const_cast( "" ) ); vorbis_comment_add_tag ( &vc, const_cast( "artist" ), @@ -132,7 +132,7 @@ bool KRecExport_OGG::process() { //kdDebug( 60005 ) << k_funcinfo << endl; if ( _file ) { if ( running() ) { - QByteArray bytearray( 4096 ); + TQByteArray bytearray( 4096 ); emit getData( bytearray ); float **buffer = vorbis_analysis_buffer( &vd, bytearray.size() >> 2 ); @@ -169,7 +169,7 @@ bool KRecExport_OGG::process() { } } } - QTimer::singleShot( 10, this, SLOT( process() ) ); + TQTimer::singleShot( 10, this, TQT_SLOT( process() ) ); } return true; } else return false; -- cgit v1.2.1