diff options
Diffstat (limited to 'noatun/modules/monoscope/monoscope.cpp')
-rw-r--r-- | noatun/modules/monoscope/monoscope.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/noatun/modules/monoscope/monoscope.cpp b/noatun/modules/monoscope/monoscope.cpp index 5ab63ecc..758d3950 100644 --- a/noatun/modules/monoscope/monoscope.cpp +++ b/noatun/modules/monoscope/monoscope.cpp @@ -2,7 +2,7 @@ #include <noatun/player.h> #include <noatun/app.h> #include <math.h> -#include <qpainter.h> +#include <tqpainter.h> #include <kactionclasses.h> #include <noatun/stdaction.h> #include <klocale.h> @@ -15,7 +15,7 @@ extern "C" } } -Monoscope::Monoscope() : QWidget(0,0,WRepaintNoErase), MonoScope(30), Plugin() +Monoscope::Monoscope() : TQWidget(0,0,WRepaintNoErase), MonoScope(30), Plugin() { NOATUNPLUGINC(Monoscope); @@ -27,7 +27,7 @@ Monoscope::Monoscope() : QWidget(0,0,WRepaintNoErase), MonoScope(30), Plugin() setCaption(i18n("Monoscope")); show(); resizeEvent(0); - repaint(0,0, QWidget::width(), height(), false); + repaint(0,0, TQWidget::width(), height(), false); resizeEvent(0); setBackgroundColor(mLowColor); } @@ -41,7 +41,7 @@ Monoscope::~Monoscope() void Monoscope::init() { mAction = new KToggleAction(i18n("Toggle Monoscope"), 0, 0, - this, SLOT(toggle()), this, "togglemonoscope"); + this, TQT_SLOT(toggle()), this, "togglemonoscope"); mAction->setChecked(!isHidden()); napp->pluginActionMenu()->insert(mAction); } @@ -54,12 +54,12 @@ void Monoscope::toggle(void) hide(); } -void Monoscope::closeEvent(QCloseEvent *) +void Monoscope::closeEvent(TQCloseEvent *) { hide(); } -void Monoscope::resizeEvent(QResizeEvent *) +void Monoscope::resizeEvent(TQResizeEvent *) { setSamples(width()); } @@ -79,9 +79,9 @@ void Monoscope::scopeEvent(float *d, int size) int heightHalf=viewHeight/4; int y=viewHeight/2; // reduce flicker - QPixmap buffer(viewWidth, viewHeight, -1, QPixmap::BestOptim); + TQPixmap buffer(viewWidth, viewHeight, -1, TQPixmap::BestOptim); buffer.fill(mLowColor); - QPainter p(&buffer); + TQPainter p(&buffer); p.setPen(mHighColor); repaint(rect()); |