summaryrefslogtreecommitdiffstats
path: root/noatun/library/noatuntags/tags.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'noatun/library/noatuntags/tags.cpp')
-rw-r--r--noatun/library/noatuntags/tags.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/noatun/library/noatuntags/tags.cpp b/noatun/library/noatuntags/tags.cpp
index 38fd4abf..268f7bd9 100644
--- a/noatun/library/noatuntags/tags.cpp
+++ b/noatun/library/noatuntags/tags.cpp
@@ -1,22 +1,22 @@
#include "tags.h"
#include "tagsgetter.h"
#include <klocale.h>
-#include <qslider.h>
-#include <qspinbox.h>
+#include <tqslider.h>
+#include <tqspinbox.h>
#include <kconfig.h>
-#include <qlayout.h>
-#include <qhbox.h>
-#include <qlabel.h>
-#include <qtimer.h>
+#include <tqlayout.h>
+#include <tqhbox.h>
+#include <tqlabel.h>
+#include <tqtimer.h>
#include <noatun/player.h>
-#include <qcheckbox.h>
+#include <tqcheckbox.h>
TagsGetter *Tags::getter=0;
TagsGetter::TagsGetter()
{
new Control(this);
- connect(napp->player(), SIGNAL(newSong()), SLOT(newSong()));
+ connect(napp->player(), TQT_SIGNAL(newSong()), TQT_SLOT(newSong()));
}
int TagsGetter::interval() const
@@ -50,7 +50,7 @@ void TagsGetter::getSongs()
startTimer(interval());
}
-void TagsGetter::timerEvent(QTimerEvent *)
+void TagsGetter::timerEvent(TQTimerEvent *)
{
if (!items.size())
{
@@ -115,7 +115,7 @@ void TagsGetter::associate(Tags *t)
tags.append(t);
sortPriority();
// getSongs();
- QTimer::singleShot(interval(), this, SLOT(getSongs()));
+ TQTimer::singleShot(interval(), this, TQT_SLOT(getSongs()));
}
void TagsGetter::sortPriority()
@@ -129,7 +129,7 @@ void TagsGetter::sortPriority()
lowest=i->mPriority;
}
- QPtrList<Tags> sorted;
+ TQPtrList<Tags> sorted;
while (tags.count())
{
// find the one equal to myself
@@ -183,41 +183,41 @@ Control::Control(TagsGetter *parent)
// todo
(void)I18N_NOOP("Rescan All Tags");
- QVBoxLayout *l=new QVBoxLayout(this);
- QCheckBox *onPlay;
+ TQVBoxLayout *l=new TQVBoxLayout(this);
+ TQCheckBox *onPlay;
{
- onPlay=new QCheckBox(i18n("Load tags &automatically"), this);
+ onPlay=new TQCheckBox(i18n("Load tags &automatically"), this);
l->addWidget(onPlay);
onPlay->show();
}
{
- QHBox *intervalLine=new QHBox(this);
+ TQHBox *intervalLine=new TQHBox(this);
l->addWidget(intervalLine);
l->addStretch();
- new QLabel(i18n(
+ new TQLabel(i18n(
"The time between each time noatun scans for a new file"
", and updates tags (e.g., ID3)",
"Interval:"), intervalLine);
- QSlider *slider=new QSlider(
+ TQSlider *slider=new TQSlider(
0, 2000, 100, 0, Horizontal, intervalLine
);
- QSpinBox *spin=new QSpinBox(
+ TQSpinBox *spin=new TQSpinBox(
0, 2000, 10, intervalLine
);
spin->setSuffix(i18n("Milliseconds", " ms"));
- connect(slider, SIGNAL(valueChanged(int)), spin, SLOT(setValue(int)));
- connect(spin, SIGNAL(valueChanged(int)), slider, SLOT(setValue(int)));
+ connect(slider, TQT_SIGNAL(valueChanged(int)), spin, TQT_SLOT(setValue(int)));
+ connect(spin, TQT_SIGNAL(valueChanged(int)), slider, TQT_SLOT(setValue(int)));
slider->setValue(parent->interval());
- connect(slider, SIGNAL(valueChanged(int)), parent, SLOT(setInterval(int)));
+ connect(slider, TQT_SIGNAL(valueChanged(int)), parent, TQT_SLOT(setInterval(int)));
- connect(onPlay, SIGNAL(toggled(bool)), intervalLine, SLOT(setEnabled(bool)));
+ connect(onPlay, TQT_SIGNAL(toggled(bool)), intervalLine, TQT_SLOT(setEnabled(bool)));
}
- connect(onPlay, SIGNAL(toggled(bool)), parent, SLOT(setLoadAuto(bool)));
+ connect(onPlay, TQT_SIGNAL(toggled(bool)), parent, TQT_SLOT(setLoadAuto(bool)));
onPlay->setChecked(parent->loadAuto());
}