summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/segment/segmentcanvas/AudioPreviewThread.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
commit11f31c37e5fa4889d9989f10272f44845449cb7b (patch)
tree4383da04a76c497950d957fc6120b0fd0d9082c2 /src/gui/editors/segment/segmentcanvas/AudioPreviewThread.cpp
parent832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff)
downloadrosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.tar.gz
rosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.zip
Initial TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1172292 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/editors/segment/segmentcanvas/AudioPreviewThread.cpp')
-rw-r--r--src/gui/editors/segment/segmentcanvas/AudioPreviewThread.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/gui/editors/segment/segmentcanvas/AudioPreviewThread.cpp b/src/gui/editors/segment/segmentcanvas/AudioPreviewThread.cpp
index ae64134..b686b35 100644
--- a/src/gui/editors/segment/segmentcanvas/AudioPreviewThread.cpp
+++ b/src/gui/editors/segment/segmentcanvas/AudioPreviewThread.cpp
@@ -28,11 +28,11 @@
#include "base/RealTime.h"
#include "sound/AudioFileManager.h"
#include "sound/PeakFileManager.h"
-#include <qapplication.h>
-#include <qevent.h>
-#include <qmutex.h>
-#include <qobject.h>
-#include <qthread.h>
+#include <tqapplication.h>
+#include <tqevent.h>
+#include <tqmutex.h>
+#include <tqobject.h>
+#include <tqthread.h>
namespace Rosegarden
@@ -59,8 +59,8 @@ AudioPreviewThread::run()
if (m_queue.empty()) {
if (m_emptyQueueListener && !emptyQueueSignalled) {
- QApplication::postEvent(m_emptyQueueListener,
- new QCustomEvent(AudioPreviewQueueEmpty, 0));
+ TQApplication::postEvent(m_emptyQueueListener,
+ new TQCustomEvent(AudioPreviewQueueEmpty, 0));
emptyQueueSignalled = true;
}
@@ -159,10 +159,10 @@ AudioPreviewThread::process()
unsigned int channels =
m_manager->getAudioFile(req.audioFileId)->getChannels();
m_results[token] = ResultsPair(channels, results);
- QObject *notify = req.notify;
- QApplication::postEvent
+ TQObject *notify = req.notify;
+ TQApplication::postEvent
(notify,
- new QCustomEvent(AudioPreviewReady, (void *)token));
+ new TQCustomEvent(AudioPreviewReady, (void *)token));
}
m_mutex.unlock();
@@ -261,7 +261,7 @@ AudioPreviewThread::getPreview(int token, unsigned int &channels,
return ;
}
-const QEvent::Type AudioPreviewThread::AudioPreviewReady = QEvent::Type(QEvent::User + 1);
-const QEvent::Type AudioPreviewThread::AudioPreviewQueueEmpty = QEvent::Type(QEvent::User + 2);
+const TQEvent::Type AudioPreviewThread::AudioPreviewReady = TQEvent::Type(TQEvent::User + 1);
+const TQEvent::Type AudioPreviewThread::AudioPreviewQueueEmpty = TQEvent::Type(TQEvent::User + 2);
}