summaryrefslogtreecommitdiffstats
path: root/noatun/library/player.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'noatun/library/player.cpp')
-rw-r--r--noatun/library/player.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/noatun/library/player.cpp b/noatun/library/player.cpp
index 7760d9a8..0b90952c 100644
--- a/noatun/library/player.cpp
+++ b/noatun/library/player.cpp
@@ -8,28 +8,28 @@
#include <klibloader.h>
#include <knotifyclient.h>
#include <klocale.h>
-#include <qfile.h>
+#include <tqfile.h>
enum ArtsPOS { posIdle=0, posPlaying, posPaused };
-Player::Player(QObject *parent) : QObject(parent, "Player"),
+Player::Player(TQObject *parent) : TQObject(parent, "Player"),
position(-1), mLoopStyle(None), firstTimeout(true)
{
mEngine=new Engine;
- connect(&filePos, SIGNAL(timeout()), SLOT(posTimeout()));
- connect(mEngine, SIGNAL(aboutToPlay()), this, SLOT(aboutToPlay()));
+ connect(&filePos, TQT_SIGNAL(timeout()), TQT_SLOT(posTimeout()));
+ connect(mEngine, TQT_SIGNAL(aboutToPlay()), this, TQT_SLOT(aboutToPlay()));
connect(mEngine,
- SIGNAL(receivedStreamMeta(const QString &, const QString &,
- const QString &, const QString &,
- const QString &, const QString &)),
- this, SLOT(
- slotUpdateStreamMeta(const QString &, const QString &,
- const QString &, const QString &,
- const QString &, const QString &))
+ TQT_SIGNAL(receivedStreamMeta(const TQString &, const TQString &,
+ const TQString &, const TQString &,
+ const TQString &, const TQString &)),
+ this, TQT_SLOT(
+ slotUpdateStreamMeta(const TQString &, const TQString &,
+ const TQString &, const TQString &,
+ const TQString &, const TQString &))
);
- connect(mEngine, SIGNAL(playingFailed()), this, SLOT(forward()));
+ connect(mEngine, TQT_SIGNAL(playingFailed()), this, TQT_SLOT(forward()));
handleButtons();
}
@@ -231,13 +231,13 @@ void Player::posTimeout()
emit timeout();
}
-QString Player::lengthString(int _position)
+TQString Player::lengthString(int _position)
{
if (!current())
- return QString("--:--/--:--");
+ return TQString("--:--/--:--");
- QString posString;
- QString lenString;
+ TQString posString;
+ TQString lenString;
int secs, seconds, minutes;
if (_position < 0)
@@ -352,9 +352,9 @@ void Player::aboutToPlay()
}
void Player::slotUpdateStreamMeta(
- const QString &streamName, const QString &streamGenre,
- const QString &streamUrl, const QString &streamBitrate,
- const QString &trackTitle, const QString &trackUrl)
+ const TQString &streamName, const TQString &streamGenre,
+ const TQString &streamUrl, const TQString &streamBitrate,
+ const TQString &trackTitle, const TQString &trackUrl)
{
PlaylistItem currentItem = napp->playlist()->current();
if(currentItem)