diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-17 22:17:08 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-17 22:17:08 +0000 |
commit | f138d74fe16092003b06f5bde9663841929cde7f (patch) | |
tree | e9c497a0e59bc7d34264ac9404740d2ea76f3de4 /kttsd/libkttsd/testplayer.cpp | |
parent | 3a3c4b256baee79bdcfe72c5e01b9ded9b525900 (diff) | |
download | tdeaccessibility-f138d74fe16092003b06f5bde9663841929cde7f.tar.gz tdeaccessibility-f138d74fe16092003b06f5bde9663841929cde7f.zip |
TQt4 port kdeaccessibility
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaccessibility@1237325 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kttsd/libkttsd/testplayer.cpp')
-rw-r--r-- | kttsd/libkttsd/testplayer.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kttsd/libkttsd/testplayer.cpp b/kttsd/libkttsd/testplayer.cpp index 1050ec2..155f2aa 100644 --- a/kttsd/libkttsd/testplayer.cpp +++ b/kttsd/libkttsd/testplayer.cpp @@ -22,7 +22,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. ******************************************************************************/ -// Qt includes. +// TQt includes. #include <tqfile.h> // KDE includes. @@ -44,9 +44,9 @@ /** * Constructor. */ -TestPlayer::TestPlayer(TQObject *parent, const char *name, +TestPlayer::TestPlayer(TQObject *tqparent, const char *name, const int playerOption, const float audioStretchFactor, const TQString &sinkName) : - TQObject(parent, name) + TQObject(tqparent, name) { m_playerOption = playerOption; m_audioStretchFactor = audioStretchFactor; @@ -103,7 +103,7 @@ void TestPlayer::play(const TQString &waveFile) m_stretcher = new Stretcher(); if (m_stretcher->stretch(playFile, tmpFile, m_audioStretchFactor)) { - while (m_stretcher->getState() != Stretcher::ssFinished) qApp->processEvents(); + while (m_stretcher->getState() != Stretcher::ssFinished) tqApp->processEvents(); playFile = m_stretcher->getOutFilename(); } delete m_stretcher; @@ -123,7 +123,7 @@ void TestPlayer::play(const TQString &waveFile) // cleaning up the play object. However, because we've been called from DCOP, // this seems to be necessary. The call to processEvents is problematic because // it can cause re-entrancy. - while (m_player->playing()) qApp->processEvents(); + while (m_player->playing()) tqApp->processEvents(); // kdDebug() << "TestPlayer::play: stopping playback." << endl; m_player->stop(); delete m_player; @@ -162,7 +162,7 @@ Player* TestPlayer::createPlayerObject(int playerOption) } } KTrader::OfferList offers = KTrader::self()->query( - "KTTSD/AudioPlugin", TQString("DesktopEntryName == '%1'").arg(plugInName)); + "KTTSD/AudioPlugin", TQString("DesktopEntryName == '%1'").tqarg(plugInName)); if(offers.count() == 1) { |