diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
commit | c663b6440964f6ac48027143ac9e63298991f9d0 (patch) | |
tree | 6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /khotkeys/arts/soundrecorder_arts.cpp | |
parent | a061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff) | |
download | tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'khotkeys/arts/soundrecorder_arts.cpp')
-rw-r--r-- | khotkeys/arts/soundrecorder_arts.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/khotkeys/arts/soundrecorder_arts.cpp b/khotkeys/arts/soundrecorder_arts.cpp index 2b1563787..e600e1730 100644 --- a/khotkeys/arts/soundrecorder_arts.cpp +++ b/khotkeys/arts/soundrecorder_arts.cpp @@ -32,7 +32,7 @@ #include <kdebug.h> #include <klocale.h> -#include <qtimer.h> +#include <tqtimer.h> #define FS 11025 @@ -42,7 +42,7 @@ extern "C" KDE_EXPORT -KHotKeys::SoundRecorder* khotkeys_soundrecorder_create( QObject* parent, const char* name ) +KHotKeys::SoundRecorder* khotkeys_soundrecorder_create( TQObject* parent, const char* name ) { return new KHotKeys::SoundRecorderArts( parent, name ); } @@ -51,7 +51,7 @@ namespace KHotKeys { -SoundRecorderArts::SoundRecorderArts(QObject *parent, const char *name) +SoundRecorderArts::SoundRecorderArts(TQObject *parent, const char *name) : SoundRecorder(parent, name) , m_dis(new KArtsDispatcher( this) ), m_server( new KArtsServer( this ) ) , @@ -61,7 +61,7 @@ SoundRecorderArts::SoundRecorderArts(QObject *parent, const char *name) ( void ) check; m_recStream->usePolling( false ); - connect( m_recStream, SIGNAL(data (QByteArray &)), this, SLOT(slotDataReceived(QByteArray& ))); + connect( m_recStream, TQT_SIGNAL(data (TQByteArray &)), this, TQT_SLOT(slotDataReceived(TQByteArray& ))); } SoundRecorderArts::~SoundRecorderArts() @@ -80,7 +80,7 @@ void SoundRecorderArts::start() void SoundRecorderArts::stop() { m_recStream->stop(); - QTimer::singleShot(400,this,SLOT(slotEmitSignal())); + TQTimer::singleShot(400,this,TQT_SLOT(slotEmitSignal())); } void SoundRecorderArts::abort() @@ -95,7 +95,7 @@ Sound SoundRecorderArts::sound() Sound s; uint BytePS=BITS/8; uint length=m_data.size()/BytePS; - QMemArray<Q_INT32> da(length); + TQMemArray<Q_INT32> da(length); s.max=0; s._fs=FS; for(uint f=0;f<length; f++) @@ -119,7 +119,7 @@ Sound SoundRecorderArts::sound() return s; } -void SoundRecorderArts::slotDataReceived(QByteArray & data) +void SoundRecorderArts::slotDataReceived(TQByteArray & data) { uint pos=m_data.size(); m_data.resize(pos + data.size()); |