summaryrefslogtreecommitdiffstats
path: root/krec/krecexport_wave.cpp
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 /krec/krecexport_wave.cpp
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 'krec/krecexport_wave.cpp')
-rw-r--r--krec/krecexport_wave.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/krec/krecexport_wave.cpp b/krec/krecexport_wave.cpp
index 80ea63d7..6224283e 100644
--- a/krec/krecexport_wave.cpp
+++ b/krec/krecexport_wave.cpp
@@ -18,15 +18,15 @@
#include <kdebug.h>
#include <ktempfile.h>
-#include <qfile.h>
-#include <qtimer.h>
+#include <tqfile.h>
+#include <tqtimer.h>
#include <kgenericfactory.h>
K_EXPORT_COMPONENT_FACTORY( libkrecexport_wave, KGenericFactory<KRecExport_Wave> )
KRecExport_Wave krecExportWave( 0 );
-KRecExport_Wave::KRecExport_Wave( QObject* p, const char* n, const QStringList& )
+KRecExport_Wave::KRecExport_Wave( TQObject* p, const char* n, const TQStringList& )
: KRecExportItem( p,n )
, _file( 0 )
{
@@ -43,17 +43,17 @@ kdDebug( 60005 ) << k_funcinfo << endl;
return new KRecExport_Wave( 0 );
}
-QStringList KRecExport_Wave::extensions() {
+TQStringList KRecExport_Wave::extensions() {
//kdDebug( 60005 ) << k_funcinfo << endl;
- QStringList tmp;
+ TQStringList tmp;
tmp << "*.wav" << "*.WAV";
return tmp;
}
-bool KRecExport_Wave::initialize( const QString &filename ) {
+bool KRecExport_Wave::initialize( const TQString &filename ) {
kdDebug( 60005 ) << k_funcinfo << endl;
if ( !_file ) {
- _file = new QFile( filename );
+ _file = new TQFile( filename );
if ( _file->open( IO_Raw|IO_WriteOnly ) ) {
/// Write an empty Wave-header...
for ( int i=0; i<44; i++ )
@@ -66,10 +66,10 @@ bool KRecExport_Wave::process() {
//kdDebug( 60005 ) << k_funcinfo << running << endl;
if ( _file ) {
if ( running() ) {
- QByteArray bytearray( 4096 );
+ TQByteArray bytearray( 4096 );
emit getData( bytearray );
_file->writeBlock( bytearray );
- QTimer::singleShot( 10, this, SLOT( process() ) );
+ TQTimer::singleShot( 10, this, TQT_SLOT( process() ) );
}
return true;
} else return false;