summaryrefslogtreecommitdiffstats
path: root/noatun/library/noatuntags
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
commite654398e46e37abf457b2b1122ab898d2c51c49f (patch)
treed39ee6440f3c3663c3ead84a2d4cc2d034667e96 /noatun/library/noatuntags
parente4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff)
downloadtdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz
tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'noatun/library/noatuntags')
-rw-r--r--noatun/library/noatuntags/tags.cpp46
-rw-r--r--noatun/library/noatuntags/tagsgetter.h14
2 files changed, 30 insertions, 30 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());
}
diff --git a/noatun/library/noatuntags/tagsgetter.h b/noatun/library/noatuntags/tagsgetter.h
index 269b7b90..8b6eddb9 100644
--- a/noatun/library/noatuntags/tagsgetter.h
+++ b/noatun/library/noatuntags/tagsgetter.h
@@ -1,13 +1,13 @@
#ifndef TAGSGET_H
#define TAGSGET_H
-#include <qobject.h>
+#include <tqobject.h>
#include <cmodule.h>
-#include <qvaluelist.h>
-#include <qptrlist.h>
+#include <tqvaluelist.h>
+#include <tqptrlist.h>
#include "tags.h"
-class TagsGetter : public QObject, public PlaylistNotifier
+class TagsGetter : public TQObject, public PlaylistNotifier
{
Q_OBJECT
public:
@@ -24,7 +24,7 @@ public: //playlistnotifier
virtual void removed(PlaylistItem &);
protected:
- void timerEvent(QTimerEvent *);
+ void timerEvent(TQTimerEvent *);
private slots:
// select the songs that need updating
@@ -40,8 +40,8 @@ private:
void sortPriority();
private:
- QPtrList<Tags> tags;
- QValueList<PlaylistItem> items;
+ TQPtrList<Tags> tags;
+ TQValueList<PlaylistItem> items;
};
class Control : public CModule