diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:22:56 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:22:56 +0000 |
commit | 7346aee26bf190a7e70333c40fab4caca847cd27 (patch) | |
tree | 4b019b434f88dcc3eeaafe1d3f26240b4c4718e8 /noatun-plugins/pitchablespeed | |
parent | 23a3d3aa5b44cbdf305495919866d9dbf4f6da54 (diff) | |
download | tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.tar.gz tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1157634 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'noatun-plugins/pitchablespeed')
-rw-r--r-- | noatun-plugins/pitchablespeed/pitchablespeed.cpp | 20 | ||||
-rw-r--r-- | noatun-plugins/pitchablespeed/pitchablespeed.h | 2 |
2 files changed, 11 insertions, 11 deletions
diff --git a/noatun-plugins/pitchablespeed/pitchablespeed.cpp b/noatun-plugins/pitchablespeed/pitchablespeed.cpp index f091c72..b59d6e5 100644 --- a/noatun-plugins/pitchablespeed/pitchablespeed.cpp +++ b/noatun-plugins/pitchablespeed/pitchablespeed.cpp @@ -17,9 +17,9 @@ #include <noatun/player.h> #include <noatun/engine.h> #include <noatun/noatunarts.h> -#include <qslider.h> -#include <qlineedit.h> -#include <qcheckbox.h> +#include <tqslider.h> +#include <tqlineedit.h> +#include <tqcheckbox.h> #include <klocale.h> #include <knuminput.h> @@ -46,10 +46,10 @@ PitchableSpeed::PitchableSpeed() : Plugin(), offsetInput->setRange(-5,15,1,false); offsetInput->setValue(offset); setupSliderRange(); - connect(napp->player(), SIGNAL(changed()), - this, SLOT(newSong())); - connect(preserveFrequencies, SIGNAL(toggled(bool)), - this, SLOT(preserveFrequenciesChanged(bool))); + connect(napp->player(), TQT_SIGNAL(changed()), + this, TQT_SLOT(newSong())); + connect(preserveFrequencies, TQT_SIGNAL(toggled(bool)), + this, TQT_SLOT(preserveFrequenciesChanged(bool))); //show(); } @@ -93,7 +93,7 @@ void PitchableSpeed::setSpeed() pitchShift.speed(1.f/newSpeed); } - QString percentStr; + TQString percentStr; percentStr.setNum((newSpeed-1.f)*100.f,'f',1); if (newSpeed<=0) percentStr.prepend('+').append(' ').append('%'); currentValEdit->setText(percentStr); @@ -149,7 +149,7 @@ void PitchableSpeed::preserveFrequenciesChanged(bool preserveNow) void PitchableSpeed::init() { pluginMenuItem = napp->pluginMenuAdd(i18n("Toggle Speed Slider"), - this, SLOT(toggle(void))); + this, TQT_SLOT(toggle(void))); } void PitchableSpeed::toggle(void) @@ -158,7 +158,7 @@ void PitchableSpeed::toggle(void) raise(); } -void PitchableSpeed::closeEvent(QCloseEvent *) +void PitchableSpeed::closeEvent(TQCloseEvent *) { hide(); } diff --git a/noatun-plugins/pitchablespeed/pitchablespeed.h b/noatun-plugins/pitchablespeed/pitchablespeed.h index d11a7cc..3233817 100644 --- a/noatun-plugins/pitchablespeed/pitchablespeed.h +++ b/noatun-plugins/pitchablespeed/pitchablespeed.h @@ -34,7 +34,7 @@ public slots: void newSong(); protected: - virtual void closeEvent(QCloseEvent *); + virtual void closeEvent(TQCloseEvent *); void setupSliderRange(); void setSpeed(); |