From c663b6440964f6ac48027143ac9e63298991f9d0 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:33:34 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- khotkeys/arts/soundrecorder_arts.cpp | 14 +++++++------- khotkeys/arts/soundrecorder_arts.h | 10 +++++----- khotkeys/arts/voicerecorder_arts.cpp | 6 +++--- 3 files changed, 15 insertions(+), 15 deletions(-) (limited to 'khotkeys/arts') 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 #include -#include +#include #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 da(length); + TQMemArray da(length); s.max=0; s._fs=FS; for(uint f=0;f +#include #include "sound.h" class KAudioRecordStream ; @@ -40,7 +40,7 @@ class SoundRecorderArts : public SoundRecorder { Q_OBJECT public: - SoundRecorderArts(QObject *parent = 0, const char *name = 0); + SoundRecorderArts(TQObject *parent = 0, const char *name = 0); virtual ~SoundRecorderArts(); virtual void start(); @@ -49,12 +49,12 @@ public: virtual Sound sound(); private slots: - void slotDataReceived(QByteArray &data); + void slotDataReceived(TQByteArray &data); void slotEmitSignal(); private: - QByteArray m_data; - QObject *m_dis; + TQByteArray m_data; + TQObject *m_dis; KArtsServer *m_server; KAudioRecordStream *m_recStream; }; diff --git a/khotkeys/arts/voicerecorder_arts.cpp b/khotkeys/arts/voicerecorder_arts.cpp index 39cd38cfa..8b5c752ad 100644 --- a/khotkeys/arts/voicerecorder_arts.cpp +++ b/khotkeys/arts/voicerecorder_arts.cpp @@ -8,8 +8,8 @@ ****************************************************************************/ -#include -#include +#include +#include #ifdef HAVE_CONFIG_H #include @@ -26,7 +26,7 @@ extern "C" KDE_EXPORT -void khotkeys_voicerecorder_arts_play( const QString& file ) +void khotkeys_voicerecorder_arts_play( const TQString& file ) { KHotKeys::VoiceRecorder::arts_play_fun check = khotkeys_voicerecorder_arts_play; // check the type matches ( void ) check; -- cgit v1.2.1