summaryrefslogtreecommitdiffstats
path: root/noatun/library/equalizer.cpp
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/equalizer.cpp
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/equalizer.cpp')
-rw-r--r--noatun/library/equalizer.cpp66
1 files changed, 33 insertions, 33 deletions
diff --git a/noatun/library/equalizer.cpp b/noatun/library/equalizer.cpp
index 2ee208db..61b10d01 100644
--- a/noatun/library/equalizer.cpp
+++ b/noatun/library/equalizer.cpp
@@ -8,10 +8,10 @@
#include <soundserver.h>
#include <noatunarts.h>
#include <ktempfile.h>
-#include <qdom.h>
+#include <tqdom.h>
#include <kio/netaccess.h>
#include <kstandarddirs.h>
-#include <qtextstream.h>
+#include <tqtextstream.h>
#include <math.h>
#include <kconfig.h>
#include <klocale.h>
@@ -28,7 +28,7 @@ struct OldEqCruft
static OldEqCruft *eqCruft=0;
-Preset::Preset(const QString &)
+Preset::Preset(const TQString &)
{ } // unused
Preset::Preset(VPreset p)
@@ -36,7 +36,7 @@ Preset::Preset(VPreset p)
VPreset *copy = new VPreset(p);
// isn't this horrible? :)
- mFile = QString::number((unsigned long)copy);
+ mFile = TQString::number((unsigned long)copy);
}
Preset::Preset()
@@ -48,12 +48,12 @@ VPreset &Preset::vpreset() const
return *(VPreset*)addr;
}
-QString Preset::name() const
+TQString Preset::name() const
{
return vpreset().name();
}
-bool Preset::setName(const QString &name)
+bool Preset::setName(const TQString &name)
{
return vpreset().setName(name);
}
@@ -75,7 +75,7 @@ void Preset::remove()
vpreset().remove();
}
-QString Preset::file() const
+TQString Preset::file() const
{
return vpreset().file();
}
@@ -120,17 +120,17 @@ int Band::center() const
return eqCruft->interpolated->band(mNum).center();
}
-QString Band::formatStart(bool withHz) const
+TQString Band::formatStart(bool withHz) const
{
return eqCruft->interpolated->band(mNum).formatStart(withHz);
}
-QString Band::formatEnd(bool withHz) const
+TQString Band::formatEnd(bool withHz) const
{
return eqCruft->interpolated->band(mNum).formatEnd(withHz);
}
-QString Band::format(bool withHz) const
+TQString Band::format(bool withHz) const
{
return eqCruft->interpolated->band(mNum).format(withHz);
}
@@ -164,19 +164,19 @@ void Equalizer::init()
mBands.append(new Band(4));
mBands.append(new Band(5));
- connect(VEQ, SIGNAL(changed()), SIGNAL(changed()));
+ connect(VEQ, TQT_SIGNAL(changed()), TQT_SIGNAL(changed()));
- connect(VEQ, SIGNAL(created(VPreset)), SLOT(created(VPreset)));
- connect(VEQ, SIGNAL(selected(VPreset)), SLOT(selected(VPreset)));
- connect(VEQ, SIGNAL(renamed(VPreset)), SLOT(renamed(VPreset)));
- connect(VEQ, SIGNAL(removed(VPreset)), SLOT(removed(VPreset)));
+ connect(VEQ, TQT_SIGNAL(created(VPreset)), TQT_SLOT(created(VPreset)));
+ connect(VEQ, TQT_SIGNAL(selected(VPreset)), TQT_SLOT(selected(VPreset)));
+ connect(VEQ, TQT_SIGNAL(renamed(VPreset)), TQT_SLOT(renamed(VPreset)));
+ connect(VEQ, TQT_SIGNAL(removed(VPreset)), TQT_SLOT(removed(VPreset)));
- connect(VEQ, SIGNAL(enabled()), SIGNAL(enabled()));
- connect(VEQ, SIGNAL(disabled()), SIGNAL(disabled()));
- connect(VEQ, SIGNAL(enabled(bool)), SIGNAL(enabled(bool)));
+ connect(VEQ, TQT_SIGNAL(enabled()), TQT_SIGNAL(enabled()));
+ connect(VEQ, TQT_SIGNAL(disabled()), TQT_SIGNAL(disabled()));
+ connect(VEQ, TQT_SIGNAL(enabled(bool)), TQT_SIGNAL(enabled(bool)));
- connect(VEQ, SIGNAL(preampChanged(int)), SIGNAL(preampChanged(int)));
- connect(VEQ, SIGNAL(preampChanged(int)), SIGNAL(preampChanged(int)));
+ connect(VEQ, TQT_SIGNAL(preampChanged(int)), TQT_SIGNAL(preampChanged(int)));
+ connect(VEQ, TQT_SIGNAL(preampChanged(int)), TQT_SIGNAL(preampChanged(int)));
}
void Equalizer::created(VPreset preset)
@@ -207,12 +207,12 @@ void Equalizer::removed(VPreset preset)
delete p;
}
-QPtrList<Preset> Equalizer::presets() const
+TQPtrList<Preset> Equalizer::presets() const
{
- QValueList<VPreset> presets = VEQ->presets();
- QPtrList<Preset> list;
+ TQValueList<VPreset> presets = VEQ->presets();
+ TQPtrList<Preset> list;
for (
- QValueList<VPreset>::Iterator i(presets.begin());
+ TQValueList<VPreset>::Iterator i(presets.begin());
i != presets.end(); ++i
)
{
@@ -221,35 +221,35 @@ QPtrList<Preset> Equalizer::presets() const
return list;
}
-Preset *Equalizer::preset(const QString &file)
+Preset *Equalizer::preset(const TQString &file)
{
VPreset p = VEQ->presetByFile(file);
if (!p) return 0;
return new Preset(p);
}
-bool Equalizer::presetExists(const QString &name) const
+bool Equalizer::presetExists(const TQString &name) const
{
return VEQ->presetExists(name);
}
-Preset *Equalizer::createPreset(const QString &name, bool smart)
+Preset *Equalizer::createPreset(const TQString &name, bool smart)
{
VPreset p = VEQ->createPreset(name, smart);
if (!p) return 0;
return new Preset(p);
}
-const QPtrList<Band> &Equalizer::bands() const
+const TQPtrList<Band> &Equalizer::bands() const
{
return mBands;
}
Band *Equalizer::band(int num) const
{
- // can't use QPtrList::at since it sets current
+ // can't use TQPtrList::at since it sets current
- QPtrListIterator<Band> item(mBands);
+ TQPtrListIterator<Band> item(mBands);
item+=(unsigned int)num;
return *item;
}
@@ -290,17 +290,17 @@ void Equalizer::setEnabled(bool e)
VEQ->setEnabled(e);
}
-QString Equalizer::toString(const QString &name) const
+TQString Equalizer::toString(const TQString &name) const
{
return VEQ->toString(name);
}
-bool Equalizer::fromString(const QString &str)
+bool Equalizer::fromString(const TQString &str)
{
return VEQ->fromString(str);
}
-bool Equalizer::save(const KURL &filename, const QString &name) const
+bool Equalizer::save(const KURL &filename, const TQString &name) const
{
return VEQ->save(filename, name);
}