summaryrefslogtreecommitdiffstats
path: root/noatun/modules/monoscope
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/modules/monoscope
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/modules/monoscope')
-rw-r--r--noatun/modules/monoscope/monoscope.cpp16
-rw-r--r--noatun/modules/monoscope/monoscope.h6
2 files changed, 11 insertions, 11 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());
diff --git a/noatun/modules/monoscope/monoscope.h b/noatun/modules/monoscope/monoscope.h
index 37031a4b..0f9ddcff 100644
--- a/noatun/modules/monoscope/monoscope.h
+++ b/noatun/modules/monoscope/monoscope.h
@@ -5,7 +5,7 @@
class KToggleAction;
-class Monoscope : public QWidget, public MonoScope, public Plugin
+class Monoscope : public TQWidget, public MonoScope, public Plugin
{
Q_OBJECT
NOATUNPLUGIND
@@ -20,10 +20,10 @@ public slots:
void toggle(void);
protected:
- virtual void closeEvent(QCloseEvent *);
+ virtual void closeEvent(TQCloseEvent *);
virtual void scopeEvent(float *data, int bands);
- virtual void resizeEvent(QResizeEvent *);
+ virtual void resizeEvent(TQResizeEvent *);
private:
QRgb mHighColor, mLowColor;