diff options
Diffstat (limited to 'noatun/library/effects.cpp')
-rw-r--r-- | noatun/library/effects.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/noatun/library/effects.cpp b/noatun/library/effects.cpp index 3c6c601e..a71e0b43 100644 --- a/noatun/library/effects.cpp +++ b/noatun/library/effects.cpp @@ -7,7 +7,7 @@ #include <player.h> #include <soundserver.h> #include <noatunarts.h> -#include <qlayout.h> +#include <tqlayout.h> #include <config.h> @@ -28,8 +28,8 @@ using namespace Arts; class EffectConfigWidget : public QWidget { public: - EffectConfigWidget(Effect *e, QWidget *parent=0) - : QWidget(parent), mEf(e) + EffectConfigWidget(Effect *e, TQWidget *parent=0) + : TQWidget(parent), mEf(e) {} virtual ~EffectConfigWidget() @@ -62,8 +62,8 @@ StereoEffect *Effect::effect() const Effect *Effect::after() const { - QPtrList<Effect> effects=napp->effects()->effects(); - QPtrListIterator<Effect> i(effects); + TQPtrList<Effect> effects=napp->effects()->effects(); + TQPtrListIterator<Effect> i(effects); for(; i.current(); ++i) if ((*i)->id()==mId) { @@ -77,8 +77,8 @@ Effect *Effect::after() const Effect *Effect::before() const { - QPtrList<Effect> effects=napp->effects()->effects(); - QPtrListIterator<Effect> i(effects); + TQPtrList<Effect> effects=napp->effects()->effects(); + TQPtrListIterator<Effect> i(effects); for(; i.current(); ++i) if ((*i)->id()==mId) { @@ -90,17 +90,17 @@ Effect *Effect::before() const return 0; } -QCString Effect::name() const +TQCString Effect::name() const { return mName; } -QString Effect::title() const +TQString Effect::title() const { return clean(mName); } -QString Effect::clean(const QCString &name) +TQString Effect::clean(const TQCString &name) { int pos=name.findRev("::"); if (pos>0) @@ -113,7 +113,7 @@ bool Effect::isNull() const return effect()->isNull(); } -QWidget *Effect::configure(bool /*friendly*/) +TQWidget *Effect::configure(bool /*friendly*/) { #ifdef HAS_ARTSVERSION_H if (mConfig) return mConfig; @@ -127,7 +127,7 @@ QWidget *Effect::configure(bool /*friendly*/) mConfig=new EffectConfigWidget(this); mConfig->setCaption(title()); - QBoxLayout *l=new QHBoxLayout(mConfig); + TQBoxLayout *l=new TQHBoxLayout(mConfig); l->add(new KArtsWidget(gui, mConfig)); l->freeze(); } @@ -235,14 +235,14 @@ void Effects::remove(Effect *item, bool del) void Effects::removeAll(bool del) { - for (QPtrListIterator<Effect> i(mItems); i.current(); ++i) + for (TQPtrListIterator<Effect> i(mItems); i.current(); ++i) if ((*i)->id()) remove(*i, del); } -QStrList Effects::available() const +TQStrList Effects::available() const { - QStrList val; + TQStrList val; Arts::TraderQuery query; query.supports("Interface", "Arts::StereoEffect"); query.supports("Interface", "Arts::SynthModule"); @@ -251,7 +251,7 @@ QStrList Effects::available() const for (vector<Arts::TraderOffer>::iterator i=offers->begin(); i!=offers->end(); i++) { Arts::TraderOffer &offer=*i; - QCString name = offer.interfaceName().c_str(); + TQCString name = offer.interfaceName().c_str(); val.append(name); } delete offers; @@ -260,16 +260,16 @@ QStrList Effects::available() const Effect *Effects::findId(long id) const { - for (QPtrListIterator<Effect> i(mItems); i.current(); ++i) + for (TQPtrListIterator<Effect> i(mItems); i.current(); ++i) if ((*i)->id()==id) return *i; return 0; } -QPtrList<Effect> Effects::effects() const +TQPtrList<Effect> Effects::effects() const { vector<long> *items=stack.effectList(); - QPtrList<Effect> effects; + TQPtrList<Effect> effects; for (vector<long>::iterator i=items->begin();i!=items->end();i++) if (Effect *e=findId(*i)) effects.append(e); |