summaryrefslogtreecommitdiffstats
path: root/noatun/modules/winskin
diff options
context:
space:
mode:
Diffstat (limited to 'noatun/modules/winskin')
-rw-r--r--noatun/modules/winskin/guiSpectrumAnalyser.cpp14
-rw-r--r--noatun/modules/winskin/guiSpectrumAnalyser.h2
-rw-r--r--noatun/modules/winskin/plugin.cpp2
-rw-r--r--noatun/modules/winskin/vis/CMakeLists.txt4
-rw-r--r--noatun/modules/winskin/vis/Makefile.am8
-rw-r--r--noatun/modules/winskin/waBalanceSlider.cpp8
-rw-r--r--noatun/modules/winskin/waBalanceSlider.h2
-rw-r--r--noatun/modules/winskin/waButton.cpp4
-rw-r--r--noatun/modules/winskin/waButton.h2
-rw-r--r--noatun/modules/winskin/waClutterbar.h2
-rw-r--r--noatun/modules/winskin/waDigit.cpp14
-rw-r--r--noatun/modules/winskin/waDigit.h2
-rw-r--r--noatun/modules/winskin/waIndicator.h2
-rw-r--r--noatun/modules/winskin/waInfo.cpp12
-rw-r--r--noatun/modules/winskin/waInfo.h2
-rw-r--r--noatun/modules/winskin/waJumpSlider.cpp6
-rw-r--r--noatun/modules/winskin/waJumpSlider.h2
-rw-r--r--noatun/modules/winskin/waLabel.cpp6
-rw-r--r--noatun/modules/winskin/waLabel.h2
-rw-r--r--noatun/modules/winskin/waMain.h2
-rw-r--r--noatun/modules/winskin/waRegion.cpp4
-rw-r--r--noatun/modules/winskin/waSkin.cpp114
-rw-r--r--noatun/modules/winskin/waSkin.h2
-rw-r--r--noatun/modules/winskin/waSkinManager.cpp8
-rw-r--r--noatun/modules/winskin/waSkinManager.h2
-rw-r--r--noatun/modules/winskin/waSkinModel.cpp2
-rw-r--r--noatun/modules/winskin/waSkinModel.h2
-rw-r--r--noatun/modules/winskin/waSlider.cpp2
-rw-r--r--noatun/modules/winskin/waSlider.h2
-rw-r--r--noatun/modules/winskin/waStatus.h2
-rw-r--r--noatun/modules/winskin/waTitleBar.cpp4
-rw-r--r--noatun/modules/winskin/waTitleBar.h2
-rw-r--r--noatun/modules/winskin/waVolumeSlider.cpp8
-rw-r--r--noatun/modules/winskin/waVolumeSlider.h2
-rw-r--r--noatun/modules/winskin/waWidget.cpp20
-rw-r--r--noatun/modules/winskin/waWidget.h4
-rw-r--r--noatun/modules/winskin/winSkinConfig.cpp16
-rw-r--r--noatun/modules/winskin/winSkinConfig.h2
-rw-r--r--noatun/modules/winskin/winSkinVis.h2
39 files changed, 149 insertions, 149 deletions
diff --git a/noatun/modules/winskin/guiSpectrumAnalyser.cpp b/noatun/modules/winskin/guiSpectrumAnalyser.cpp
index ee01777a..46be1e2f 100644
--- a/noatun/modules/winskin/guiSpectrumAnalyser.cpp
+++ b/noatun/modules/winskin/guiSpectrumAnalyser.cpp
@@ -28,7 +28,7 @@
GuiSpectrumAnalyser::GuiSpectrumAnalyser()
: WaWidget(_WA_MAPPING_ANALYSER)
{
- connect(WaSkinModel::instance(), TQT_SIGNAL(skinChanged()), this, TQT_SLOT(pixmapChange()));
+ connect(WaSkinModel::instance(), TQ_SIGNAL(skinChanged()), this, TQ_SLOT(pixmapChange()));
contextMenu = new TQPopupMenu(this);
visualizationMenu = new TQPopupMenu();
@@ -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, TQT_SIGNAL(activated(int)), this, TQT_SLOT(setVisualizationMode(int)));
+ connect(visualizationMenu, TQ_SIGNAL(activated(int)), this, TQ_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, TQT_SIGNAL(activated(int)), this, TQT_SLOT(setAnalyserMode(int)));
+ connect(analyserMenu, TQ_SIGNAL(activated(int)), this, TQ_SLOT(setAnalyserMode(int)));
analyserCache = NULL;
winSkinVis = NULL;
@@ -72,13 +72,13 @@ GuiSpectrumAnalyser::~GuiSpectrumAnalyser()
void GuiSpectrumAnalyser::mousePressEvent ( TQMouseEvent *e )
{
- if (e->button() == Qt::LeftButton) {
+ if (e->button() == TQt::LeftButton) {
if (visualization_mode == MODE_DISABLED)
setVisualizationMode(MODE_ANALYSER);
else
setVisualizationMode(MODE_DISABLED);
}
- else if (e->button() == Qt::RightButton) {
+ else if (e->button() == TQt::RightButton) {
contextMenu->popup(mapToGlobal(TQPoint(e->x(), e->y())));
}
}
@@ -138,8 +138,8 @@ void GuiSpectrumAnalyser::setVisualizationMode(int mode)
{
if (!winSkinVis)
{
- winSkinVis=new WinSkinVis(TQT_TQOBJECT(this),"WinSkinVis");
- connect(winSkinVis,TQT_SIGNAL(doRepaint()),this,TQT_SLOT(updatePeaks()));
+ winSkinVis=new WinSkinVis(this,"WinSkinVis");
+ connect(winSkinVis,TQ_SIGNAL(doRepaint()),this,TQ_SLOT(updatePeaks()));
}
}
else
diff --git a/noatun/modules/winskin/guiSpectrumAnalyser.h b/noatun/modules/winskin/guiSpectrumAnalyser.h
index 05657424..a29fd18b 100644
--- a/noatun/modules/winskin/guiSpectrumAnalyser.h
+++ b/noatun/modules/winskin/guiSpectrumAnalyser.h
@@ -28,7 +28,7 @@ enum visualizationMode {MODE_DISABLED = 0, MODE_ANALYSER = 1};
enum analyserMode {MODE_NORMAL = 0, MODE_FIRE = 1, MODE_VERTICAL_LINES = 2};
class GuiSpectrumAnalyser : public WaWidget {
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/noatun/modules/winskin/plugin.cpp b/noatun/modules/winskin/plugin.cpp
index 8be9cc77..ff38a4ab 100644
--- a/noatun/modules/winskin/plugin.cpp
+++ b/noatun/modules/winskin/plugin.cpp
@@ -5,7 +5,7 @@
#include "waSkin.h"
extern "C" {
- KDE_EXPORT Plugin *create_plugin() {
+ TDE_EXPORT Plugin *create_plugin() {
WaSkin *new_skin = new WaSkin();
new WinSkinConfig(new_skin, new_skin->skinManager());
return new_skin;
diff --git a/noatun/modules/winskin/vis/CMakeLists.txt b/noatun/modules/winskin/vis/CMakeLists.txt
index 25b86e8a..fc206056 100644
--- a/noatun/modules/winskin/vis/CMakeLists.txt
+++ b/noatun/modules/winskin/vis/CMakeLists.txt
@@ -27,7 +27,7 @@ link_directories(
tde_add_library( winskinvis SHARED AUTOMOC
SOURCES
- winskinvis.cc
+ winskinvis.cpp
winSkinFFT_impl.cpp realFFT.cpp
realFFTFilter.cpp visQueue.cpp
LINK
@@ -37,7 +37,7 @@ tde_add_library( winskinvis SHARED AUTOMOC
add_custom_command(
OUTPUT
- winskinvis.cc winskinvis.h
+ winskinvis.cpp winskinvis.h
COMMAND ${ARTS_MCOPIDL_EXECUTABLE} -t
-I${ARTS_INCLUDEDIR} ${CMAKE_CURRENT_SOURCE_DIR}/winskinvis.idl
DEPENDS winskinvis.idl
diff --git a/noatun/modules/winskin/vis/Makefile.am b/noatun/modules/winskin/vis/Makefile.am
index b72036d3..473da0cb 100644
--- a/noatun/modules/winskin/vis/Makefile.am
+++ b/noatun/modules/winskin/vis/Makefile.am
@@ -1,15 +1,15 @@
INCLUDES= -I$(kde_includes)/arts $(all_includes)
KDE_OPTIONS = nofinal
-DISTCLEANFILES = winskinvis.h winskinvis.cc
+DISTCLEANFILES = winskinvis.h winskinvis.cpp
winskinvis.mcopclass: winskinvis.h
winskinvis.mcoptype: winskinvis.h
-winskinvis.cc winskinvis.h : $(srcdir)/winskinvis.idl
+winskinvis.cpp winskinvis.h : $(srcdir)/winskinvis.idl
$(MCOPIDL) -t -I$(kde_includes)/arts $(srcdir)/winskinvis.idl
lib_LTLIBRARIES = libwinskinvis.la
-libwinskinvis_la_SOURCES= winskinvis.cc \
+libwinskinvis_la_SOURCES= winskinvis.cpp \
winSkinFFT_impl.cpp realFFT.cpp \
realFFTFilter.cpp visQueue.cpp
@@ -18,7 +18,7 @@ libwinskinvis_la_LDFLAGS= $(all_libraries) -avoid-version \
-no-undefined
libwinskinvis_la_LIBADD = -lkmedia2_idl -lsoundserver_idl -lartsflow -lartsflow_idl -lmcop
-libwinskinvis_la_COMPILE_FIRST = winskinvis.cc
+libwinskinvis_la_COMPILE_FIRST = winskinvis.cpp
libwinskinvis_la_METASOURCES = AUTO
diff --git a/noatun/modules/winskin/waBalanceSlider.cpp b/noatun/modules/winskin/waBalanceSlider.cpp
index cb6b0f19..1503632b 100644
--- a/noatun/modules/winskin/waBalanceSlider.cpp
+++ b/noatun/modules/winskin/waBalanceSlider.cpp
@@ -38,10 +38,10 @@ void WaBalanceSlider::buildGui()
ws->setValue(0);
- connect(ws, TQT_SIGNAL(valueChanged(int)), this,
- TQT_SIGNAL(balanceSetValue(int)));
- connect(ws, TQT_SIGNAL(sliderPressed()), TQT_SIGNAL(sliderPressed()));
- connect(ws, TQT_SIGNAL(sliderReleased()), TQT_SIGNAL(sliderReleased()));
+ connect(ws, TQ_SIGNAL(valueChanged(int)), this,
+ TQ_SIGNAL(balanceSetValue(int)));
+ connect(ws, TQ_SIGNAL(sliderPressed()), TQ_SIGNAL(sliderPressed()));
+ connect(ws, TQ_SIGNAL(sliderReleased()), TQ_SIGNAL(sliderReleased()));
}
diff --git a/noatun/modules/winskin/waBalanceSlider.h b/noatun/modules/winskin/waBalanceSlider.h
index 7a08ca04..7eb77055 100644
--- a/noatun/modules/winskin/waBalanceSlider.h
+++ b/noatun/modules/winskin/waBalanceSlider.h
@@ -20,7 +20,7 @@
#include "waWidget.h"
class WaBalanceSlider : public WaWidget {
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/noatun/modules/winskin/waButton.cpp b/noatun/modules/winskin/waButton.cpp
index 8dfa7bfb..318b5323 100644
--- a/noatun/modules/winskin/waButton.cpp
+++ b/noatun/modules/winskin/waButton.cpp
@@ -50,7 +50,7 @@ void WaButton::paintEvent(TQPaintEvent *) {
void WaButton::mousePressEvent(TQMouseEvent* e) {
- if (e->button() != Qt::LeftButton) {
+ if (e->button() != TQt::LeftButton) {
// We can't deal with it, but maybe the widget can do something clever
WaWidget::mousePressEvent(e);
}
@@ -68,7 +68,7 @@ void WaButton::mouseReleaseEvent(TQMouseEvent* e) {
else {
pressed = false;
- if (TQT_TQRECT_OBJECT(this->rect()).contains(e->pos())){
+ if (this->rect().contains(e->pos())){
if (_togglable) {
_toggled = !_toggled;
emit(toggleEvent(_toggled));
diff --git a/noatun/modules/winskin/waButton.h b/noatun/modules/winskin/waButton.h
index 69afecea..c8ecd05c 100644
--- a/noatun/modules/winskin/waButton.h
+++ b/noatun/modules/winskin/waButton.h
@@ -20,7 +20,7 @@
#include "waWidget.h"
class WaButton : public WaWidget {
- Q_OBJECT
+ TQ_OBJECT
public:
WaButton(int mapId);
diff --git a/noatun/modules/winskin/waClutterbar.h b/noatun/modules/winskin/waClutterbar.h
index 070d9e7e..29892a98 100644
--- a/noatun/modules/winskin/waClutterbar.h
+++ b/noatun/modules/winskin/waClutterbar.h
@@ -5,7 +5,7 @@
#include "waWidget.h"
class WaClutterbar : public WaWidget {
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/noatun/modules/winskin/waDigit.cpp b/noatun/modules/winskin/waDigit.cpp
index 8e53c45f..1feb3851 100644
--- a/noatun/modules/winskin/waDigit.cpp
+++ b/noatun/modules/winskin/waDigit.cpp
@@ -57,28 +57,28 @@ void WaDigit::paintEvent(TQPaintEvent *)
// continue parsing
mapRect = waSkinModel->getMapGeometry(_WA_MAPPING_MINUS);
if (len == 6) {
- waSkinModel->getDigit('-', TQT_TQPAINTDEVICE(this), mapRect.x() - x, mapRect.y() - y);
+ waSkinModel->getDigit('-', this, mapRect.x() - x, mapRect.y() - y);
time++;
}
else {
- waSkinModel->getDigit(' ', TQT_TQPAINTDEVICE(this), mapRect.x() - x, mapRect.y() - y);
+ waSkinModel->getDigit(' ', this, mapRect.x() - x, mapRect.y() - y);
}
mapRect = waSkinModel->getMapGeometry(_WA_MAPPING_DIGIT_1);
- waSkinModel->getDigit(time[0], TQT_TQPAINTDEVICE(this), mapRect.x() - x, mapRect.y() - y);
+ waSkinModel->getDigit(time[0], this, mapRect.x() - x, mapRect.y() - y);
mapRect = waSkinModel->getMapGeometry(_WA_MAPPING_DIGIT_2);
- waSkinModel->getDigit(time[1], TQT_TQPAINTDEVICE(this), mapRect.x() - x, mapRect.y() - y);
+ waSkinModel->getDigit(time[1], this, mapRect.x() - x, mapRect.y() - y);
mapRect = waSkinModel->getMapGeometry(_WA_MAPPING_DIGIT_3);
- waSkinModel->getDigit(time[3], TQT_TQPAINTDEVICE(this), mapRect.x() - x, mapRect.y() - y);
+ waSkinModel->getDigit(time[3], this, mapRect.x() - x, mapRect.y() - y);
mapRect = waSkinModel->getMapGeometry(_WA_MAPPING_DIGIT_4);
- waSkinModel->getDigit(time[4], TQT_TQPAINTDEVICE(this), mapRect.x() - x, mapRect.y() - y);
+ waSkinModel->getDigit(time[4], this, mapRect.x() - x, mapRect.y() - y);
}
void WaDigit::mousePressEvent(TQMouseEvent* e) {
- if (e->button() == Qt::LeftButton) {
+ if (e->button() == TQt::LeftButton) {
reverse_time = !reverse_time;
emit digitsClicked();
}
diff --git a/noatun/modules/winskin/waDigit.h b/noatun/modules/winskin/waDigit.h
index 8d159e71..2e8210ec 100644
--- a/noatun/modules/winskin/waDigit.h
+++ b/noatun/modules/winskin/waDigit.h
@@ -21,7 +21,7 @@
#include "waWidget.h"
class WaDigit : public WaWidget {
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/noatun/modules/winskin/waIndicator.h b/noatun/modules/winskin/waIndicator.h
index 48dcdab1..663bf0d9 100644
--- a/noatun/modules/winskin/waIndicator.h
+++ b/noatun/modules/winskin/waIndicator.h
@@ -21,7 +21,7 @@
#include "waWidget.h"
class WaIndicator : public WaWidget {
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/noatun/modules/winskin/waInfo.cpp b/noatun/modules/winskin/waInfo.cpp
index 25c088e3..1e55af78 100644
--- a/noatun/modules/winskin/waInfo.cpp
+++ b/noatun/modules/winskin/waInfo.cpp
@@ -25,8 +25,8 @@
WaInfo::WaInfo() : WaWidget(_WA_MAPPING_INFO)
{
- connect(WaSkinModel::instance(), TQT_SIGNAL(skinChanged()),
- this, TQT_SLOT(pixmapChange()));
+ connect(WaSkinModel::instance(), TQ_SIGNAL(skinChanged()),
+ this, TQ_SLOT(pixmapChange()));
completePixmap = new TQPixmap();
@@ -36,7 +36,7 @@ WaInfo::WaInfo() : WaWidget(_WA_MAPPING_INFO)
xGrabbedPos = -1;
timer = new TQTimer(this);
- connect(timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(timeEvent()));
+ connect(timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(timeEvent()));
}
WaInfo::~WaInfo()
@@ -132,7 +132,7 @@ void WaInfo::pixmapChange()
completePixmap->resize(TQMAX(n * _WA_TEXT_WIDTH, size.width()), _WA_TEXT_HEIGHT);
for (i = 0; i < n; i++) {
- WaSkinModel::instance()->getText(infoString[i], TQT_TQPAINTDEVICE(completePixmap), x, 0);
+ WaSkinModel::instance()->getText(infoString[i], completePixmap, x, 0);
x += _WA_TEXT_WIDTH;
}
@@ -140,7 +140,7 @@ void WaInfo::pixmapChange()
// fill the pixmap with spaces
if (x < size.width()) {
while (x < size.width()) {
- WaSkinModel::instance()->getText(' ', TQT_TQPAINTDEVICE(completePixmap), x, 0);
+ WaSkinModel::instance()->getText(' ', completePixmap, x, 0);
x += _WA_TEXT_WIDTH;
}
}
@@ -150,7 +150,7 @@ void WaInfo::pixmapChange()
}
void WaInfo::mousePressEvent (TQMouseEvent *e) {
- if (e->button() == Qt::LeftButton)
+ if (e->button() == TQt::LeftButton)
xGrabbedPos = (e->x() + xScrollPos) % completePixmap->width();
}
diff --git a/noatun/modules/winskin/waInfo.h b/noatun/modules/winskin/waInfo.h
index df29322a..a800cf54 100644
--- a/noatun/modules/winskin/waInfo.h
+++ b/noatun/modules/winskin/waInfo.h
@@ -22,7 +22,7 @@
#include "waWidget.h"
class WaInfo : public WaWidget {
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/noatun/modules/winskin/waJumpSlider.cpp b/noatun/modules/winskin/waJumpSlider.cpp
index b8750dc1..f38fc3c3 100644
--- a/noatun/modules/winskin/waJumpSlider.cpp
+++ b/noatun/modules/winskin/waJumpSlider.cpp
@@ -30,9 +30,9 @@ void WaJumpSlider::buildGui()
ws->setRange(0, 100);
ws->setValue(0);
- connect(ws, TQT_SIGNAL(sliderPressed()), this, TQT_SIGNAL(sliderPressed()));
- connect(ws, TQT_SIGNAL(sliderReleased()), this, TQT_SLOT(releasedSlider()));
- connect(ws, TQT_SIGNAL(valueChanged(int)), this, TQT_SIGNAL(valueChanged(int)));
+ connect(ws, TQ_SIGNAL(sliderPressed()), this, TQ_SIGNAL(sliderPressed()));
+ connect(ws, TQ_SIGNAL(sliderReleased()), this, TQ_SLOT(releasedSlider()));
+ connect(ws, TQ_SIGNAL(valueChanged(int)), this, TQ_SIGNAL(valueChanged(int)));
}
void WaJumpSlider::setJumpRange(int val)
diff --git a/noatun/modules/winskin/waJumpSlider.h b/noatun/modules/winskin/waJumpSlider.h
index dc92c388..50014aad 100644
--- a/noatun/modules/winskin/waJumpSlider.h
+++ b/noatun/modules/winskin/waJumpSlider.h
@@ -19,7 +19,7 @@
#include "waWidget.h"
class WaJumpSlider : public WaWidget {
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/noatun/modules/winskin/waLabel.cpp b/noatun/modules/winskin/waLabel.cpp
index 71f2baa2..7b452dac 100644
--- a/noatun/modules/winskin/waLabel.cpp
+++ b/noatun/modules/winskin/waLabel.cpp
@@ -19,8 +19,8 @@
WaLabel::WaLabel(int mapping) : WaWidget(mapping)
{
- connect(WaSkinModel::instance(), TQT_SIGNAL(skinChanged()),
- this, TQT_SLOT(pixmapChange()));
+ connect(WaSkinModel::instance(), TQ_SIGNAL(skinChanged()),
+ this, TQ_SLOT(pixmapChange()));
completePixmap = new TQPixmap();
@@ -58,7 +58,7 @@ void WaLabel::pixmapChange()
int n = label_text ? strlen(label_text) : 0;
for (int i = 0; i < n; i++)
- WaSkinModel::instance()->getText(label_text[i], TQT_TQPAINTDEVICE(completePixmap),
+ WaSkinModel::instance()->getText(label_text[i], completePixmap,
i * _WA_TEXT_WIDTH, 0);
}
diff --git a/noatun/modules/winskin/waLabel.h b/noatun/modules/winskin/waLabel.h
index 4bbc057c..ddaf8659 100644
--- a/noatun/modules/winskin/waLabel.h
+++ b/noatun/modules/winskin/waLabel.h
@@ -17,7 +17,7 @@
#include "waWidget.h"
class WaLabel : public WaWidget {
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/noatun/modules/winskin/waMain.h b/noatun/modules/winskin/waMain.h
index ba8aec08..ff175fd8 100644
--- a/noatun/modules/winskin/waMain.h
+++ b/noatun/modules/winskin/waMain.h
@@ -4,7 +4,7 @@
#include "waWidget.h"
class WaMain : WaWidget {
- Q_OBJECT
+ TQ_OBJECT
public:
WaMain();
diff --git a/noatun/modules/winskin/waRegion.cpp b/noatun/modules/winskin/waRegion.cpp
index fdbad9af..d4285022 100644
--- a/noatun/modules/winskin/waRegion.cpp
+++ b/noatun/modules/winskin/waRegion.cpp
@@ -10,7 +10,7 @@
*/
-#include <ksimpleconfig.h>
+#include <tdesimpleconfig.h>
#include <tqbitmap.h>
#include <tqpainter.h>
#include <tqregexp.h>
@@ -28,7 +28,7 @@ const char *numPointsNames[] = {"NumPoints", "numpoints", "Numpoints", "numPoint
WaRegion::WaRegion(TQString filename) {
// Load the region file, which happens to be in TDEConfig format
- KSimpleConfig regionFile(filename, true);
+ TDESimpleConfig regionFile(filename, true);
// Clear our variables by default
window_mask = 0;
diff --git a/noatun/modules/winskin/waSkin.cpp b/noatun/modules/winskin/waSkin.cpp
index 4cdef1ec..2127fda2 100644
--- a/noatun/modules/winskin/waSkin.cpp
+++ b/noatun/modules/winskin/waSkin.cpp
@@ -22,7 +22,7 @@
#include <kstdaction.h>
#include <tdeaction.h>
#include <tqdragobject.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <twin.h>
#include <time.h>
@@ -83,18 +83,18 @@ WaSkin::WaSkin() : TQWidget(0, "NoatunWinampSkin"), UserInterface()
title_shaded = false;
// These slots make Young Hickory love us
- connect( napp, TQT_SIGNAL(hideYourself()), this, TQT_SLOT(hide()) );
- connect( napp, TQT_SIGNAL(showYourself()), this, TQT_SLOT(show()) );
-
- connect(napp->player(), TQT_SIGNAL(playlistShown()), this,
- TQT_SLOT(playlistShown()));
- connect(napp->player(), TQT_SIGNAL(playlistHidden()), this,
- TQT_SLOT(playlistHidden()));
- connect(napp->player(), TQT_SIGNAL(loopTypeChange(int)), this,
- TQT_SLOT(loopChange(int)));
- connect(napp->player(), TQT_SIGNAL(newSong()), this, TQT_SLOT(newSong()));
-
- connect(napp->player(), TQT_SIGNAL(timeout()), this, TQT_SLOT(timetick()));
+ connect( napp, TQ_SIGNAL(hideYourself()), this, TQ_SLOT(hide()) );
+ connect( napp, TQ_SIGNAL(showYourself()), this, TQ_SLOT(show()) );
+
+ connect(napp->player(), TQ_SIGNAL(playlistShown()), this,
+ TQ_SLOT(playlistShown()));
+ connect(napp->player(), TQ_SIGNAL(playlistHidden()), this,
+ TQ_SLOT(playlistHidden()));
+ connect(napp->player(), TQ_SIGNAL(loopTypeChange(int)), this,
+ TQ_SLOT(loopChange(int)));
+ connect(napp->player(), TQ_SIGNAL(newSong()), this, TQ_SLOT(newSong()));
+
+ connect(napp->player(), TQ_SIGNAL(timeout()), this, TQ_SLOT(timetick()));
TDEConfig *config=TDEGlobal::config();
config->setGroup("Winskin");
@@ -106,13 +106,13 @@ WaSkin::WaSkin() : TQWidget(0, "NoatunWinampSkin"), UserInterface()
setIcon(SmallIcon("noatun"));
- TQObject::connect(waTitleBar, TQT_SIGNAL(shaded()), this, TQT_SLOT(shadeEvent()));
+ TQObject::connect(waTitleBar, TQ_SIGNAL(shaded()), this, TQ_SLOT(shadeEvent()));
// connect to players signals - so we can update our display if someone else
// changes settings...
- connect(napp->player(), TQT_SIGNAL(stopped()), this, TQT_SLOT(slotStopped()));
- connect(napp->player(), TQT_SIGNAL(playing()), this, TQT_SLOT(slotPlaying()));
- connect(napp->player(), TQT_SIGNAL(paused()), this, TQT_SLOT(slotPaused()));
+ connect(napp->player(), TQ_SIGNAL(stopped()), this, TQ_SLOT(slotStopped()));
+ connect(napp->player(), TQ_SIGNAL(playing()), this, TQ_SLOT(slotPlaying()));
+ connect(napp->player(), TQ_SIGNAL(paused()), this, TQ_SLOT(slotPaused()));
napp->player()->handleButtons();
@@ -126,7 +126,7 @@ WaSkin::WaSkin() : TQWidget(0, "NoatunWinampSkin"), UserInterface()
newSong();
// HACK: We won't get focus events otherwise
- setFocusPolicy(TQ_ClickFocus);
+ setFocusPolicy(TQWidget::ClickFocus);
show();
}
@@ -180,22 +180,22 @@ void WaSkin::createButtons()
menu = new WaButton(_WA_MAPPING_TITLE_MENU);
menu->setPixmapUp(_WA_SKIN_TITLE_MENU_NORM);
menu->setPixmapDown(_WA_SKIN_TITLE_MENU_PRES);
- connect(menu, TQT_SIGNAL(clicked()), this, TQT_SLOT(menuEvent()));
+ connect(menu, TQ_SIGNAL(clicked()), this, TQ_SLOT(menuEvent()));
minimize = new WaButton(_WA_MAPPING_TITLE_MIN);
minimize->setPixmapUp(_WA_SKIN_TITLE_MIN_NORM);
minimize->setPixmapDown(_WA_SKIN_TITLE_MIN_PRES);
- connect(minimize, TQT_SIGNAL(clicked()), this, TQT_SLOT(minimizeEvent()));
+ connect(minimize, TQ_SIGNAL(clicked()), this, TQ_SLOT(minimizeEvent()));
titleshade = new WaButton(_WA_MAPPING_TITLE_SHADE);
titleshade->setPixmapUp(_WA_SKIN_TITLE_SHADE_NORM);
titleshade->setPixmapDown(_WA_SKIN_TITLE_SHADE_PRES);
- connect(titleshade, TQT_SIGNAL(clicked()), this, TQT_SLOT(shadeEvent()));
+ connect(titleshade, TQ_SIGNAL(clicked()), this, TQ_SLOT(shadeEvent()));
close = new WaButton(_WA_MAPPING_TITLE_CLOSE);
close->setPixmapUp(_WA_SKIN_TITLE_CLOSE_NORM);
close->setPixmapDown(_WA_SKIN_TITLE_CLOSE_PRES);
- connect(close, TQT_SIGNAL(clicked()), this, TQT_SLOT(doClose()));
+ connect(close, TQ_SIGNAL(clicked()), this, TQ_SLOT(doClose()));
shuffle->setTogglable(true);
shuffle->show();
@@ -203,44 +203,44 @@ void WaSkin::createButtons()
repeat->setTogglable(true);
playlist->setTogglable(true);
- connect(shuffle, TQT_SIGNAL(toggleEvent(bool)),
- this, TQT_SLOT(shuffleClickedEvent(bool)));
+ connect(shuffle, TQ_SIGNAL(toggleEvent(bool)),
+ this, TQ_SLOT(shuffleClickedEvent(bool)));
- connect(repeat, TQT_SIGNAL(toggleEvent(bool)),
- this, TQT_SLOT(repeatClickedEvent(bool)));
+ connect(repeat, TQ_SIGNAL(toggleEvent(bool)),
+ this, TQ_SLOT(repeatClickedEvent(bool)));
- connect(playlist, TQT_SIGNAL(toggleEvent(bool)),
- this, TQT_SLOT(playlistClickedEvent(bool)));
+ connect(playlist, TQ_SIGNAL(toggleEvent(bool)),
+ this, TQ_SLOT(playlistClickedEvent(bool)));
- connect(eq, TQT_SIGNAL(clicked()),
- this, TQT_SLOT(eqClickedEvent()));
+ connect(eq, TQ_SIGNAL(clicked()),
+ this, TQ_SLOT(eqClickedEvent()));
prev->setPixmapUp(_WA_SKIN_CBUTTONS_PREV_NORM);
prev->setPixmapDown(_WA_SKIN_CBUTTONS_PREV_PRES);
- connect(prev, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(back()));
+ connect(prev, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(back()));
play->setPixmapUp(_WA_SKIN_CBUTTONS_PLAY_NORM);
play->setPixmapDown(_WA_SKIN_CBUTTONS_PLAY_PRES);
- connect(play, TQT_SIGNAL(clicked()), this, TQT_SLOT(playCurrentEvent()));
+ connect(play, TQ_SIGNAL(clicked()), this, TQ_SLOT(playCurrentEvent()));
pause->setPixmapUp(_WA_SKIN_CBUTTONS_PAUSE_NORM);
pause->setPixmapDown(_WA_SKIN_CBUTTONS_PAUSE_PRES);
- connect(pause, TQT_SIGNAL(clicked()), this, TQT_SLOT(playPauseEvent()));
+ connect(pause, TQ_SIGNAL(clicked()), this, TQ_SLOT(playPauseEvent()));
stop->setPixmapUp(_WA_SKIN_CBUTTONS_STOP_NORM);
stop->setPixmapDown(_WA_SKIN_CBUTTONS_STOP_PRES);
- connect(stop, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(stop()));
+ connect(stop, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(stop()));
next->setPixmapUp(_WA_SKIN_CBUTTONS_NEXT_NORM);
next->setPixmapDown(_WA_SKIN_CBUTTONS_NEXT_PRES);
- connect(next, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(forward()));
+ connect(next, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(forward()));
eject->setPixmapUp(_WA_SKIN_CBUTTONS_EJECT_NORM);
eject->setPixmapDown(_WA_SKIN_CBUTTONS_EJECT_PRESS);
- connect(eject, TQT_SIGNAL(clicked()), napp, TQT_SLOT(fileOpen()));
+ connect(eject, TQ_SIGNAL(clicked()), napp, TQ_SLOT(fileOpen()));
shuffle->setPixmapUp(_WA_SKIN_SHUFREP_SHUFFLE_NOT_SET_NORM);
shuffle->setPixmapDown(_WA_SKIN_SHUFREP_SHUFFLE_NOT_SET_PRES);
@@ -280,25 +280,25 @@ void WaSkin::createHighLevelElements()
waVolumeSlider = new WaVolumeSlider();
waVolumeSlider->buildGui();
- connect(waVolumeSlider, TQT_SIGNAL(volumeSetValue(int)),
- this, TQT_SLOT(volumeSetValue(int)));
- connect(waVolumeSlider, TQT_SIGNAL(sliderPressed()),
- this, TQT_SLOT(volumeSliderPressed()));
- connect(waVolumeSlider, TQT_SIGNAL(sliderReleased()),
- this, TQT_SLOT(volumeSliderReleased()));
+ connect(waVolumeSlider, TQ_SIGNAL(volumeSetValue(int)),
+ this, TQ_SLOT(volumeSetValue(int)));
+ connect(waVolumeSlider, TQ_SIGNAL(sliderPressed()),
+ this, TQ_SLOT(volumeSliderPressed()));
+ connect(waVolumeSlider, TQ_SIGNAL(sliderReleased()),
+ this, TQ_SLOT(volumeSliderReleased()));
waBalanceSlider = new WaBalanceSlider();
waBalanceSlider->buildGui();
- connect(waBalanceSlider, TQT_SIGNAL(balanceSetValue(int)),
- this, TQT_SLOT(balanceSetValue(int)));
- connect(waBalanceSlider, TQT_SIGNAL(sliderPressed()),
- this, TQT_SLOT(balanceSliderPressed()));
- connect(waBalanceSlider, TQT_SIGNAL(sliderReleased()),
- this, TQT_SLOT(balanceSliderReleased()));
+ connect(waBalanceSlider, TQ_SIGNAL(balanceSetValue(int)),
+ this, TQ_SLOT(balanceSetValue(int)));
+ connect(waBalanceSlider, TQ_SIGNAL(sliderPressed()),
+ this, TQ_SLOT(balanceSliderPressed()));
+ connect(waBalanceSlider, TQ_SIGNAL(sliderReleased()),
+ this, TQ_SLOT(balanceSliderReleased()));
waDigit = new WaDigit();
- connect(waDigit, TQT_SIGNAL(digitsClicked()), this, TQT_SLOT(digitsClicked()));
+ connect(waDigit, TQ_SIGNAL(digitsClicked()), this, TQ_SLOT(digitsClicked()));
waBPS = new WaLabel(_WA_MAPPING_BPS);
waFreq = new WaLabel(_WA_MAPPING_FREQ);
@@ -310,13 +310,13 @@ void WaSkin::createHighLevelElements()
waStereo = new WaIndicator(_WA_MAPPING_MONOSTER_STEREO, _WA_SKIN_MONOSTER_STEREO_TRUE, _WA_SKIN_MONOSTER_STEREO_FALSE);
waMono = new WaIndicator(_WA_MAPPING_MONOSTER_MONO, _WA_SKIN_MONOSTER_MONO_TRUE, _WA_SKIN_MONOSTER_MONO_FALSE);
- connect(waJumpSlider, TQT_SIGNAL(jump(int)), this, TQT_SLOT(jump(int)));
- connect(waJumpSlider, TQT_SIGNAL(sliderPressed()),
- this, TQT_SLOT(jumpSliderPressed()));
- connect(waJumpSlider, TQT_SIGNAL(sliderReleased()),
- this, TQT_SLOT(jumpSliderReleased()));
- connect(waJumpSlider, TQT_SIGNAL(valueChanged(int)),
- this, TQT_SLOT(jumpValueChanged(int)));
+ connect(waJumpSlider, TQ_SIGNAL(jump(int)), this, TQ_SLOT(jump(int)));
+ connect(waJumpSlider, TQ_SIGNAL(sliderPressed()),
+ this, TQ_SLOT(jumpSliderPressed()));
+ connect(waJumpSlider, TQ_SIGNAL(sliderReleased()),
+ this, TQ_SLOT(jumpSliderReleased()));
+ connect(waJumpSlider, TQ_SIGNAL(valueChanged(int)),
+ this, TQ_SLOT(jumpValueChanged(int)));
}
@@ -518,7 +518,7 @@ void WaSkin::doUnload() {
}
void WaSkin::doClose() {
- TQTimer::singleShot(0, this, TQT_SLOT(doUnload()));
+ TQTimer::singleShot(0, this, TQ_SLOT(doUnload()));
}
void WaSkin::dragEnterEvent(TQDragEnterEvent * event)
diff --git a/noatun/modules/winskin/waSkin.h b/noatun/modules/winskin/waSkin.h
index bba125cd..20b137a5 100644
--- a/noatun/modules/winskin/waSkin.h
+++ b/noatun/modules/winskin/waSkin.h
@@ -45,7 +45,7 @@ class WaSkin;
extern WaSkin *_waskin_instance;
class WaSkin : public TQWidget, public UserInterface {
- Q_OBJECT
+ TQ_OBJECT
NOATUNPLUGIND
WaSkinModel *waSkinModel;
diff --git a/noatun/modules/winskin/waSkinManager.cpp b/noatun/modules/winskin/waSkinManager.cpp
index 3363292c..99c2df99 100644
--- a/noatun/modules/winskin/waSkinManager.cpp
+++ b/noatun/modules/winskin/waSkinManager.cpp
@@ -1,7 +1,7 @@
#include <tdeglobal.h>
#include <tqfileinfo.h>
#include <tqregexp.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <tqdir.h>
#include <kdebug.h>
#include <kmimetype.h>
@@ -73,7 +73,7 @@ bool WaSkinManager::installSkin(TQString _url) {
if (mimetype == "inode/directory")
{
TDEIO::Job *job = TDEIO::copy(url, location, !url.isLocalFile());
- connect(job, TQT_SIGNAL(result(TDEIO::Job *)), this, TQT_SIGNAL(updateSkinList()));
+ connect(job, TQ_SIGNAL(result(TDEIO::Job *)), this, TQ_SIGNAL(updateSkinList()));
return true;
}
else if ((mimetype == "interface/x-winamp-skin") || (mimetype == "application/x-zip"))
@@ -84,7 +84,7 @@ bool WaSkinManager::installSkin(TQString _url) {
TQString base_path;
base_path = location + "/" + TQFileInfo(url.path()).baseName().replace(TQRegExp("_"), " ");
TDEIO::Job *job = TDEIO::copy("zip:" + url.path(), base_path);
- connect(job, TQT_SIGNAL(result(TDEIO::Job *)), this, TQT_SIGNAL(updateSkinList()));
+ connect(job, TQ_SIGNAL(result(TDEIO::Job *)), this, TQ_SIGNAL(updateSkinList()));
return true;
}
@@ -99,7 +99,7 @@ bool WaSkinManager::removeSkin(TQString skinName) {
TQStringList skins = TDEGlobal::dirs()->findDirs("data", "noatun/skins/winamp/" + skinName);
TDEIO::Job *job = TDEIO::del(KURL(skins[0]), false, false);
- connect(job, TQT_SIGNAL(result(TDEIO::Job *)), this, TQT_SIGNAL(updateSkinList()));
+ connect(job, TQ_SIGNAL(result(TDEIO::Job *)), this, TQ_SIGNAL(updateSkinList()));
return true;
}
diff --git a/noatun/modules/winskin/waSkinManager.h b/noatun/modules/winskin/waSkinManager.h
index a3b06c45..dd9f7815 100644
--- a/noatun/modules/winskin/waSkinManager.h
+++ b/noatun/modules/winskin/waSkinManager.h
@@ -8,7 +8,7 @@
#include <tqmap.h>
class WaSkinManager : public TQObject, public DCOPObject {
-Q_OBJECT
+TQ_OBJECT
//
K_DCOP
diff --git a/noatun/modules/winskin/waSkinModel.cpp b/noatun/modules/winskin/waSkinModel.cpp
index 88c1f460..188c16be 100644
--- a/noatun/modules/winskin/waSkinModel.cpp
+++ b/noatun/modules/winskin/waSkinModel.cpp
@@ -17,7 +17,7 @@
#include <tqstringlist.h>
#include <tqbitmap.h>
#include <kdebug.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include "waSkinMapping.h"
#include "waShadeMapping.h"
diff --git a/noatun/modules/winskin/waSkinModel.h b/noatun/modules/winskin/waSkinModel.h
index 45898c45..88430293 100644
--- a/noatun/modules/winskin/waSkinModel.h
+++ b/noatun/modules/winskin/waSkinModel.h
@@ -26,7 +26,7 @@ class WaSkinModel;
extern WaSkinModel *_waskinmodel_instance;
class WaSkinModel : public TQObject {
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/noatun/modules/winskin/waSlider.cpp b/noatun/modules/winskin/waSlider.cpp
index 8c97c272..b3705e9d 100644
--- a/noatun/modules/winskin/waSlider.cpp
+++ b/noatun/modules/winskin/waSlider.cpp
@@ -102,7 +102,7 @@ void WaSlider::updateSliderPos(int value)
}
void WaSlider::mousePressEvent(TQMouseEvent *e) {
- if (e->button() != Qt::LeftButton && e->button() != Qt::MidButton) {
+ if (e->button() != TQt::LeftButton && e->button() != TQt::MidButton) {
WaWidget::mousePressEvent(e);
return;
}
diff --git a/noatun/modules/winskin/waSlider.h b/noatun/modules/winskin/waSlider.h
index b5e50a0e..0758231e 100644
--- a/noatun/modules/winskin/waSlider.h
+++ b/noatun/modules/winskin/waSlider.h
@@ -22,7 +22,7 @@
#include "waButton.h"
class WaSlider : public WaWidget {
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/noatun/modules/winskin/waStatus.h b/noatun/modules/winskin/waStatus.h
index 8bf0067e..0e02103b 100644
--- a/noatun/modules/winskin/waStatus.h
+++ b/noatun/modules/winskin/waStatus.h
@@ -23,7 +23,7 @@
enum status_enum {STATUS_PLAYING, STATUS_STOPPED, STATUS_PAUSED};
class WaStatus : public WaWidget {
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/noatun/modules/winskin/waTitleBar.cpp b/noatun/modules/winskin/waTitleBar.cpp
index 9570dac0..fa1e0e7c 100644
--- a/noatun/modules/winskin/waTitleBar.cpp
+++ b/noatun/modules/winskin/waTitleBar.cpp
@@ -34,7 +34,7 @@ WaTitleBar::~WaTitleBar()
void WaTitleBar::mousePressEvent(TQMouseEvent * e)
{
- if (e->button() != Qt::RightButton) {
+ if (e->button() != TQt::RightButton) {
if (!moving) {
moving = true;
mDragStart = e->pos();
@@ -55,7 +55,7 @@ void WaTitleBar::mouseDoubleClickEvent(TQMouseEvent *) {
void WaTitleBar::mouseReleaseEvent(TQMouseEvent * e)
{
- if (e->button() != Qt::RightButton) {
+ if (e->button() != TQt::RightButton) {
moving = false;
update();
return;
diff --git a/noatun/modules/winskin/waTitleBar.h b/noatun/modules/winskin/waTitleBar.h
index 2d9e3fde..8e6096bc 100644
--- a/noatun/modules/winskin/waTitleBar.h
+++ b/noatun/modules/winskin/waTitleBar.h
@@ -28,7 +28,7 @@
class WaTitleBar : public WaIndicator {
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/noatun/modules/winskin/waVolumeSlider.cpp b/noatun/modules/winskin/waVolumeSlider.cpp
index f61e22f1..712e974d 100644
--- a/noatun/modules/winskin/waVolumeSlider.cpp
+++ b/noatun/modules/winskin/waVolumeSlider.cpp
@@ -33,10 +33,10 @@ void WaVolumeSlider::buildGui()
ws->setPixmapSliderButtonDown(_WA_SKIN_VOLUME_SLIDER_PRES);
ws->setPixmapSliderBar(_WA_SKIN_VOLUME_BAR);
- connect(ws, TQT_SIGNAL(valueChanged(int)), this,
- TQT_SIGNAL(volumeSetValue(int)));
- connect(ws, TQT_SIGNAL(sliderPressed()), TQT_SIGNAL(sliderPressed()));
- connect(ws, TQT_SIGNAL(sliderReleased()), TQT_SIGNAL(sliderReleased()));
+ connect(ws, TQ_SIGNAL(valueChanged(int)), this,
+ TQ_SIGNAL(volumeSetValue(int)));
+ connect(ws, TQ_SIGNAL(sliderPressed()), TQ_SIGNAL(sliderPressed()));
+ connect(ws, TQ_SIGNAL(sliderReleased()), TQ_SIGNAL(sliderReleased()));
}
void WaVolumeSlider::setVolumeValue(int val)
diff --git a/noatun/modules/winskin/waVolumeSlider.h b/noatun/modules/winskin/waVolumeSlider.h
index 9d872c9f..a528abef 100644
--- a/noatun/modules/winskin/waVolumeSlider.h
+++ b/noatun/modules/winskin/waVolumeSlider.h
@@ -19,7 +19,7 @@
#include "waWidget.h"
class WaVolumeSlider:public WaWidget {
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/noatun/modules/winskin/waWidget.cpp b/noatun/modules/winskin/waWidget.cpp
index 4a44f252..b8c4b1ac 100644
--- a/noatun/modules/winskin/waWidget.cpp
+++ b/noatun/modules/winskin/waWidget.cpp
@@ -6,7 +6,7 @@
WaWidget::WaWidget(int _mapping) : TQWidget(WaSkin::instance()) {
mapping = _mapping;
setBackgroundMode(NoBackground);
- connect (WaSkinModel::instance(), TQT_SIGNAL(skinChanged()), this, TQT_SLOT(skinChanged()));
+ connect (WaSkinModel::instance(), TQ_SIGNAL(skinChanged()), this, TQ_SLOT(skinChanged()));
}
WaWidget::~WaWidget() {
@@ -14,31 +14,31 @@ WaWidget::~WaWidget() {
void WaWidget::paintPixmap(int pixmap_mapping) {
if (pixmap_mapping != -1)
- WaSkinModel::instance()->bltTo(pixmap_mapping, TQT_TQPAINTDEVICE(this), 0, 0);
+ WaSkinModel::instance()->bltTo(pixmap_mapping, this, 0, 0);
else
- WaSkinModel::instance()->paintBackgroundTo(mapping, TQT_TQPAINTDEVICE(this), 0, 0);
+ WaSkinModel::instance()->paintBackgroundTo(mapping, this, 0, 0);
}
void WaWidget::paintPixmap(int pixmap_mapping, int x, int y) {
if (pixmap_mapping != -1)
- WaSkinModel::instance()->bltTo(pixmap_mapping, TQT_TQPAINTDEVICE(this), x, y);
+ WaSkinModel::instance()->bltTo(pixmap_mapping, this, x, y);
else
- WaSkinModel::instance()->paintBackgroundTo(mapping, TQT_TQPAINTDEVICE(this), x, y);
+ WaSkinModel::instance()->paintBackgroundTo(mapping, this, x, y);
}
void WaWidget::paintPixmap(int pixmap_mapping, int argument) {
if (pixmap_mapping != -1)
- WaSkinModel::instance()->bltTo(pixmap_mapping, TQT_TQPAINTDEVICE(this), 0, 0, argument);
+ WaSkinModel::instance()->bltTo(pixmap_mapping, this, 0, 0, argument);
else
- WaSkinModel::instance()->paintBackgroundTo(mapping, TQT_TQPAINTDEVICE(this), 0, 0);
+ WaSkinModel::instance()->paintBackgroundTo(mapping, this, 0, 0);
}
void WaWidget::paintPixmap(int pixmap_mapping, int argument, int x, int y) {
if (pixmap_mapping != -1)
- WaSkinModel::instance()->bltTo(pixmap_mapping, TQT_TQPAINTDEVICE(this), x, y, argument);
+ WaSkinModel::instance()->bltTo(pixmap_mapping, this, x, y, argument);
else
- WaSkinModel::instance()->paintBackgroundTo(mapping, TQT_TQPAINTDEVICE(this), x, y);
+ WaSkinModel::instance()->paintBackgroundTo(mapping, this, x, y);
}
TQSize WaWidget::sizeHint() {
@@ -46,7 +46,7 @@ TQSize WaWidget::sizeHint() {
}
void WaWidget::mousePressEvent(TQMouseEvent *e) {
- if (e->button() == Qt::RightButton)
+ if (e->button() == TQt::RightButton)
NoatunStdAction::ContextMenu::showContextMenu();
}
diff --git a/noatun/modules/winskin/waWidget.h b/noatun/modules/winskin/waWidget.h
index fa86f26b..3f2f018a 100644
--- a/noatun/modules/winskin/waWidget.h
+++ b/noatun/modules/winskin/waWidget.h
@@ -5,7 +5,7 @@
#include "waSkinModel.h"
class WaWidget : public TQWidget {
- Q_OBJECT
+ TQ_OBJECT
public:
WaWidget(int mapping);
@@ -19,7 +19,7 @@ public:
void paintPixmap(int wa_mapping, int x, int y);
void paintPixmap(int wa_mapping, int number, int x, int y);
- void paintBackground() { WaSkinModel::instance()->paintBackgroundTo(mapping, TQT_TQPAINTDEVICE(this), 0, 0); }
+ void paintBackground() { WaSkinModel::instance()->paintBackgroundTo(mapping, this, 0, 0); }
protected:
void mousePressEvent(TQMouseEvent *);
diff --git a/noatun/modules/winskin/winSkinConfig.cpp b/noatun/modules/winskin/winSkinConfig.cpp
index c7dad1ae..03e469f1 100644
--- a/noatun/modules/winskin/winSkinConfig.cpp
+++ b/noatun/modules/winskin/winSkinConfig.cpp
@@ -13,7 +13,7 @@
#include <tdefile.h>
#include <tdefiledialog.h>
#include <tdemessagebox.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <kurlrequester.h>
#include <kurlrequesterdlg.h>
#include <tqdir.h>
@@ -27,7 +27,7 @@ WinSkinConfig::WinSkinConfig(TQWidget * parent, WaSkinManager *waSkinManager) :
CModule(i18n("Winskin"),
i18n("Skin Selection for the Winskin Plugin"),
"style",
- TQT_TQOBJECT(parent))
+ parent)
{
// Make a token horizontal layout box
vbox = new TQVBoxLayout(this);
@@ -48,14 +48,14 @@ WinSkinConfig::WinSkinConfig(TQWidget * parent, WaSkinManager *waSkinManager) :
hbox->addWidget(buttonRemove);
vbox->addLayout(hbox);
- connect( skin_list, TQT_SIGNAL(highlighted(const TQString &)), this, TQT_SLOT(selected()));
- connect( buttonInstall, TQT_SIGNAL(clicked()), this, TQT_SLOT(install()));
- connect( buttonRemove, TQT_SIGNAL(clicked()), this, TQT_SLOT(remove()));
- connect(waSkinManager, TQT_SIGNAL(updateSkinList()), this, TQT_SLOT(reopen()));
+ connect( skin_list, TQ_SIGNAL(highlighted(const TQString &)), this, TQ_SLOT(selected()));
+ connect( buttonInstall, TQ_SIGNAL(clicked()), this, TQ_SLOT(install()));
+ connect( buttonRemove, TQ_SIGNAL(clicked()), this, TQ_SLOT(remove()));
+ connect(waSkinManager, TQ_SIGNAL(updateSkinList()), this, TQ_SLOT(reopen()));
mWaSkinManager = waSkinManager;
- TQGroupBox *settingsBox = new TQGroupBox( 1,Qt::Vertical, i18n("Settings"), this );
+ TQGroupBox *settingsBox = new TQGroupBox( 1,TQt::Vertical, i18n("Settings"), this );
vbox->addWidget(settingsBox);
TQHBox *box = new TQHBox(settingsBox);
@@ -68,7 +68,7 @@ WinSkinConfig::WinSkinConfig(TQWidget * parent, WaSkinManager *waSkinManager) :
scrollSpeed->setMinValue( 0 );
scrollSpeed->setMaxValue( 50 );
scrollSpeed->setPageStep( 1 );
- scrollSpeed->setOrientation( Qt::Horizontal );
+ scrollSpeed->setOrientation( TQt::Horizontal );
scrollSpeed->setTickmarks( TQSlider::NoMarks );
label = new TQLabel(i18n("Fast"), box);
diff --git a/noatun/modules/winskin/winSkinConfig.h b/noatun/modules/winskin/winSkinConfig.h
index b25b7178..99220e6e 100644
--- a/noatun/modules/winskin/winSkinConfig.h
+++ b/noatun/modules/winskin/winSkinConfig.h
@@ -9,7 +9,7 @@ class WaSkinManager;
class TQSlider;
class WinSkinConfig:public CModule {
- Q_OBJECT
+ TQ_OBJECT
public:
WinSkinConfig(TQWidget * parent, WaSkinManager *waManager);
diff --git a/noatun/modules/winskin/winSkinVis.h b/noatun/modules/winskin/winSkinVis.h
index 88d756c4..502c507c 100644
--- a/noatun/modules/winskin/winSkinVis.h
+++ b/noatun/modules/winskin/winSkinVis.h
@@ -24,7 +24,7 @@
#include "vis/winskinvis.h"
class WinSkinVis : public TQObject, public Visualization {
- Q_OBJECT
+ TQ_OBJECT
public: