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/mp3_export/krecexport_mp3.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'krec/mp3_export/krecexport_mp3.cpp') diff --git a/krec/mp3_export/krecexport_mp3.cpp b/krec/mp3_export/krecexport_mp3.cpp index 85418688..0c4e8dc8 100644 --- a/krec/mp3_export/krecexport_mp3.cpp +++ b/krec/mp3_export/krecexport_mp3.cpp @@ -18,12 +18,12 @@ #include #include -#include -#include +#include +#include #include #include #include -#include +#include #include #include #include @@ -44,7 +44,7 @@ K_EXPORT_COMPONENT_FACTORY( libkrecexport_mp3, KGenericFactory ) KRecExport_MP3 krecExportMP3( 0 ); -KRecExport_MP3::KRecExport_MP3( QObject* p, const char* n, const QStringList& ) +KRecExport_MP3::KRecExport_MP3( TQObject* p, const char* n, const TQStringList& ) : KRecExportItem( p,n ) , _file( 0 ) , error_occurred( false ) @@ -63,14 +63,14 @@ kdDebug( 60005 ) << k_funcinfo << endl; return new KRecExport_MP3( 0 ); } -QStringList KRecExport_MP3::extensions() { +TQStringList KRecExport_MP3::extensions() { //kdDebug( 60005 ) << k_funcinfo << endl; - QStringList tmp; + TQStringList tmp; tmp << "*.wav" << "*.WAV"; return tmp; } -bool KRecExport_MP3::initialize( const QString &filename ) { +bool KRecExport_MP3::initialize( const TQString &filename ) { kdDebug( 60005 ) << k_funcinfo << endl; if ( !_file && !( bits()!=16 && channels()!=2 && @@ -85,7 +85,7 @@ kdDebug( 60005 ) << k_funcinfo << endl; " configuration. Make use" \ " of the Control Center to configure these settings." ), i18n( "Quality Configuration" ), "qualityinfo_mp3" ); - _file = new QFile( filename ); + _file = new TQFile( filename ); if ( _file->open( IO_Raw|IO_WriteOnly ) ) { if ( ! init_done ) { gfp = lame_init(); @@ -115,7 +115,7 @@ bool KRecExport_MP3::process() { //kdDebug( 60005 ) << k_funcinfo << running << endl; if ( _file ) { if ( running() ) { - QByteArray bytearray( 4096 ); + TQByteArray bytearray( 4096 ); emit getData( bytearray ); int mp3bytes = lame_encode_buffer_interleaved( gfp, reinterpret_cast( bytearray.data() ), @@ -128,7 +128,7 @@ bool KRecExport_MP3::process() { i18n( lame_error[ code ] ) ); error_occurred = true; } - QTimer::singleShot( 10, this, SLOT( process() ) ); + TQTimer::singleShot( 10, this, TQT_SLOT( process() ) ); } return true; } else return false; -- cgit v1.2.1