summaryrefslogtreecommitdiffstats
path: root/juk/playermanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'juk/playermanager.cpp')
-rw-r--r--juk/playermanager.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/juk/playermanager.cpp b/juk/playermanager.cpp
index 9f784822..19647278 100644
--- a/juk/playermanager.cpp
+++ b/juk/playermanager.cpp
@@ -25,8 +25,8 @@
#include <kdebug.h>
#include <klocale.h>
-#include <qslider.h>
-#include <qtimer.h>
+#include <tqslider.h>
+#include <tqtimer.h>
#include <math.h>
@@ -186,30 +186,30 @@ int PlayerManager::position() const
return player()->position();
}
-QStringList PlayerManager::trackProperties()
+TQStringList PlayerManager::trackProperties()
{
return FileHandle::properties();
}
-QString PlayerManager::trackProperty(const QString &property) const
+TQString PlayerManager::trackProperty(const TQString &property) const
{
if(!playing() && !paused())
- return QString::null;
+ return TQString::null;
return m_file.property(property);
}
-QPixmap PlayerManager::trackCover(const QString &size) const
+TQPixmap PlayerManager::trackCover(const TQString &size) const
{
if(!playing() && !paused())
- return QPixmap();
+ return TQPixmap();
if(size.lower() == "small")
return m_file.coverInfo()->pixmap(CoverInfo::Thumbnail);
if(size.lower() == "large")
return m_file.coverInfo()->pixmap(CoverInfo::FullSize);
- return QPixmap();
+ return TQPixmap();
}
FileHandle PlayerManager::playingFile() const
@@ -217,12 +217,12 @@ FileHandle PlayerManager::playingFile() const
return m_file;
}
-QString PlayerManager::playingString() const
+TQString PlayerManager::playingString() const
{
if(!playing())
- return QString::null;
+ return TQString::null;
- QString str = m_file.tag()->artist() + " - " + m_file.tag()->title();
+ TQString str = m_file.tag()->artist() + " - " + m_file.tag()->title();
if(m_file.tag()->artist().isEmpty())
str = m_file.tag()->title();
@@ -239,11 +239,11 @@ void PlayerManager::setStatusLabel(StatusLabel *label)
m_statusLabel = label;
}
-KSelectAction *PlayerManager::playerSelectAction(QObject *parent) // static
+KSelectAction *PlayerManager::playerSelectAction(TQObject *parent) // static
{
KSelectAction *action = 0;
action = new KSelectAction(i18n("&Output To"), 0, parent, "outputSelect");
- QStringList l;
+ TQStringList l;
#if HAVE_ARTS
l << i18n("aRts");
@@ -317,7 +317,7 @@ void PlayerManager::play(const FileHandle &file)
emit signalPlay();
}
-void PlayerManager::play(const QString &file)
+void PlayerManager::play(const TQString &file)
{
CollectionListItem *item = CollectionList::instance()->lookup(file);
if(item) {
@@ -550,14 +550,14 @@ void PlayerManager::slotPollPlay()
m_noSeek = false;
}
-void PlayerManager::slotSetOutput(const QString &system)
+void PlayerManager::slotSetOutput(const TQString &system)
{
stop();
setOutput(system);
setup();
}
-void PlayerManager::setOutput(const QString &system)
+void PlayerManager::setOutput(const TQString &system)
{
delete m_player;
if(system == i18n("aRts"))
@@ -642,12 +642,12 @@ void PlayerManager::setup()
m_sliderAction = action<SliderAction>("trackPositionAction");
- connect(m_sliderAction, SIGNAL(signalPositionChanged(int)),
- this, SLOT(seekPosition(int)));
- connect(m_sliderAction->trackPositionSlider(), SIGNAL(valueChanged(int)),
- this, SLOT(slotUpdateTime(int)));
- connect(m_sliderAction, SIGNAL(signalVolumeChanged(int)),
- this, SLOT(slotSetVolume(int)));
+ connect(m_sliderAction, TQT_SIGNAL(signalPositionChanged(int)),
+ this, TQT_SLOT(seekPosition(int)));
+ connect(m_sliderAction->trackPositionSlider(), TQT_SIGNAL(valueChanged(int)),
+ this, TQT_SLOT(slotUpdateTime(int)));
+ connect(m_sliderAction, TQT_SIGNAL(signalVolumeChanged(int)),
+ this, TQT_SLOT(slotSetVolume(int)));
// Call this method manually to avoid warnings.
@@ -655,7 +655,7 @@ void PlayerManager::setup()
if(outputAction) {
setOutput(static_cast<KSelectAction *>(outputAction)->currentText());
- connect(outputAction, SIGNAL(activated(const QString &)), this, SLOT(slotSetOutput(const QString &)));
+ connect(outputAction, TQT_SIGNAL(activated(const TQString &)), this, TQT_SLOT(slotSetOutput(const TQString &)));
}
else
m_player = createPlayer();
@@ -672,11 +672,11 @@ void PlayerManager::setup()
m_player->setVolume(volume);
- m_timer = new QTimer(this, "play timer");
- connect(m_timer, SIGNAL(timeout()), this, SLOT(slotPollPlay()));
+ m_timer = new TQTimer(this, "play timer");
+ connect(m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotPollPlay()));
}
-QString PlayerManager::randomPlayMode() const
+TQString PlayerManager::randomPlayMode() const
{
if(action<KToggleAction>("randomPlay")->isChecked())
return "Random";
@@ -685,7 +685,7 @@ QString PlayerManager::randomPlayMode() const
return "NoRandom";
}
-void PlayerManager::setRandomPlayMode(const QString &randomMode)
+void PlayerManager::setRandomPlayMode(const TQString &randomMode)
{
if(randomMode.lower() == "random")
action<KToggleAction>("randomPlay")->setChecked(true);