summaryrefslogtreecommitdiffstats
path: root/noatun/modules/winskin/guiSpectrumAnalyser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'noatun/modules/winskin/guiSpectrumAnalyser.cpp')
-rw-r--r--noatun/modules/winskin/guiSpectrumAnalyser.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/noatun/modules/winskin/guiSpectrumAnalyser.cpp b/noatun/modules/winskin/guiSpectrumAnalyser.cpp
index d015e5da..583266e0 100644
--- a/noatun/modules/winskin/guiSpectrumAnalyser.cpp
+++ b/noatun/modules/winskin/guiSpectrumAnalyser.cpp
@@ -12,9 +12,9 @@
#include <klocale.h>
-#include <qcolor.h>
-#include <qpopupmenu.h>
-#include <qpainter.h>
+#include <tqcolor.h>
+#include <tqpopupmenu.h>
+#include <tqpainter.h>
#include <kconfig.h>
#include "waColor.h"
@@ -28,11 +28,11 @@
GuiSpectrumAnalyser::GuiSpectrumAnalyser()
: WaWidget(_WA_MAPPING_ANALYSER)
{
- connect(WaSkinModel::instance(), SIGNAL(skinChanged()), this, SLOT(pixmapChange()));
+ connect(WaSkinModel::instance(), TQT_SIGNAL(skinChanged()), this, TQT_SLOT(pixmapChange()));
- contextMenu = new QPopupMenu(this);
- visualizationMenu = new QPopupMenu();
- analyserMenu = new QPopupMenu();
+ contextMenu = new TQPopupMenu(this);
+ visualizationMenu = new TQPopupMenu();
+ analyserMenu = new TQPopupMenu();
contextMenu->insertItem(i18n("Visualization Mode"), visualizationMenu);
contextMenu->insertItem(i18n("Analyzer Mode"), analyserMenu);
@@ -40,13 +40,13 @@ GuiSpectrumAnalyser::GuiSpectrumAnalyser()
visualizationMenu->insertItem(i18n("Analyzer"), (int)MODE_ANALYSER);
visualizationMenu->insertItem(i18n("Disabled"), (int)MODE_DISABLED);
visualizationMenu->setCheckable(true);
- connect(visualizationMenu, SIGNAL(activated(int)), this, SLOT(setVisualizationMode(int)));
+ connect(visualizationMenu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(setVisualizationMode(int)));
analyserMenu->insertItem(i18n("Normal"), (int)MODE_NORMAL);
analyserMenu->insertItem(i18n("Fire"), (int)MODE_FIRE);
analyserMenu->insertItem(i18n("Vertical Lines"), (int)MODE_VERTICAL_LINES);
analyserMenu->setCheckable(true);
- connect(analyserMenu, SIGNAL(activated(int)), this, SLOT(setAnalyserMode(int)));
+ connect(analyserMenu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(setAnalyserMode(int)));
analyserCache = NULL;
winSkinVis = NULL;
@@ -70,7 +70,7 @@ GuiSpectrumAnalyser::~GuiSpectrumAnalyser()
delete analyserCache;
}
-void GuiSpectrumAnalyser::mousePressEvent ( QMouseEvent *e )
+void GuiSpectrumAnalyser::mousePressEvent ( TQMouseEvent *e )
{
if (e->button() == LeftButton) {
if (visualization_mode == MODE_DISABLED)
@@ -79,7 +79,7 @@ void GuiSpectrumAnalyser::mousePressEvent ( QMouseEvent *e )
setVisualizationMode(MODE_DISABLED);
}
else if (e->button() == RightButton) {
- contextMenu->popup(mapToGlobal(QPoint(e->x(), e->y())));
+ contextMenu->popup(mapToGlobal(TQPoint(e->x(), e->y())));
}
}
@@ -139,7 +139,7 @@ void GuiSpectrumAnalyser::setVisualizationMode(int mode)
if (!winSkinVis)
{
winSkinVis=new WinSkinVis(this,"WinSkinVis");
- connect(winSkinVis,SIGNAL(doRepaint()),this,SLOT(updatePeaks()));
+ connect(winSkinVis,TQT_SIGNAL(doRepaint()),this,TQT_SLOT(updatePeaks()));
}
}
else
@@ -160,20 +160,20 @@ void GuiSpectrumAnalyser::freshenAnalyserCache()
// The analyser cache is a 34x16 pixmap containing all the bits needed
// to quickly draw the spectrum analyser
- analyserCache = new QPixmap(34, 16);
- QPainter p(analyserCache);
+ analyserCache = new TQPixmap(34, 16);
+ TQPainter p(analyserCache);
for (unsigned int x = 0;x < 17;x++) {
if (x != 16) {
- p.setPen(QPen(colorScheme->skinColors[INDEX_BACKGROUND_COLOR]));
+ p.setPen(TQPen(colorScheme->skinColors[INDEX_BACKGROUND_COLOR]));
p.drawLine(x * 2, 0, x * 2, 16 - x - 1);
}
for (unsigned int y = 0; y < (16 - x);y++) {
if (y % 2)
- p.setPen(QPen(colorScheme->skinColors[INDEX_GRID_COLOR]));
+ p.setPen(TQPen(colorScheme->skinColors[INDEX_GRID_COLOR]));
else
- p.setPen(QPen(colorScheme->skinColors[INDEX_BACKGROUND_COLOR]));
+ p.setPen(TQPen(colorScheme->skinColors[INDEX_BACKGROUND_COLOR]));
p.drawPoint((x * 2) + 1, y);
}
@@ -184,13 +184,13 @@ void GuiSpectrumAnalyser::freshenAnalyserCache()
switch (analyser_mode) {
case MODE_FIRE:
for (unsigned int y = (16 - x); y < 16; y++) {
- p.setPen(QPen(colorScheme->skinColors[INDEX_SPEC_BASE + (y - (16 - x))]));
+ p.setPen(TQPen(colorScheme->skinColors[INDEX_SPEC_BASE + (y - (16 - x))]));
p.drawPoint((x * 2), y);
p.drawPoint((x * 2) + 1, y);
}
break;
case MODE_VERTICAL_LINES:
- p.setPen(QPen(colorScheme->skinColors[INDEX_SPEC_BASE + (16 - x)]));
+ p.setPen(TQPen(colorScheme->skinColors[INDEX_SPEC_BASE + (16 - x)]));
p.drawLine((x * 2), (15 - x), (x * 2), 15);
p.drawLine((x * 2) + 1, (15 - x), (x * 2) + 1, 15);
break;
@@ -198,7 +198,7 @@ void GuiSpectrumAnalyser::freshenAnalyserCache()
// Fall through
default:
for (unsigned int y = (16 - x); y < 16; y++) {
- p.setPen(QPen(colorScheme->skinColors[INDEX_SPEC_BASE + y]));
+ p.setPen(TQPen(colorScheme->skinColors[INDEX_SPEC_BASE + y]));
p.drawPoint((x * 2), y);
p.drawPoint((x * 2) + 1, y);
}
@@ -207,7 +207,7 @@ void GuiSpectrumAnalyser::freshenAnalyserCache()
}
}
-void GuiSpectrumAnalyser::paintEvent (QPaintEvent *)
+void GuiSpectrumAnalyser::paintEvent (TQPaintEvent *)
{
if (visualization_mode == MODE_DISABLED)
paintBackground();