summaryrefslogtreecommitdiffstats
path: root/noatun
diff options
context:
space:
mode:
Diffstat (limited to 'noatun')
-rw-r--r--noatun/app/main.cpp2
-rw-r--r--noatun/library/app.cpp10
-rw-r--r--noatun/library/cmodule.cpp6
-rw-r--r--noatun/library/cmodule.h2
-rw-r--r--noatun/library/controls.cpp12
-rw-r--r--noatun/library/downloader.cpp13
-rw-r--r--noatun/library/effectview.cpp22
-rw-r--r--noatun/library/effectview.h4
-rw-r--r--noatun/library/engine.cpp10
-rw-r--r--noatun/library/equalizer.cpp20
-rw-r--r--noatun/library/equalizerview.cpp58
-rw-r--r--noatun/library/equalizerview.h6
-rw-r--r--noatun/library/globalvideo.h2
-rw-r--r--noatun/library/mimetypetree.h2
-rw-r--r--noatun/library/noatun/app.h4
-rw-r--r--noatun/library/noatun/controls.h10
-rw-r--r--noatun/library/noatun/downloader.h2
-rw-r--r--noatun/library/noatun/effects.h2
-rw-r--r--noatun/library/noatun/engine.h4
-rw-r--r--noatun/library/noatun/equalizer.h2
-rw-r--r--noatun/library/noatun/player.h4
-rw-r--r--noatun/library/noatun/playlist.h6
-rw-r--r--noatun/library/noatun/plugin.h16
-rw-r--r--noatun/library/noatun/pluginloader.h2
-rw-r--r--noatun/library/noatun/pref.h6
-rw-r--r--noatun/library/noatun/scrollinglabel.h2
-rw-r--r--noatun/library/noatun/stdaction.h36
-rw-r--r--noatun/library/noatun/stereobuttonaction.h2
-rw-r--r--noatun/library/noatun/vequalizer.h10
-rw-r--r--noatun/library/noatun/video.h2
-rw-r--r--noatun/library/noatunstdaction.cpp74
-rw-r--r--noatun/library/noatuntags/tags.cpp16
-rw-r--r--noatun/library/noatuntags/tagsgetter.h4
-rw-r--r--noatun/library/player.cpp10
-rw-r--r--noatun/library/playlist.cpp6
-rw-r--r--noatun/library/playlistsaver.cpp2
-rw-r--r--noatun/library/plugin.cpp2
-rw-r--r--noatun/library/plugin_deps.h2
-rw-r--r--noatun/library/pluginmodule.cpp8
-rw-r--r--noatun/library/pluginmodule.h4
-rw-r--r--noatun/library/pref.cpp6
-rw-r--r--noatun/library/scrollinglabel.cpp4
-rw-r--r--noatun/library/titleproxy.cpp14
-rw-r--r--noatun/library/titleproxy.h4
-rw-r--r--noatun/library/video.cpp16
-rw-r--r--noatun/modules/artseffects/extrastereogui_impl.cpp2
-rw-r--r--noatun/modules/dcopiface/dcopiface.cpp4
-rw-r--r--noatun/modules/dcopiface/dcopiface.h2
-rw-r--r--noatun/modules/excellent/noatunui.cpp2
-rw-r--r--noatun/modules/excellent/userinterface.cpp40
-rw-r--r--noatun/modules/excellent/userinterface.h2
-rw-r--r--noatun/modules/htmlexport/htmlexport.cpp4
-rw-r--r--noatun/modules/htmlexport/htmlexport.h4
-rw-r--r--noatun/modules/infrared/infrared.cpp8
-rw-r--r--noatun/modules/infrared/infrared.h2
-rw-r--r--noatun/modules/infrared/irprefs.cpp18
-rw-r--r--noatun/modules/infrared/irprefs.h2
-rw-r--r--noatun/modules/infrared/lirc.cpp2
-rw-r--r--noatun/modules/infrared/lirc.h2
-rw-r--r--noatun/modules/kaiman/SKIN-SPECS2
-rw-r--r--noatun/modules/kaiman/noatunui.cpp2
-rw-r--r--noatun/modules/kaiman/pref.h2
-rw-r--r--noatun/modules/kaiman/style.cpp10
-rw-r--r--noatun/modules/kaiman/style.h22
-rw-r--r--noatun/modules/kaiman/userinterface.cpp60
-rw-r--r--noatun/modules/kaiman/userinterface.h2
-rw-r--r--noatun/modules/keyz/keyz.cpp36
-rw-r--r--noatun/modules/keyz/keyz.h4
-rw-r--r--noatun/modules/kjofol-skin/kjbutton.cpp8
-rw-r--r--noatun/modules/kjofol-skin/kjbutton.h2
-rw-r--r--noatun/modules/kjofol-skin/kjequalizer.cpp2
-rw-r--r--noatun/modules/kjofol-skin/kjequalizer.h2
-rw-r--r--noatun/modules/kjofol-skin/kjloader.cpp34
-rw-r--r--noatun/modules/kjofol-skin/kjloader.h2
-rw-r--r--noatun/modules/kjofol-skin/kjprefs.cpp10
-rw-r--r--noatun/modules/kjofol-skin/kjprefs.h2
-rw-r--r--noatun/modules/kjofol-skin/kjtextdisplay.h2
-rw-r--r--noatun/modules/kjofol-skin/noatunui.cpp2
-rw-r--r--noatun/modules/making_plugins2
-rw-r--r--noatun/modules/marquis/marquis.cpp6
-rw-r--r--noatun/modules/marquis/marquis.h2
-rw-r--r--noatun/modules/marquis/plugin.cpp2
-rw-r--r--noatun/modules/metatag/edit.cpp20
-rw-r--r--noatun/modules/metatag/edit.h2
-rw-r--r--noatun/modules/metatag/metatag.cpp8
-rw-r--r--noatun/modules/metatag/metatag.h2
-rw-r--r--noatun/modules/monoscope/monoscope.cpp4
-rw-r--r--noatun/modules/monoscope/monoscope.h2
-rw-r--r--noatun/modules/net/net.cpp4
-rw-r--r--noatun/modules/net/net.h2
-rw-r--r--noatun/modules/noatunui/noatunui.cpp2
-rw-r--r--noatun/modules/noatunui/userinterface.cpp56
-rw-r--r--noatun/modules/noatunui/userinterface.h2
-rw-r--r--noatun/modules/simple/noatunui.cpp2
-rw-r--r--noatun/modules/simple/propertiesdialog.ui4
-rw-r--r--noatun/modules/simple/userinterface.cpp60
-rw-r--r--noatun/modules/simple/userinterface.h2
-rw-r--r--noatun/modules/splitplaylist/find.cpp6
-rw-r--r--noatun/modules/splitplaylist/find.h2
-rw-r--r--noatun/modules/splitplaylist/playlist.cpp6
-rw-r--r--noatun/modules/splitplaylist/playlist.h2
-rw-r--r--noatun/modules/splitplaylist/splitplaylist.cpp2
-rw-r--r--noatun/modules/splitplaylist/view.cpp61
-rw-r--r--noatun/modules/splitplaylist/view.h4
-rw-r--r--noatun/modules/systray/cmodule.cpp6
-rw-r--r--noatun/modules/systray/cmodule.h2
-rw-r--r--noatun/modules/systray/kitsystemtray.cpp4
-rw-r--r--noatun/modules/systray/kitsystemtray.h2
-rw-r--r--noatun/modules/systray/noatunui.cpp2
-rw-r--r--noatun/modules/systray/systray.cpp30
-rw-r--r--noatun/modules/systray/systray.h2
-rw-r--r--noatun/modules/voiceprint/prefs.h2
-rw-r--r--noatun/modules/voiceprint/voiceprint.cpp4
-rw-r--r--noatun/modules/voiceprint/voiceprint.h2
-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/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/waSkin.cpp112
-rw-r--r--noatun/modules/winskin/waSkin.h2
-rw-r--r--noatun/modules/winskin/waSkinManager.cpp6
-rw-r--r--noatun/modules/winskin/waSkinManager.h2
-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.cpp14
-rw-r--r--noatun/modules/winskin/winSkinConfig.h2
-rw-r--r--noatun/modules/winskin/winSkinVis.h2
149 files changed, 676 insertions, 672 deletions
diff --git a/noatun/app/main.cpp b/noatun/app/main.cpp
index d39b2735..85f6571c 100644
--- a/noatun/app/main.cpp
+++ b/noatun/app/main.cpp
@@ -14,7 +14,7 @@ static TDECmdLineOptions options[] =
TDECmdLineLastOption
};
-extern "C" KDE_EXPORT int kdemain(int argc, char **argv)
+extern "C" TDE_EXPORT int kdemain(int argc, char **argv)
{
TDEAboutData aboutData("noatun", I18N_NOOP("Noatun"),
version, description, TDEAboutData::License_BSD,
diff --git a/noatun/library/app.cpp b/noatun/library/app.cpp
index 1bd1fb6b..e93509d9 100644
--- a/noatun/library/app.cpp
+++ b/noatun/library/app.cpp
@@ -88,9 +88,9 @@ NoatunApp::NoatunApp()
mLibraryLoader->add("dcopiface.plugin");
- new General(TQT_TQOBJECT(this)); // 25
- new Plugins(TQT_TQOBJECT(this)); // 149
-// new Types(TQT_TQOBJECT(this));
+ new General(this); // 25
+ new Plugins(this); // 149
+// new Types(this);
mPlayer=new Player; // 139
d->effects=new Effects; // 1
@@ -101,7 +101,7 @@ NoatunApp::NoatunApp()
mEffectView=new EffectView; // 859
mEqualizerView=new EqualizerView; // 24
- TQTimer::singleShot(0, mDownloader, TQT_SLOT(start()));
+ TQTimer::singleShot(0, mDownloader, TQ_SLOT(start()));
::globalVideo = new GlobalVideo;
@@ -363,7 +363,7 @@ void NoatunApp::pluginMenuRemove(int id)
NoatunStdAction::PluginActionMenu *NoatunApp::pluginActionMenu()
{
if (!mPluginActionMenu)
- mPluginActionMenu = new NoatunStdAction::PluginActionMenu(TQT_TQOBJECT(this), "menu_actions");
+ mPluginActionMenu = new NoatunStdAction::PluginActionMenu(this, "menu_actions");
return mPluginActionMenu;
}
diff --git a/noatun/library/cmodule.cpp b/noatun/library/cmodule.cpp
index 8e5f184a..7c5e1a99 100644
--- a/noatun/library/cmodule.cpp
+++ b/noatun/library/cmodule.cpp
@@ -64,11 +64,11 @@ General::General(TQObject *parent)
TQLabel *dlsaver=new TQLabel(i18n("&Download folder:"), this);
mDlSaver=new KURLRequester(napp->saveDirectory(), this);
dlsaver->setBuddy(mDlSaver);
- connect( mDlSaver, TQT_SIGNAL( openFileDialog( KURLRequester * )),
- this, TQT_SLOT( slotRequesterClicked( KURLRequester * )));
+ connect( mDlSaver, TQ_SIGNAL( openFileDialog( KURLRequester * )),
+ this, TQ_SLOT( slotRequesterClicked( KURLRequester * )));
TQWhatsThis::add(mDlSaver, i18n("When opening a non-local file, download it to the selected folder."));
- mPlayOnStartup = new TQButtonGroup(1,Qt::Horizontal, i18n("Play Behavior on Startup"), this);
+ mPlayOnStartup = new TQButtonGroup(1,TQt::Horizontal, i18n("Play Behavior on Startup"), this);
mPlayOnStartup->setExclusive(true);
mPlayOnStartup->insert(
new TQRadioButton(i18n("Restore &play state"), mPlayOnStartup),
diff --git a/noatun/library/cmodule.h b/noatun/library/cmodule.h
index 54fbc19e..ac287a13 100644
--- a/noatun/library/cmodule.h
+++ b/noatun/library/cmodule.h
@@ -21,7 +21,7 @@ class KURLRequester;
class General : public CModule
{
-Q_OBJECT
+TQ_OBJECT
public:
General(TQObject *parent=0);
diff --git a/noatun/library/controls.cpp b/noatun/library/controls.cpp
index 4a6ca9a8..7042cfbd 100644
--- a/noatun/library/controls.cpp
+++ b/noatun/library/controls.cpp
@@ -3,11 +3,11 @@
L33tSlider::L33tSlider(TQWidget * parent, const char * name) :
TQSlider(parent,name), pressed(false)
{}
-L33tSlider::L33tSlider(Qt::Orientation o, TQWidget * parent, const char * name) :
+L33tSlider::L33tSlider(TQt::Orientation o, TQWidget * parent, const char * name) :
TQSlider(o,parent,name), pressed(false)
{}
L33tSlider::L33tSlider(int minValue, int maxValue, int pageStep, int value,
- Qt::Orientation o, TQWidget * parent, const char * name) :
+ TQt::Orientation o, TQWidget * parent, const char * name) :
TQSlider(minValue, maxValue, pageStep, value, o, parent,name), pressed(false)
{}
@@ -24,7 +24,7 @@ void L33tSlider::setValue(int i)
void L33tSlider::mousePressEvent(TQMouseEvent*e)
{
- if (e->button()!=Qt::RightButton)
+ if (e->button()!=TQt::RightButton)
{
pressed=true;
TQSlider::mousePressEvent(e);
@@ -67,17 +67,17 @@ int SliderAction::plug( TQWidget *w, int index )
int id = TDEAction::getToolButtonID();
//Create it.
- m_slider=new L33tSlider(0, 1000, 100, 0,Qt::Horizontal, toolBar);
+ m_slider=new L33tSlider(0, 1000, 100, 0,TQt::Horizontal, toolBar);
m_slider->setMinimumWidth(10);
toolBar->insertWidget(id, 10, m_slider, index );
addContainer( toolBar, id );
- connect( toolBar, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( slotDestroyed() ) );
+ connect( toolBar, TQ_SIGNAL( destroyed() ), this, TQ_SLOT( slotDestroyed() ) );
toolBar->setItemAutoSized( id, true );
if (w->inherits( "TDEToolBar" ))
- connect(toolBar, TQT_SIGNAL(moved(TDEToolBar::BarPosition)), this, TQT_SLOT(toolbarMoved(TDEToolBar::BarPosition)));
+ connect(toolBar, TQ_SIGNAL(moved(TDEToolBar::BarPosition)), this, TQ_SLOT(toolbarMoved(TDEToolBar::BarPosition)));
emit plugged();
diff --git a/noatun/library/downloader.cpp b/noatun/library/downloader.cpp
index 21fb7926..2c65f536 100644
--- a/noatun/library/downloader.cpp
+++ b/noatun/library/downloader.cpp
@@ -86,6 +86,7 @@ void Downloader::start()
for (TQPtrListIterator<Downloader::QueueItem> i(*mUnstartedQueue); i.current(); ++i)
{
+ if((*i)->file.path().isEmpty()) continue;
(*i)->notifier->mLocalFilename = (*i)->local;
mQueue.append(*i);
emit enqueued((*i)->notifier, (*i)->file);
@@ -93,7 +94,7 @@ void Downloader::start()
delete mUnstartedQueue;
mUnstartedQueue=0;
- TQTimer::singleShot(0, this, TQT_SLOT(getNext()));
+ TQTimer::singleShot(0, this, TQ_SLOT(getNext()));
}
static TQString nonExistantFile(const TQString &file)
@@ -142,7 +143,7 @@ TQString Downloader::enqueue(DownloadItem *notifier, const KURL &file)
}
mQueue.append(i);
- TQTimer::singleShot(0, this, TQT_SLOT(getNext()));
+ TQTimer::singleShot(0, this, TQ_SLOT(getNext()));
emit enqueued(notifier, file);
return i->local;
}
@@ -180,15 +181,15 @@ void Downloader::getNext()
localfile->open(IO_ReadWrite | IO_Append);
mJob= TDEIO::get(current->file, true, false);
- connect(mJob, TQT_SIGNAL(data(TDEIO::Job*, const TQByteArray&)), TQT_SLOT(data(TDEIO::Job*, const TQByteArray&)));
- connect(mJob, TQT_SIGNAL(result(TDEIO::Job*)), TQT_SLOT(jobDone(TDEIO::Job*)));
- connect(mJob, TQT_SIGNAL(percent(TDEIO::Job*, unsigned long)), TQT_SLOT(percent(TDEIO::Job*, unsigned long)));
+ connect(mJob, TQ_SIGNAL(data(TDEIO::Job*, const TQByteArray&)), TQ_SLOT(data(TDEIO::Job*, const TQByteArray&)));
+ connect(mJob, TQ_SIGNAL(result(TDEIO::Job*)), TQ_SLOT(jobDone(TDEIO::Job*)));
+ connect(mJob, TQ_SIGNAL(percent(TDEIO::Job*, unsigned long)), TQ_SLOT(percent(TDEIO::Job*, unsigned long)));
if (mTimeout)
delete mTimeout;
mTimeout=new TQTimer(this);
mTimeout->start(30000, true);
- connect(mTimeout, TQT_SIGNAL(timeout()), TQT_SLOT(giveUpWithThisDownloadServerIsRunningNT()));
+ connect(mTimeout, TQ_SIGNAL(timeout()), TQ_SLOT(giveUpWithThisDownloadServerIsRunningNT()));
}
void Downloader::data(TDEIO::Job *, const TQByteArray &data)
diff --git a/noatun/library/effectview.cpp b/noatun/library/effectview.cpp
index 72391b8d..193d8adb 100644
--- a/noatun/library/effectview.cpp
+++ b/noatun/library/effectview.cpp
@@ -90,7 +90,7 @@ TQToolButton *newButton(const TQIconSet &iconSet, const TQString &textLabel, TQO
TQToolButton *button = new TQToolButton(parent, name);
button->setIconSet(iconSet);
button->setTextLabel(textLabel, true);
- TQObject::connect(button, TQT_SIGNAL(clicked()), receiver, slot);
+ TQObject::connect(button, TQ_SIGNAL(clicked()), receiver, slot);
button->setFixedSize(TQSize(22, 22));
return button;
}
@@ -116,7 +116,7 @@ void EffectView::init(void)
TQHBoxLayout *topTopLayout = new TQHBoxLayout(topTopFrame, 0, KDialog::spacingHint());
topTopLayout->setAutoAdd(true);
available = new KComboBox(false, topTopFrame);
- TQToolButton *add = newButton(BarIconSet("go-down", TDEIcon::SizeSmall), i18n("Add"), TQT_TQOBJECT(this), TQT_SLOT(addEffect()), topTopFrame);
+ TQToolButton *add = newButton(BarIconSet("go-down", TDEIcon::SizeSmall), i18n("Add"), this, TQ_SLOT(addEffect()), topTopFrame);
// Active
TQHGroupBox *bottomBox = new TQHGroupBox(i18n("Active Effects"), box);
@@ -138,25 +138,25 @@ void EffectView::init(void)
active->setItemsMovable(true);
active->setSelectionMode(TQListView::Single);
active->setDragEnabled(true);
- connect(active, TQT_SIGNAL(dropped(TQDropEvent *, TQListViewItem *)), TQT_SLOT(activeDrop(TQDropEvent *, TQListViewItem *)));
+ connect(active, TQ_SIGNAL(dropped(TQDropEvent *, TQListViewItem *)), TQ_SLOT(activeDrop(TQDropEvent *, TQListViewItem *)));
// when a new effect is added
- connect(napp->effects(), TQT_SIGNAL(added(Effect *)), TQT_SLOT(added(Effect *)));
- connect(napp->effects(), TQT_SIGNAL(removed(Effect *)), TQT_SLOT(removed(Effect *)));
- connect(napp->effects(), TQT_SIGNAL(moved(Effect *)), TQT_SLOT(moved(Effect *)));
+ connect(napp->effects(), TQ_SIGNAL(added(Effect *)), TQ_SLOT(added(Effect *)));
+ connect(napp->effects(), TQ_SIGNAL(removed(Effect *)), TQ_SLOT(removed(Effect *)));
+ connect(napp->effects(), TQ_SIGNAL(moved(Effect *)), TQ_SLOT(moved(Effect *)));
available->setCurrentItem(0);
- connect(active, TQT_SIGNAL(currentChanged(TQListViewItem *)), TQT_SLOT(activeChanged(TQListViewItem *)));
+ connect(active, TQ_SIGNAL(currentChanged(TQListViewItem *)), TQ_SLOT(activeChanged(TQListViewItem *)));
active->setCurrentItem(0);
// the buttons
TQFrame *bottomLeftFrame = new TQFrame(bottomBox);
TQVBoxLayout *bottomLeftLayout = new TQVBoxLayout(bottomLeftFrame, 0, KDialog::spacingHint());
- up = newButton(BarIconSet("go-up", TDEIcon::SizeSmall), i18n("Up"), TQT_TQOBJECT(this), TQT_SLOT(moveUp()), bottomLeftFrame);
- down = newButton(BarIconSet("go-down", TDEIcon::SizeSmall), i18n("Down"), TQT_TQOBJECT(this), TQT_SLOT(moveDown()), bottomLeftFrame);
- configure = newButton(BarIconSet("configure", TDEIcon::SizeSmall), i18n("Configure"), TQT_TQOBJECT(this), TQT_SLOT(configureEffect()), bottomLeftFrame);
- remove = newButton(BarIconSet("remove", TDEIcon::SizeSmall), i18n("Remove"), TQT_TQOBJECT(this), TQT_SLOT(removeEffect()), bottomLeftFrame);
+ up = newButton(BarIconSet("go-up", TDEIcon::SizeSmall), i18n("Up"), this, TQ_SLOT(moveUp()), bottomLeftFrame);
+ down = newButton(BarIconSet("go-down", TDEIcon::SizeSmall), i18n("Down"), this, TQ_SLOT(moveDown()), bottomLeftFrame);
+ configure = newButton(BarIconSet("configure", TDEIcon::SizeSmall), i18n("Configure"), this, TQ_SLOT(configureEffect()), bottomLeftFrame);
+ remove = newButton(BarIconSet("remove", TDEIcon::SizeSmall), i18n("Remove"), this, TQ_SLOT(removeEffect()), bottomLeftFrame);
bottomLeftLayout->addWidget(up);
bottomLeftLayout->addWidget(down);
bottomLeftLayout->addWidget(configure);
diff --git a/noatun/library/effectview.h b/noatun/library/effectview.h
index 3434ae92..bdde7eac 100644
--- a/noatun/library/effectview.h
+++ b/noatun/library/effectview.h
@@ -35,7 +35,7 @@ class TQToolButton;
class EffectView : public KDialogBase
{
-Q_OBJECT
+TQ_OBJECT
public:
EffectView();
@@ -74,7 +74,7 @@ private:
class EffectList : public TDEListView
{
-Q_OBJECT
+TQ_OBJECT
public:
EffectList(TQWidget *parent);
diff --git a/noatun/library/engine.cpp b/noatun/library/engine.cpp
index dbb4d978..8e0000fa 100644
--- a/noatun/library/engine.cpp
+++ b/noatun/library/engine.cpp
@@ -293,19 +293,19 @@ bool Engine::open(const PlaylistItem &file)
d->pProxy = new TitleProxy::Proxy(KURL(file.property("stream_")));
d->playobj = factory.createPlayObject(d->pProxy->proxyUrl(), false);
- connect(d->playobj, TQT_SIGNAL(destroyed()), this, TQT_SLOT(deleteProxy()));
+ connect(d->playobj, TQ_SIGNAL(destroyed()), this, TQ_SLOT(deleteProxy()));
connect(
- d->pProxy, TQT_SIGNAL(
+ d->pProxy, TQ_SIGNAL(
metaData(
const TQString &, const TQString &,
const TQString &, const TQString &,
const TQString &, const TQString &)),
- this, TQT_SIGNAL(
+ this, TQ_SIGNAL(
receivedStreamMeta(const TQString &, const TQString &,
const TQString &, const TQString &,
const TQString &, const TQString &))
);
- connect(d->pProxy, TQT_SIGNAL(proxyError()), this, TQT_SLOT(slotProxyError()));
+ connect(d->pProxy, TQ_SIGNAL(proxyError()), this, TQ_SLOT(slotProxyError()));
}
else
{
@@ -328,7 +328,7 @@ bool Engine::open(const PlaylistItem &file)
}
else
{
- connect( d->playobj, TQT_SIGNAL( playObjectCreated() ), this, TQT_SLOT( connectPlayObject() ) );
+ connect( d->playobj, TQ_SIGNAL( playObjectCreated() ), this, TQ_SLOT( connectPlayObject() ) );
}
if (mPlay)
diff --git a/noatun/library/equalizer.cpp b/noatun/library/equalizer.cpp
index 87255cb7..aad2de65 100644
--- a/noatun/library/equalizer.cpp
+++ b/noatun/library/equalizer.cpp
@@ -164,19 +164,19 @@ void Equalizer::init()
mBands.append(new Band(4));
mBands.append(new Band(5));
- connect(VEQ, TQT_SIGNAL(changed()), TQT_SIGNAL(changed()));
+ connect(VEQ, TQ_SIGNAL(changed()), TQ_SIGNAL(changed()));
- connect(VEQ, TQT_SIGNAL(created(VPreset)), TQT_SLOT(created(VPreset)));
- connect(VEQ, TQT_SIGNAL(selected(VPreset)), TQT_SLOT(selected(VPreset)));
- connect(VEQ, TQT_SIGNAL(renamed(VPreset)), TQT_SLOT(renamed(VPreset)));
- connect(VEQ, TQT_SIGNAL(removed(VPreset)), TQT_SLOT(removed(VPreset)));
+ connect(VEQ, TQ_SIGNAL(created(VPreset)), TQ_SLOT(created(VPreset)));
+ connect(VEQ, TQ_SIGNAL(selected(VPreset)), TQ_SLOT(selected(VPreset)));
+ connect(VEQ, TQ_SIGNAL(renamed(VPreset)), TQ_SLOT(renamed(VPreset)));
+ connect(VEQ, TQ_SIGNAL(removed(VPreset)), TQ_SLOT(removed(VPreset)));
- connect(VEQ, TQT_SIGNAL(enabled()), TQT_SIGNAL(enabled()));
- connect(VEQ, TQT_SIGNAL(disabled()), TQT_SIGNAL(disabled()));
- connect(VEQ, TQT_SIGNAL(enabled(bool)), TQT_SIGNAL(enabled(bool)));
+ connect(VEQ, TQ_SIGNAL(enabled()), TQ_SIGNAL(enabled()));
+ connect(VEQ, TQ_SIGNAL(disabled()), TQ_SIGNAL(disabled()));
+ connect(VEQ, TQ_SIGNAL(enabled(bool)), TQ_SIGNAL(enabled(bool)));
- connect(VEQ, TQT_SIGNAL(preampChanged(int)), TQT_SIGNAL(preampChanged(int)));
- connect(VEQ, TQT_SIGNAL(preampChanged(int)), TQT_SIGNAL(preampChanged(int)));
+ connect(VEQ, TQ_SIGNAL(preampChanged(int)), TQ_SIGNAL(preampChanged(int)));
+ connect(VEQ, TQ_SIGNAL(preampChanged(int)), TQ_SIGNAL(preampChanged(int)));
}
void Equalizer::created(VPreset preset)
diff --git a/noatun/library/equalizerview.cpp b/noatun/library/equalizerview.cpp
index bf779e39..89ec960b 100644
--- a/noatun/library/equalizerview.cpp
+++ b/noatun/library/equalizerview.cpp
@@ -67,11 +67,11 @@ EqualizerLevel::EqualizerLevel(TQWidget *parent, VBand band)
TQVBoxLayout *layout = new TQVBoxLayout(this,
0, 0, "EqualizerLevel::layout");
- mSlider = new TQSlider(-200, 200, 25, 0, Qt::Vertical, this, "EqualizerLevel::mSlider");
+ mSlider = new TQSlider(-200, 200, 25, 0, TQt::Vertical, this, "EqualizerLevel::mSlider");
mSlider->setTickmarks(TQSlider::Left);
mSlider->setTickInterval(25);
layout->addWidget(mSlider);
- connect(mSlider, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(changed(int)));
+ connect(mSlider, TQ_SIGNAL(valueChanged(int)), TQ_SLOT(changed(int)));
mLabel = new TQLabel("", this, "EqualizerLevel::mLabel");
mLabel->setAlignment(AlignHCenter | AlignVCenter);
layout->addWidget(mLabel);
@@ -82,8 +82,8 @@ EqualizerLevel::EqualizerLevel(TQWidget *parent, VBand band)
setBand(band);
- connect(EQ, TQT_SIGNAL(modified()), TQT_SLOT(changed()));
- connect(mSlider, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(changed(int)));
+ connect(EQ, TQ_SIGNAL(modified()), TQ_SLOT(changed()));
+ connect(mSlider, TQ_SIGNAL(valueChanged(int)), TQ_SLOT(changed(int)));
}
void EqualizerLevel::setBand(VBand band)
@@ -126,30 +126,30 @@ void EqualizerView::show()
bandsLayout = new TQHBoxLayout(mWidget->bandsFrame,
0, KDialog::spacingHint(), "bandsLayout");
- connect(mWidget->preampSlider, TQT_SIGNAL(valueChanged(int)),
- this, TQT_SLOT(setPreamp(int)));
- connect(EQ, TQT_SIGNAL(preampChanged(int)),
- this, TQT_SLOT(changedPreamp(int)));
+ connect(mWidget->preampSlider, TQ_SIGNAL(valueChanged(int)),
+ this, TQ_SLOT(setPreamp(int)));
+ connect(EQ, TQ_SIGNAL(preampChanged(int)),
+ this, TQ_SLOT(changedPreamp(int)));
mWidget->bandCount->setRange(EQ->minBands(), EQ->maxBands());
- connect(mWidget->bandCount, TQT_SIGNAL(valueChanged(int)),
- EQ, TQT_SLOT(setBands(int)));
+ connect(mWidget->bandCount, TQ_SIGNAL(valueChanged(int)),
+ EQ, TQ_SLOT(setBands(int)));
TQVBoxLayout *l = new TQVBoxLayout(mWidget->presetFrame);
mPresets = new PresetList(mWidget->presetFrame, "mPresets");
l->addWidget(mPresets);
- connect(mWidget->removePresetButton, TQT_SIGNAL(clicked()), TQT_SLOT(remove()));
- connect(mWidget->addPresetButton, TQT_SIGNAL(clicked()), TQT_SLOT(create()));
- connect(mWidget->resetEqButton, TQT_SIGNAL(clicked()), TQT_SLOT(reset()));
+ connect(mWidget->removePresetButton, TQ_SIGNAL(clicked()), TQ_SLOT(remove()));
+ connect(mWidget->addPresetButton, TQ_SIGNAL(clicked()), TQ_SLOT(create()));
+ connect(mWidget->resetEqButton, TQ_SIGNAL(clicked()), TQ_SLOT(reset()));
new TDEListViewItem(mPresets, i18n("Custom"));
- connect(mPresets, TQT_SIGNAL(currentChanged(TQListViewItem*)),
- this, TQT_SLOT(select(TQListViewItem*)));
+ connect(mPresets, TQ_SIGNAL(currentChanged(TQListViewItem*)),
+ this, TQ_SLOT(select(TQListViewItem*)));
- connect(mPresets, TQT_SIGNAL(itemRenamed(TQListViewItem*)),
- this, TQT_SLOT(rename(TQListViewItem*)));
+ connect(mPresets, TQ_SIGNAL(itemRenamed(TQListViewItem*)),
+ this, TQ_SLOT(rename(TQListViewItem*)));
// populate the preset list
TQValueList<VPreset> presets = EQ->presets();
@@ -159,20 +159,20 @@ void EqualizerView::show()
created(*it);
}
- connect(EQ, TQT_SIGNAL(created(VPreset)), TQT_SLOT(created(VPreset)));
- connect(EQ, TQT_SIGNAL(renamed(VPreset)), TQT_SLOT(renamed(VPreset)));
- connect(EQ, TQT_SIGNAL(removed(VPreset)), TQT_SLOT(removed(VPreset)));
+ connect(EQ, TQ_SIGNAL(created(VPreset)), TQ_SLOT(created(VPreset)));
+ connect(EQ, TQ_SIGNAL(renamed(VPreset)), TQ_SLOT(renamed(VPreset)));
+ connect(EQ, TQ_SIGNAL(removed(VPreset)), TQ_SLOT(removed(VPreset)));
mWidget->enabledCheckBox->setChecked(EQ->isEnabled());
- connect(mWidget->enabledCheckBox, TQT_SIGNAL(toggled(bool)),
- EQ, TQT_SLOT(setEnabled(bool)));
- connect(EQ, TQT_SIGNAL(enabled(bool)),
- mWidget->enabledCheckBox, TQT_SLOT(setChecked(bool)));
-
- connect(EQ, TQT_SIGNAL(changed()),
- this, TQT_SLOT(changedEq()));
- connect(EQ, TQT_SIGNAL(changedBands()),
- this, TQT_SLOT(changedBands()));
+ connect(mWidget->enabledCheckBox, TQ_SIGNAL(toggled(bool)),
+ EQ, TQ_SLOT(setEnabled(bool)));
+ connect(EQ, TQ_SIGNAL(enabled(bool)),
+ mWidget->enabledCheckBox, TQ_SLOT(setChecked(bool)));
+
+ connect(EQ, TQ_SIGNAL(changed()),
+ this, TQ_SLOT(changedEq()));
+ connect(EQ, TQ_SIGNAL(changedBands()),
+ this, TQ_SLOT(changedBands()));
changedBands();
changedEq();
diff --git a/noatun/library/equalizerview.h b/noatun/library/equalizerview.h
index 0cec05a9..d8293a3a 100644
--- a/noatun/library/equalizerview.h
+++ b/noatun/library/equalizerview.h
@@ -16,7 +16,7 @@ class EqualizerWidget;
class EqualizerLevel : public TQWidget
{
-Q_OBJECT
+TQ_OBJECT
public:
EqualizerLevel(TQWidget *parent, VBand band);
@@ -36,7 +36,7 @@ private:
class PresetList : public TDEListView
{
-Q_OBJECT
+TQ_OBJECT
public:
PresetList(TQWidget *parent, const char *name=0);
@@ -48,7 +48,7 @@ public:
class EqualizerView : public KDialogBase
{
-Q_OBJECT
+TQ_OBJECT
TQPtrList<EqualizerLevel> mBands;
diff --git a/noatun/library/globalvideo.h b/noatun/library/globalvideo.h
index 9414ca33..89522489 100644
--- a/noatun/library/globalvideo.h
+++ b/noatun/library/globalvideo.h
@@ -6,7 +6,7 @@
class GlobalVideo : public TQWidget
{
-Q_OBJECT
+TQ_OBJECT
TQPopupMenu *menu;
VideoFrame *video;
diff --git a/noatun/library/mimetypetree.h b/noatun/library/mimetypetree.h
index c6619293..ea85810f 100644
--- a/noatun/library/mimetypetree.h
+++ b/noatun/library/mimetypetree.h
@@ -18,7 +18,7 @@
class MimeTypeTree : public TDEListView
{
-Q_OBJECT
+TQ_OBJECT
public:
MimeTypeTree(TQWidget *parent);
diff --git a/noatun/library/noatun/app.h b/noatun/library/noatun/app.h
index 49ea0064..1fc61d9a 100644
--- a/noatun/library/noatun/app.h
+++ b/noatun/library/noatun/app.h
@@ -28,9 +28,9 @@ namespace NoatunStdAction
* @author Charles Samuels
* @version 2.3
*/
-class KDE_EXPORT NoatunApp : public KUniqueApplication
+class TDE_EXPORT NoatunApp : public KUniqueApplication
{
-Q_OBJECT
+TQ_OBJECT
friend class Playlist;
diff --git a/noatun/library/noatun/controls.h b/noatun/library/noatun/controls.h
index 37617183..020b030b 100644
--- a/noatun/library/noatun/controls.h
+++ b/noatun/library/noatun/controls.h
@@ -20,15 +20,15 @@ class TQLabel;
* @author Charles Samuels
* @version 2.3
**/
-class KDE_EXPORT L33tSlider : public TQSlider
+class TDE_EXPORT L33tSlider : public TQSlider
{
-Q_OBJECT
+TQ_OBJECT
public:
L33tSlider(TQWidget * parent, const char * name=0);
- L33tSlider(Qt::Orientation, TQWidget * parent, const char * name=0);
+ L33tSlider(TQt::Orientation, TQWidget * parent, const char * name=0);
L33tSlider(int minValue, int maxValue, int pageStep, int value,
- Qt::Orientation, TQWidget * parent, const char * name=0);
+ TQt::Orientation, TQWidget * parent, const char * name=0);
bool currentlyPressed() const;
signals:
@@ -56,7 +56,7 @@ private:
**/
class SliderAction : public TDEAction
{
-Q_OBJECT
+TQ_OBJECT
public:
SliderAction(const TQString& text, int accel, const TQObject *receiver,
diff --git a/noatun/library/noatun/downloader.h b/noatun/library/noatun/downloader.h
index 093b57d0..ea0d48f3 100644
--- a/noatun/library/noatun/downloader.h
+++ b/noatun/library/noatun/downloader.h
@@ -65,7 +65,7 @@ private:
**/
class Downloader : public TQObject
{
-Q_OBJECT
+TQ_OBJECT
struct QueueItem
{
diff --git a/noatun/library/noatun/effects.h b/noatun/library/noatun/effects.h
index 73e5444f..0e299dde 100644
--- a/noatun/library/noatun/effects.h
+++ b/noatun/library/noatun/effects.h
@@ -96,7 +96,7 @@ private:
**/
class Effects : public TQObject
{
-Q_OBJECT
+TQ_OBJECT
friend class Effect;
public:
diff --git a/noatun/library/noatun/engine.h b/noatun/library/noatun/engine.h
index 7be41d45..d1fdb845 100644
--- a/noatun/library/noatun/engine.h
+++ b/noatun/library/noatun/engine.h
@@ -30,9 +30,9 @@ class NoatunApp;
* Does almost everything related to multimedia.
* Most interfacing should be done with Player
**/
-class KDE_EXPORT Engine : public TQObject
+class TDE_EXPORT Engine : public TQObject
{
-Q_OBJECT
+TQ_OBJECT
friend class NoatunApp;
public:
diff --git a/noatun/library/noatun/equalizer.h b/noatun/library/noatun/equalizer.h
index a654fd13..e0eea2af 100644
--- a/noatun/library/noatun/equalizer.h
+++ b/noatun/library/noatun/equalizer.h
@@ -105,7 +105,7 @@ friend class Band;
friend class Preset;
friend class Engine;
-Q_OBJECT
+TQ_OBJECT
public:
Equalizer();
diff --git a/noatun/library/noatun/player.h b/noatun/library/noatun/player.h
index c4821d0f..77c24a8f 100644
--- a/noatun/library/noatun/player.h
+++ b/noatun/library/noatun/player.h
@@ -19,9 +19,9 @@ class KLibrary;
* @author Charles Samuels
* @version 2.4
**/
-class KDE_EXPORT Player : public TQObject
+class TDE_EXPORT Player : public TQObject
{
-Q_OBJECT
+TQ_OBJECT
friend class Effects;
friend class PlaylistItemData;
diff --git a/noatun/library/noatun/playlist.h b/noatun/library/noatun/playlist.h
index b80721a0..b6521389 100644
--- a/noatun/library/noatun/playlist.h
+++ b/noatun/library/noatun/playlist.h
@@ -27,7 +27,7 @@ class PlaylistItem;
* @author Charles Samuels
* @version 2.3
**/
-class KDE_EXPORT PlaylistItemData
+class TDE_EXPORT PlaylistItemData
{
public:
PlaylistItemData();
@@ -205,7 +205,7 @@ private:
* @author Charles Samuels
* @version 2.3
**/
-class KDE_EXPORT PlaylistItem
+class TDE_EXPORT PlaylistItem
{
public:
PlaylistItem(const PlaylistItem &source);
@@ -328,7 +328,7 @@ private:
**/
class Playlist : public TQObject
{
-Q_OBJECT
+TQ_OBJECT
friend class PlaylistItemData;
public:
diff --git a/noatun/library/noatun/plugin.h b/noatun/library/noatun/plugin.h
index 23b6e481..504d2ec3 100644
--- a/noatun/library/noatun/plugin.h
+++ b/noatun/library/noatun/plugin.h
@@ -24,7 +24,7 @@ class NoatunApp;
/**
* @short Base class for all plugins
**/
-class KDE_EXPORT Plugin
+class TDE_EXPORT Plugin
{
public:
Plugin();
@@ -58,7 +58,7 @@ public:
* Inherit from this one instead of Plugin if you are
* a user-interface
**/
-class KDE_EXPORT UserInterface : public Plugin
+class TDE_EXPORT UserInterface : public Plugin
{
public:
UserInterface();
@@ -162,7 +162,7 @@ private:
/**
* Base class for all kinds of FFT scopes
**/
-class KDE_EXPORT FFTScope : public Visualization
+class TDE_EXPORT FFTScope : public Visualization
{
public:
FFTScope(int interval, int pid=0);
@@ -205,7 +205,7 @@ public:
* An easy to use FFT scope, stereo version.
* You certainly want to reimplement scopeEvent()
**/
-class KDE_EXPORT StereoFFTScope : public FFTScope
+class TDE_EXPORT StereoFFTScope : public FFTScope
{
public:
StereoFFTScope(int timeout=250, int pid=0);
@@ -242,7 +242,7 @@ private:
* An easy to use FFT scope, mono version.
* You certainly want to reimplement scopeEvent()
**/
-class KDE_EXPORT MonoFFTScope : public FFTScope
+class TDE_EXPORT MonoFFTScope : public FFTScope
{
public:
MonoFFTScope(int timeout=250, int pid=0);
@@ -302,7 +302,7 @@ public:
* Note: Of course this one also works for audio with more than one channel
* You certainly want to reimplement scopeEvent()
*/
-class KDE_EXPORT MonoScope : public Scope
+class TDE_EXPORT MonoScope : public Scope
{
public:
MonoScope(int timeout=250, int pid=0);
@@ -404,7 +404,7 @@ class NoatunListenerNotif;
**/
class NoatunListener : public TQObject
{
-Q_OBJECT
+TQ_OBJECT
friend class NoatunListenerNotif;
@@ -453,7 +453,7 @@ private:
**/
class BoolNotifier : public TQObject
{
-Q_OBJECT
+TQ_OBJECT
public:
BoolNotifier(bool *value, NoatunListener *listener, TQObject *parent=0);
diff --git a/noatun/library/noatun/pluginloader.h b/noatun/library/noatun/pluginloader.h
index 04c1b750..1bbb7369 100644
--- a/noatun/library/noatun/pluginloader.h
+++ b/noatun/library/noatun/pluginloader.h
@@ -33,7 +33,7 @@ class Plugin;
/**
* Used for loading plugins at runtime
**/
-class KDE_EXPORT LibraryLoader
+class TDE_EXPORT LibraryLoader
{
friend class Plugin;
struct PluginLibrary
diff --git a/noatun/library/noatun/pref.h b/noatun/library/noatun/pref.h
index 07275b56..979dd57a 100644
--- a/noatun/library/noatun/pref.h
+++ b/noatun/library/noatun/pref.h
@@ -12,7 +12,7 @@ class CModule;
**/
class NoatunPreferences : public KDialogBase
{
-Q_OBJECT
+TQ_OBJECT
friend class CModule;
@@ -54,9 +54,9 @@ private:
* Create your GUI in constructor, reimplement reopen() and save() and
* you're all set.
**/
-class KDE_EXPORT CModule : public TQWidget
+class TDE_EXPORT CModule : public TQWidget
{
-Q_OBJECT
+TQ_OBJECT
public:
diff --git a/noatun/library/noatun/scrollinglabel.h b/noatun/library/noatun/scrollinglabel.h
index aa2b3450..3260c70c 100644
--- a/noatun/library/noatun/scrollinglabel.h
+++ b/noatun/library/noatun/scrollinglabel.h
@@ -30,7 +30,7 @@
**/
class ScrollingLabel : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/noatun/library/noatun/stdaction.h b/noatun/library/noatun/stdaction.h
index 31f5d20c..ff918de5 100644
--- a/noatun/library/noatun/stdaction.h
+++ b/noatun/library/noatun/stdaction.h
@@ -19,7 +19,7 @@ namespace NoatunStdAction
**/
class PlayAction : public TDEAction
{
-Q_OBJECT
+TQ_OBJECT
public:
PlayAction(TQObject *parent, const char *name);
@@ -33,7 +33,7 @@ private slots:
**/
class PlaylistAction : public TDEToggleAction
{
-Q_OBJECT
+TQ_OBJECT
public:
PlaylistAction(TQObject *parent, const char *name);
@@ -48,7 +48,7 @@ private slots:
*/
class PluginActionMenu : public TDEActionMenu
{
-Q_OBJECT
+TQ_OBJECT
public:
PluginActionMenu(TQObject *parent, const char *name);
@@ -82,7 +82,7 @@ private:
*/
class VisActionMenu : public TDEActionMenu
{
-Q_OBJECT
+TQ_OBJECT
public:
VisActionMenu(TQObject *parent, const char *name);
@@ -100,7 +100,7 @@ private:
*/
class LoopActionMenu : public TDEActionMenu
{
-Q_OBJECT
+TQ_OBJECT
public:
LoopActionMenu(TQObject *parent, const char *name);
@@ -121,64 +121,64 @@ private:
/**
* @return pointer to a TDEAction which opens the effects dialog on activation
*/
-KDE_EXPORT TDEAction *effects(TQObject *parent = 0, const char *name = 0);
+TDE_EXPORT TDEAction *effects(TQObject *parent = 0, const char *name = 0);
/**
* @return pointer to a TDEAction which opens the equalizer dialog on activation
*/
-KDE_EXPORT TDEAction *equalizer(TQObject *parent = 0, const char *name = 0);
+TDE_EXPORT TDEAction *equalizer(TQObject *parent = 0, const char *name = 0);
/**
* @return pointer to a TDEAction which goes back one track on activation
*/
-KDE_EXPORT TDEAction *back(TQObject *parent = 0, const char *name = 0);
+TDE_EXPORT TDEAction *back(TQObject *parent = 0, const char *name = 0);
/**
* @return pointer to a TDEAction which stops playback on activation
*/
-KDE_EXPORT TDEAction *stop(TQObject *parent = 0, const char *name = 0);
+TDE_EXPORT TDEAction *stop(TQObject *parent = 0, const char *name = 0);
/**
* @return pointer to a TDEAction which starts/pauses playback on activation
*/
-KDE_EXPORT TDEAction *playpause(TQObject *parent = 0, const char *name = 0);
+TDE_EXPORT TDEAction *playpause(TQObject *parent = 0, const char *name = 0);
/**
* @return pointer to a TDEAction which advances one track on activation
*/
-KDE_EXPORT TDEAction *forward(TQObject *parent = 0, const char *name = 0);
+TDE_EXPORT TDEAction *forward(TQObject *parent = 0, const char *name = 0);
/**
* @return pointer to a TDEToggleAction which shows/hides the playlist
*/
-KDE_EXPORT TDEToggleAction *playlist(TQObject *parent = 0, const char *name = 0);
+TDE_EXPORT TDEToggleAction *playlist(TQObject *parent = 0, const char *name = 0);
/**
* loop action
**/
-KDE_EXPORT LoopActionMenu *loop(TQObject *parent, const char *name);
+TDE_EXPORT LoopActionMenu *loop(TQObject *parent, const char *name);
/**
* play action
*/
-KDE_EXPORT TDEAction *play(TQObject *parent = 0, const char *name = 0);
+TDE_EXPORT TDEAction *play(TQObject *parent = 0, const char *name = 0);
/**
* pause action
*/
-KDE_EXPORT TDEAction *pause(TQObject *parent = 0, const char *name = 0);
+TDE_EXPORT TDEAction *pause(TQObject *parent = 0, const char *name = 0);
/**
* @return pointer to the global PluginActionMenu object (there is only one instance)
*/
-KDE_EXPORT PluginActionMenu *actions();
+TDE_EXPORT PluginActionMenu *actions();
/**
* @return pointer to a VisActionMenu object
*/
-KDE_EXPORT VisActionMenu *visualizations(TQObject *parent = 0, const char *name = 0);
+TDE_EXPORT VisActionMenu *visualizations(TQObject *parent = 0, const char *name = 0);
/**
* The global popupmenu of noatun, there's not two or three but only one of these :)
* @author Charles Samuels
**/
-class KDE_EXPORT ContextMenu
+class TDE_EXPORT ContextMenu
{
public:
static TDEPopupMenu *createContextMenu(TQWidget *p);
diff --git a/noatun/library/noatun/stereobuttonaction.h b/noatun/library/noatun/stereobuttonaction.h
index 5ff9e904..477443d4 100644
--- a/noatun/library/noatun/stereobuttonaction.h
+++ b/noatun/library/noatun/stereobuttonaction.h
@@ -12,7 +12,7 @@ namespace NoatunStdAction
*/
class StereoButtonAction : public TDEAction
{
-Q_OBJECT
+TQ_OBJECT
public:
StereoButtonAction(const TQString& text, int accel = 0, TQObject* parent = 0, const char* name = 0 );
diff --git a/noatun/library/noatun/vequalizer.h b/noatun/library/noatun/vequalizer.h
index 4a5621ef..2eff3715 100644
--- a/noatun/library/noatun/vequalizer.h
+++ b/noatun/library/noatun/vequalizer.h
@@ -76,7 +76,7 @@ class VEqualizer;
* Represents a single band in a vequalizer
* @author Charles Samuels
**/
-class KDE_EXPORT VBand
+class TDE_EXPORT VBand
{
friend class VInterpolation;
friend class VEqualizer;
@@ -134,9 +134,9 @@ public:
* @short interpolated representation of Eq data
* @author Charles Samuels
**/
-class KDE_EXPORT VInterpolation : public TQObject, public VBandsInterface
+class TDE_EXPORT VInterpolation : public TQObject, public VBandsInterface
{
- Q_OBJECT
+ TQ_OBJECT
struct Private;
Private *d;
@@ -174,9 +174,9 @@ class VPreset;
* @short Noatun EQ
* @author Charles Samuels
**/
-class KDE_EXPORT VEqualizer : public TQObject, public VBandsInterface
+class TDE_EXPORT VEqualizer : public TQObject, public VBandsInterface
{
- Q_OBJECT
+ TQ_OBJECT
friend class VBand;
friend class VPreset;
diff --git a/noatun/library/noatun/video.h b/noatun/library/noatun/video.h
index ece120fe..9719f245 100644
--- a/noatun/library/noatun/video.h
+++ b/noatun/library/noatun/video.h
@@ -11,7 +11,7 @@ class TQPopupMenu;
**/
class VideoFrame : public KVideoWidget
{
-Q_OBJECT
+TQ_OBJECT
struct Private;
VideoFrame::Private *d;
diff --git a/noatun/library/noatunstdaction.cpp b/noatun/library/noatunstdaction.cpp
index de05590c..5fa6b0fc 100644
--- a/noatun/library/noatunstdaction.cpp
+++ b/noatun/library/noatunstdaction.cpp
@@ -22,11 +22,11 @@ namespace NoatunStdAction
{
/////////////////////////////////////////////////////
PlayAction::PlayAction(TQObject *parent, const char *name)
- : TDEAction(i18n("Play"), 0, napp->player(), TQT_SLOT(playpause()), parent, name)
+ : TDEAction(i18n("Play"), 0, napp->player(), TQ_SLOT(playpause()), parent, name)
{
- connect(napp->player(), TQT_SIGNAL(playing()), TQT_SLOT(playing()));
- connect(napp->player(), TQT_SIGNAL(paused()), TQT_SLOT(notplaying()));
- connect(napp->player(), TQT_SIGNAL(stopped()), TQT_SLOT(notplaying()));
+ connect(napp->player(), TQ_SIGNAL(playing()), TQ_SLOT(playing()));
+ connect(napp->player(), TQ_SIGNAL(paused()), TQ_SLOT(notplaying()));
+ connect(napp->player(), TQ_SIGNAL(stopped()), TQ_SLOT(notplaying()));
if (napp->player()->isPlaying())
playing();
else if (napp->player()->isPaused() || napp->player()->isStopped())
@@ -47,11 +47,11 @@ void PlayAction::notplaying()
/////////////////////////////////////////////////////
PlaylistAction::PlaylistAction(TQObject *parent, const char *name)
- : TDEToggleAction(i18n("Show Playlist"), "playlist", 0, napp->player(), TQT_SLOT(toggleListView()), parent, name)
+ : TDEToggleAction(i18n("Show Playlist"), "playlist", 0, napp->player(), TQ_SLOT(toggleListView()), parent, name)
{
setCheckedState(i18n("Hide Playlist"));
- connect(napp->player(), TQT_SIGNAL(playlistShown()), TQT_SLOT(shown()));
- connect(napp->player(), TQT_SIGNAL(playlistHidden()), TQT_SLOT(hidden()));
+ connect(napp->player(), TQ_SIGNAL(playlistShown()), TQ_SLOT(shown()));
+ connect(napp->player(), TQ_SIGNAL(playlistHidden()), TQ_SLOT(hidden()));
setChecked(napp->playlist()->listVisible());
}
@@ -114,8 +114,8 @@ void PluginActionMenu::menuRemove(int id)
VisActionMenu::VisActionMenu(TQObject *parent, const char *name)
: TDEActionMenu(i18n("&Visualizations"), parent, name)
{
- connect(popupMenu(), TQT_SIGNAL(aboutToShow()), TQT_TQOBJECT(this), TQT_SLOT(fillPopup()));
- connect(popupMenu(), TQT_SIGNAL(activated(int)), TQT_TQOBJECT(this), TQT_SLOT(toggleVisPlugin(int)));
+ connect(popupMenu(), TQ_SIGNAL(aboutToShow()), this, TQ_SLOT(fillPopup()));
+ connect(popupMenu(), TQ_SIGNAL(activated(int)), this, TQ_SLOT(toggleVisPlugin(int)));
}
void VisActionMenu::fillPopup()
@@ -163,26 +163,26 @@ LoopActionMenu::LoopActionMenu(TQObject *parent, const char *name)
: TDEActionMenu(i18n("&Loop"), parent, name)
{
mLoopNone = new TDERadioAction(i18n("&None"), TQString::fromLocal8Bit("noatunloopnone"),
- 0, TQT_TQOBJECT(this), TQT_SLOT(loopNoneSelected()), TQT_TQOBJECT(this), "loop_none");
+ 0, this, TQ_SLOT(loopNoneSelected()), this, "loop_none");
mLoopNone->setExclusiveGroup("loopType");
insert(mLoopNone);
mLoopSong = new TDERadioAction(i18n("&Song"), TQString::fromLocal8Bit("noatunloopsong"),
- 0, TQT_TQOBJECT(this), TQT_SLOT(loopSongSelected()), TQT_TQOBJECT(this), "loop_song");
+ 0, this, TQ_SLOT(loopSongSelected()), this, "loop_song");
mLoopSong->setExclusiveGroup("loopType");
insert(mLoopSong);
mLoopPlaylist = new TDERadioAction(i18n("&Playlist"), TQString::fromLocal8Bit("noatunloopplaylist"),
- 0, TQT_TQOBJECT(this), TQT_SLOT(loopPlaylistSelected()), TQT_TQOBJECT(this), "loop_playlist");
+ 0, this, TQ_SLOT(loopPlaylistSelected()), this, "loop_playlist");
mLoopPlaylist->setExclusiveGroup("loopType");
insert(mLoopPlaylist);
mLoopRandom = new TDERadioAction(i18n("&Random"), TQString::fromLocal8Bit("noatunlooprandom"),
- 0, TQT_TQOBJECT(this), TQT_SLOT(loopRandomSelected()), TQT_TQOBJECT(this), "loop_random");
+ 0, this, TQ_SLOT(loopRandomSelected()), this, "loop_random");
mLoopRandom->setExclusiveGroup("loopType");
insert(mLoopRandom);
- connect(napp->player(), TQT_SIGNAL(loopTypeChange(int)), TQT_TQOBJECT(this), TQT_SLOT(updateLooping(int)));
+ connect(napp->player(), TQ_SIGNAL(loopTypeChange(int)), this, TQ_SLOT(updateLooping(int)));
updateLooping(static_cast<int>(napp->player()->loopStyle()));
}
@@ -239,25 +239,25 @@ TDEAction *playpause(TQObject *parent, const char *name)
TDEAction *effects(TQObject *parent, const char *name)
{
- return new TDEAction(i18n("&Effects..."), "effect", 0, TQT_TQOBJECT(napp), TQT_SLOT(effectView()), parent, name);
+ return new TDEAction(i18n("&Effects..."), "effect", 0, napp, TQ_SLOT(effectView()), parent, name);
}
TDEAction *equalizer(TQObject *parent, const char *name)
{
- return new TDEAction(i18n("E&qualizer..."), "equalizer", 0, TQT_TQOBJECT(napp), TQT_SLOT(equalizerView()), parent, name);
+ return new TDEAction(i18n("E&qualizer..."), "equalizer", 0, napp, TQ_SLOT(equalizerView()), parent, name);
}
TDEAction *back(TQObject *parent, const char *name)
{
- return new TDEAction(i18n("&Back"), "media-skip-backward", 0, TQT_TQOBJECT(napp->player()), TQT_SLOT(back()), parent, name);
+ return new TDEAction(i18n("&Back"), "media-skip-backward", 0, napp->player(), TQ_SLOT(back()), parent, name);
}
TDEAction *stop(TQObject *parent, const char *name)
{
- StereoButtonAction *action = new StereoButtonAction(i18n("Stop"), "media-playback-stop", 0, napp->player(), TQT_SLOT(stop()), parent, name);
- TQObject::connect(napp->player(), TQT_SIGNAL(playing()), action, TQT_SLOT(enable()));
- TQObject::connect(napp->player(), TQT_SIGNAL(paused()), action, TQT_SLOT(enable()));
- TQObject::connect(napp->player(), TQT_SIGNAL(stopped()), action, TQT_SLOT(disable()));
+ StereoButtonAction *action = new StereoButtonAction(i18n("Stop"), "media-playback-stop", 0, napp->player(), TQ_SLOT(stop()), parent, name);
+ TQObject::connect(napp->player(), TQ_SIGNAL(playing()), action, TQ_SLOT(enable()));
+ TQObject::connect(napp->player(), TQ_SIGNAL(paused()), action, TQ_SLOT(enable()));
+ TQObject::connect(napp->player(), TQ_SIGNAL(stopped()), action, TQ_SLOT(disable()));
if(napp->player()->isStopped())
action->disable();
else
@@ -267,15 +267,15 @@ TDEAction *stop(TQObject *parent, const char *name)
TDEAction *forward(TQObject *parent, const char *name)
{
- return new TDEAction(i18n("&Forward"), "media-skip-forward", 0, napp->player(), TQT_SLOT(forward()), parent, name);
+ return new TDEAction(i18n("&Forward"), "media-skip-forward", 0, napp->player(), TQ_SLOT(forward()), parent, name);
}
TDEAction *play(TQObject *parent, const char *name)
{
- StereoButtonAction *action = new StereoButtonAction(i18n("&Play"), "media-playback-start", 0, napp->player(), TQT_SLOT(playpause()), parent, name);
- TQObject::connect(napp->player(), TQT_SIGNAL(playing()), action, TQT_SLOT(disable()));
- TQObject::connect(napp->player(), TQT_SIGNAL(paused()), action, TQT_SLOT(enable()));
- TQObject::connect(napp->player(), TQT_SIGNAL(stopped()), action, TQT_SLOT(enable()));
+ StereoButtonAction *action = new StereoButtonAction(i18n("&Play"), "media-playback-start", 0, napp->player(), TQ_SLOT(playpause()), parent, name);
+ TQObject::connect(napp->player(), TQ_SIGNAL(playing()), action, TQ_SLOT(disable()));
+ TQObject::connect(napp->player(), TQ_SIGNAL(paused()), action, TQ_SLOT(enable()));
+ TQObject::connect(napp->player(), TQ_SIGNAL(stopped()), action, TQ_SLOT(enable()));
if(napp->player()->isPlaying())
action->disable();
else
@@ -285,10 +285,10 @@ TDEAction *play(TQObject *parent, const char *name)
TDEAction *pause(TQObject *parent, const char *name)
{
- StereoButtonAction *action = new StereoButtonAction(i18n("&Pause"), "media-playback-pause", 0, napp->player(), TQT_SLOT(playpause()), parent, name);
- TQObject::connect(napp->player(), TQT_SIGNAL(playing()), action, TQT_SLOT(enable()));
- TQObject::connect(napp->player(), TQT_SIGNAL(paused()), action, TQT_SLOT(disable()));
- TQObject::connect(napp->player(), TQT_SIGNAL(stopped()), action, TQT_SLOT(disable()));
+ StereoButtonAction *action = new StereoButtonAction(i18n("&Pause"), "media-playback-pause", 0, napp->player(), TQ_SLOT(playpause()), parent, name);
+ TQObject::connect(napp->player(), TQ_SIGNAL(playing()), action, TQ_SLOT(enable()));
+ TQObject::connect(napp->player(), TQ_SIGNAL(paused()), action, TQ_SLOT(disable()));
+ TQObject::connect(napp->player(), TQ_SIGNAL(stopped()), action, TQ_SLOT(disable()));
if(napp->player()->isPlaying())
action->enable();
else
@@ -333,15 +333,15 @@ TDEPopupMenu *ContextMenu::createContextMenu(TQWidget *p)
KHelpMenu *helpmenu = new KHelpMenu(contextMenu, kapp->aboutData(), false);
TDEActionCollection* actions = new TDEActionCollection(helpmenu);
- KStdAction::open(TQT_TQOBJECT(napp), TQT_SLOT(fileOpen()), actions)->plug(contextMenu);
- KStdAction::quit(TQT_TQOBJECT(napp), TQT_SLOT(quit()), actions)->plug(contextMenu);
+ KStdAction::open(napp, TQ_SLOT(fileOpen()), actions)->plug(contextMenu);
+ KStdAction::quit(napp, TQ_SLOT(quit()), actions)->plug(contextMenu);
contextMenu->insertItem(SmallIcon("help"), KStdGuiItem::help().text(), helpmenu->menu());
contextMenu->insertSeparator();
- KStdAction::preferences(TQT_TQOBJECT(napp), TQT_SLOT(preferences()), actions)->plug(contextMenu);
- NoatunStdAction::playlist(TQT_TQOBJECT(contextMenu))->plug(contextMenu);
- NoatunStdAction::effects(TQT_TQOBJECT(contextMenu))->plug(contextMenu);
- NoatunStdAction::equalizer(TQT_TQOBJECT(napp))->plug(contextMenu);
- NoatunStdAction::visualizations(TQT_TQOBJECT(napp))->plug(contextMenu);
+ KStdAction::preferences(napp, TQ_SLOT(preferences()), actions)->plug(contextMenu);
+ NoatunStdAction::playlist(contextMenu)->plug(contextMenu);
+ NoatunStdAction::effects(contextMenu)->plug(contextMenu);
+ NoatunStdAction::equalizer(napp)->plug(contextMenu);
+ NoatunStdAction::visualizations(napp)->plug(contextMenu);
napp->pluginActionMenu()->plug(contextMenu);
return contextMenu;
diff --git a/noatun/library/noatuntags/tags.cpp b/noatun/library/noatuntags/tags.cpp
index 3c1bb2ac..62cd97bb 100644
--- a/noatun/library/noatuntags/tags.cpp
+++ b/noatun/library/noatuntags/tags.cpp
@@ -16,7 +16,7 @@ TagsGetter *Tags::getter=0;
TagsGetter::TagsGetter()
{
new Control(this);
- connect(napp->player(), TQT_SIGNAL(newSong()), TQT_SLOT(newSong()));
+ connect(napp->player(), TQ_SIGNAL(newSong()), TQ_SLOT(newSong()));
}
int TagsGetter::interval() const
@@ -115,7 +115,7 @@ void TagsGetter::associate(Tags *t)
tags.append(t);
sortPriority();
// getSongs();
- TQTimer::singleShot(interval(), this, TQT_SLOT(getSongs()));
+ TQTimer::singleShot(interval(), this, TQ_SLOT(getSongs()));
}
void TagsGetter::sortPriority()
@@ -201,7 +201,7 @@ Control::Control(TagsGetter *parent)
", and updates tags (e.g., ID3)",
"Interval:"), intervalLine);
TQSlider *slider=new TQSlider(
- 0, 2000, 100, 0,Qt::Horizontal, intervalLine
+ 0, 2000, 100, 0,TQt::Horizontal, intervalLine
);
TQSpinBox *spin=new TQSpinBox(
0, 2000, 10, intervalLine
@@ -210,14 +210,14 @@ Control::Control(TagsGetter *parent)
spin->setSuffix(i18n("Milliseconds", " ms"));
- connect(slider, TQT_SIGNAL(valueChanged(int)), spin, TQT_SLOT(setValue(int)));
- connect(spin, TQT_SIGNAL(valueChanged(int)), slider, TQT_SLOT(setValue(int)));
+ connect(slider, TQ_SIGNAL(valueChanged(int)), spin, TQ_SLOT(setValue(int)));
+ connect(spin, TQ_SIGNAL(valueChanged(int)), slider, TQ_SLOT(setValue(int)));
slider->setValue(parent->interval());
- connect(slider, TQT_SIGNAL(valueChanged(int)), parent, TQT_SLOT(setInterval(int)));
+ connect(slider, TQ_SIGNAL(valueChanged(int)), parent, TQ_SLOT(setInterval(int)));
- connect(onPlay, TQT_SIGNAL(toggled(bool)), intervalLine, TQT_SLOT(setEnabled(bool)));
+ connect(onPlay, TQ_SIGNAL(toggled(bool)), intervalLine, TQ_SLOT(setEnabled(bool)));
}
- connect(onPlay, TQT_SIGNAL(toggled(bool)), parent, TQT_SLOT(setLoadAuto(bool)));
+ connect(onPlay, TQ_SIGNAL(toggled(bool)), parent, TQ_SLOT(setLoadAuto(bool)));
onPlay->setChecked(parent->loadAuto());
}
diff --git a/noatun/library/noatuntags/tagsgetter.h b/noatun/library/noatuntags/tagsgetter.h
index c48727ea..65e3bdcd 100644
--- a/noatun/library/noatuntags/tagsgetter.h
+++ b/noatun/library/noatuntags/tagsgetter.h
@@ -9,7 +9,7 @@
class TagsGetter : public TQObject, public PlaylistNotifier
{
-Q_OBJECT
+TQ_OBJECT
public:
TagsGetter();
@@ -47,7 +47,7 @@ private:
class Control : public CModule
{
-Q_OBJECT
+TQ_OBJECT
public:
Control(TagsGetter* parent);
diff --git a/noatun/library/player.cpp b/noatun/library/player.cpp
index 5ab2aeba..bf1ecaed 100644
--- a/noatun/library/player.cpp
+++ b/noatun/library/player.cpp
@@ -18,18 +18,18 @@ Player::Player(TQObject *parent) : TQObject(parent, "Player"),
position(-1), mLoopStyle(None), firstTimeout(true)
{
mEngine=new Engine;
- connect(&filePos, TQT_SIGNAL(timeout()), TQT_SLOT(posTimeout()));
- connect(mEngine, TQT_SIGNAL(aboutToPlay()), this, TQT_SLOT(aboutToPlay()));
+ connect(&filePos, TQ_SIGNAL(timeout()), TQ_SLOT(posTimeout()));
+ connect(mEngine, TQ_SIGNAL(aboutToPlay()), this, TQ_SLOT(aboutToPlay()));
connect(mEngine,
- TQT_SIGNAL(receivedStreamMeta(const TQString &, const TQString &,
+ TQ_SIGNAL(receivedStreamMeta(const TQString &, const TQString &,
const TQString &, const TQString &,
const TQString &, const TQString &)),
- this, TQT_SLOT(
+ this, TQ_SLOT(
slotUpdateStreamMeta(const TQString &, const TQString &,
const TQString &, const TQString &,
const TQString &, const TQString &))
);
- connect(mEngine, TQT_SIGNAL(playingFailed()), this, TQT_SLOT(forward()));
+ connect(mEngine, TQ_SIGNAL(playingFailed()), this, TQ_SLOT(forward()));
handleButtons();
}
diff --git a/noatun/library/playlist.cpp b/noatun/library/playlist.cpp
index 7e59885f..380934bd 100644
--- a/noatun/library/playlist.cpp
+++ b/noatun/library/playlist.cpp
@@ -280,9 +280,9 @@ bool PlaylistItemData::operator != (const PlaylistItemData &d) const
Playlist::Playlist(TQObject *parent, const char *name) : TQObject(parent, name)
{
- napp->player()->connect(this, TQT_SIGNAL(playCurrent()), TQT_SLOT(playCurrent()));
- napp->player()->connect(this, TQT_SIGNAL(listHidden()), TQT_SIGNAL(playlistHidden()));
- napp->player()->connect(this, TQT_SIGNAL(listShown()), TQT_SIGNAL(playlistShown()));
+ napp->player()->connect(this, TQ_SIGNAL(playCurrent()), TQ_SLOT(playCurrent()));
+ napp->player()->connect(this, TQ_SIGNAL(listHidden()), TQ_SIGNAL(playlistHidden()));
+ napp->player()->connect(this, TQ_SIGNAL(listShown()), TQ_SIGNAL(playlistShown()));
}
diff --git a/noatun/library/playlistsaver.cpp b/noatun/library/playlistsaver.cpp
index 13b7ecfe..1450804d 100644
--- a/noatun/library/playlistsaver.cpp
+++ b/noatun/library/playlistsaver.cpp
@@ -449,7 +449,7 @@ bool PlaylistSaver::loadXML(const KURL &url, int opt)
reset();
// TQXml is horribly documented
- TQXmlInputSource source(TQT_TQIODEVICE(&file));
+ TQXmlInputSource source(&file);
TQXmlSimpleReader reader;
if (opt == ASX ||
diff --git a/noatun/library/plugin.cpp b/noatun/library/plugin.cpp
index 3c5b6f5d..ac0f0329 100644
--- a/noatun/library/plugin.cpp
+++ b/noatun/library/plugin.cpp
@@ -566,7 +566,7 @@ ExitNotifier::~ExitNotifier()
BoolNotifier::BoolNotifier(bool *value, NoatunListener *listener, TQObject *parent)
: TQObject(parent)
{
- connect(listener, TQT_SIGNAL(event()), TQT_SLOT(event()));
+ connect(listener, TQ_SIGNAL(event()), TQ_SLOT(event()));
mValue=value;
}
diff --git a/noatun/library/plugin_deps.h b/noatun/library/plugin_deps.h
index 777c70e3..875bec35 100644
--- a/noatun/library/plugin_deps.h
+++ b/noatun/library/plugin_deps.h
@@ -11,7 +11,7 @@ class NoatunListener;
class TimerThingy : public TQObject
{
-Q_OBJECT
+TQ_OBJECT
public:
TimerThingy(Visualization*);
diff --git a/noatun/library/pluginmodule.cpp b/noatun/library/pluginmodule.cpp
index d6b86e86..a7a59b48 100644
--- a/noatun/library/pluginmodule.cpp
+++ b/noatun/library/pluginmodule.cpp
@@ -152,7 +152,7 @@ Plugins::Plugins(TQObject *_parent)
interfaceList->addColumn(i18n("Description"));
interfaceList->addColumn(i18n("Author"));
interfaceList->addColumn(i18n("License"));
- connect(interfaceList, TQT_SIGNAL(stateChange(PluginListItem *, bool)), this, TQT_SLOT(stateChange(PluginListItem *, bool)));
+ connect(interfaceList, TQ_SIGNAL(stateChange(PluginListItem *, bool)), this, TQ_SLOT(stateChange(PluginListItem *, bool)));
tabControl->addTab(interfaceTab, i18n("&Interfaces"));
TQFrame *playlistTab = new TQFrame(tabControl);
@@ -164,7 +164,7 @@ Plugins::Plugins(TQObject *_parent)
playlistList->addColumn(i18n("Description"));
playlistList->addColumn(i18n("Author"));
playlistList->addColumn(i18n("License"));
- connect(playlistList, TQT_SIGNAL(stateChange(PluginListItem *, bool)), this, TQT_SLOT(stateChange(PluginListItem *, bool)));
+ connect(playlistList, TQ_SIGNAL(stateChange(PluginListItem *, bool)), this, TQ_SLOT(stateChange(PluginListItem *, bool)));
tabControl->addTab(playlistTab, i18n("&Playlist"));
TQFrame *visTab = new TQFrame(tabControl);
@@ -175,7 +175,7 @@ Plugins::Plugins(TQObject *_parent)
visList->addColumn(i18n("Description"));
visList->addColumn(i18n("Author"));
visList->addColumn(i18n("License"));
- connect(visList, TQT_SIGNAL(stateChange(PluginListItem *, bool)), this, TQT_SLOT(stateChange(PluginListItem *, bool)));
+ connect(visList, TQ_SIGNAL(stateChange(PluginListItem *, bool)), this, TQ_SLOT(stateChange(PluginListItem *, bool)));
tabControl->addTab(visTab, i18n("&Visualizations"));
// Other plugins are not restricted
@@ -187,7 +187,7 @@ Plugins::Plugins(TQObject *_parent)
otherList->addColumn(i18n("Description"));
otherList->addColumn(i18n("Author"));
otherList->addColumn(i18n("License"));
- connect(otherList, TQT_SIGNAL(stateChange(PluginListItem *, bool)), this, TQT_SLOT(stateChange(PluginListItem *, bool)));
+ connect(otherList, TQ_SIGNAL(stateChange(PluginListItem *, bool)), this, TQ_SLOT(stateChange(PluginListItem *, bool)));
tabControl->addTab(otherTab, i18n("O&ther Plugins"));
}
diff --git a/noatun/library/pluginmodule.h b/noatun/library/pluginmodule.h
index 47519d66..804ea492 100644
--- a/noatun/library/pluginmodule.h
+++ b/noatun/library/pluginmodule.h
@@ -50,7 +50,7 @@ private:
class PluginListView : public TDEListView
{
-Q_OBJECT
+TQ_OBJECT
friend class PluginListItem;
@@ -75,7 +75,7 @@ private:
class Plugins : public CModule
{
-Q_OBJECT
+TQ_OBJECT
public:
Plugins(TQObject *_parent = 0);
diff --git a/noatun/library/pref.cpp b/noatun/library/pref.cpp
index 9ed882c5..55926830 100644
--- a/noatun/library/pref.cpp
+++ b/noatun/library/pref.cpp
@@ -32,7 +32,7 @@ void NoatunPreferences::show()
void NoatunPreferences::show(CModule *page)
{
- int index = pageIndex( static_cast<TQWidget *>(TQT_TQWIDGET(page->parent())) );
+ int index = pageIndex( static_cast<TQWidget *>(page->parent()) );
if (index != -1)
showPage(index);
show();
@@ -59,13 +59,13 @@ CModule::CModule(const TQString &name, const TQString &description, const TQStri
icon, TDEIcon::Small,0, TDEIcon::DefaultState,0, true)))
{
if (owner)
- connect(owner, TQT_SIGNAL(destroyed()), TQT_SLOT(ownerDeleted()));
+ connect(owner, TQ_SIGNAL(destroyed()), TQ_SLOT(ownerDeleted()));
//kdDebug(66666) << k_funcinfo << "name = " << name << endl;
napp->preferencesBox()->add(this);
- TQFrame *page=static_cast<TQFrame*>(TQT_TQWIDGET(parent()));
+ TQFrame *page=static_cast<TQFrame*>(parent());
(new TQHBoxLayout(page))->addWidget(this);
}
diff --git a/noatun/library/scrollinglabel.cpp b/noatun/library/scrollinglabel.cpp
index d21a2aad..235d10b3 100644
--- a/noatun/library/scrollinglabel.cpp
+++ b/noatun/library/scrollinglabel.cpp
@@ -62,8 +62,8 @@ ScrollingLabel::ScrollingLabel
{
d = new Private;
- connect(&d->scrollTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(scroll()));
- connect(&d->resetTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(restoreText()));
+ connect(&d->scrollTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(scroll()));
+ connect(&d->resetTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(restoreText()));
setText(initialText);
}
diff --git a/noatun/library/titleproxy.cpp b/noatun/library/titleproxy.cpp
index 65006135..a4439207 100644
--- a/noatun/library/titleproxy.cpp
+++ b/noatun/library/titleproxy.cpp
@@ -50,9 +50,9 @@ Proxy::Proxy( KURL url )
if ( m_url.port() < 1 )
m_url.setPort( 80 );
- connect( &m_sockRemote, TQT_SIGNAL( error( int ) ), this, TQT_SLOT( connectError() ) );
- connect( &m_sockRemote, TQT_SIGNAL( connected() ), this, TQT_SLOT( sendRequest() ) );
- connect( &m_sockRemote, TQT_SIGNAL( readyRead() ), this, TQT_SLOT( readRemote() ) );
+ connect( &m_sockRemote, TQ_SIGNAL( error( int ) ), this, TQ_SLOT( connectError() ) );
+ connect( &m_sockRemote, TQ_SIGNAL( connected() ), this, TQ_SLOT( sendRequest() ) );
+ connect( &m_sockRemote, TQ_SIGNAL( readyRead() ), this, TQ_SLOT( readRemote() ) );
uint i = 0;
Server* server = 0;
@@ -74,7 +74,7 @@ Proxy::Proxy( KURL url )
return;
}
m_usedPort = i;
- connect( server, TQT_SIGNAL( connected( int ) ), this, TQT_SLOT( accept( int ) ) );
+ connect( server, TQ_SIGNAL( connected( int ) ), this, TQ_SLOT( accept( int ) ) );
}
@@ -130,7 +130,7 @@ void Proxy::connectToHost() //SLOT
{ //connect to server
TQTimer::singleShot( KProtocolManager::connectTimeout() * 1000,
- this, TQT_SLOT( connectError() ) );
+ this, TQ_SLOT( connectError() ) );
kdDebug(66666) << k_funcinfo << "Connecting to " <<
m_url.host() << ":" << m_url.port() << endl;
@@ -316,8 +316,8 @@ bool Proxy::processHeader( TQ_LONG &index, TQ_LONG bytesRead )
return false;
}
- connect( &m_sockRemote, TQT_SIGNAL( connectionClosed() ),
- this, TQT_SLOT( connectError() ) );
+ connect( &m_sockRemote, TQ_SIGNAL( connectionClosed() ),
+ this, TQ_SLOT( connectError() ) );
return true;
}
}
diff --git a/noatun/library/titleproxy.h b/noatun/library/titleproxy.h
index 2bb13243..5c0d9349 100644
--- a/noatun/library/titleproxy.h
+++ b/noatun/library/titleproxy.h
@@ -48,7 +48,7 @@ namespace TitleProxy
class Proxy : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
Proxy( KURL url );
@@ -111,7 +111,7 @@ namespace TitleProxy
class Server : public TQServerSocket
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/noatun/library/video.cpp b/noatun/library/video.cpp
index db6886b3..8105127d 100644
--- a/noatun/library/video.cpp
+++ b/noatun/library/video.cpp
@@ -28,8 +28,8 @@ VideoFrame::VideoFrame(KXMLGUIClient *clientParent, TQWidget *parent, const char
: KVideoWidget(clientParent, parent, name, f)
{
d = new Private;
- connect(napp->player(), TQT_SIGNAL(newSong()), TQT_SLOT(changed()));
- connect(napp->player(), TQT_SIGNAL(stopped()), TQT_SLOT(stopped()));
+ connect(napp->player(), TQ_SIGNAL(newSong()), TQ_SLOT(changed()));
+ connect(napp->player(), TQ_SIGNAL(stopped()), TQ_SLOT(stopped()));
frames.append(this);
}
@@ -37,8 +37,8 @@ VideoFrame::VideoFrame(TQWidget *parent, const char *name, WFlags f)
: KVideoWidget(parent, name, f)
{
d = new Private;
- connect(napp->player(), TQT_SIGNAL(newSong()), TQT_SLOT(changed()));
- connect(napp->player(), TQT_SIGNAL(stopped()), TQT_SLOT(stopped()));
+ connect(napp->player(), TQ_SIGNAL(newSong()), TQ_SLOT(changed()));
+ connect(napp->player(), TQ_SIGNAL(stopped()), TQ_SLOT(stopped()));
frames.append(this);
}
@@ -126,9 +126,9 @@ GlobalVideo::GlobalVideo()
// video->setMinimumSize(101,35);
video->setMinimumSize(128,96);
- connect(video, TQT_SIGNAL(acquired()), TQT_SLOT(appear()));
- connect(video, TQT_SIGNAL(lost()), TQT_SLOT(hide()));
- connect(video, TQT_SIGNAL(adaptSize(int,int)), this, TQT_SLOT(slotAdaptSize(int,int)));
+ connect(video, TQ_SIGNAL(acquired()), TQ_SLOT(appear()));
+ connect(video, TQ_SIGNAL(lost()), TQ_SLOT(hide()));
+ connect(video, TQ_SIGNAL(adaptSize(int,int)), this, TQ_SLOT(slotAdaptSize(int,int)));
video->setNormalSize();
video->give();
@@ -151,7 +151,7 @@ void GlobalVideo::hide()
void GlobalVideo::mouseReleaseEvent(TQMouseEvent *e)
{
- if (e->button() == Qt::RightButton)
+ if (e->button() == TQt::RightButton)
{
menu->exec(mapToGlobal(e->pos()));
}
diff --git a/noatun/modules/artseffects/extrastereogui_impl.cpp b/noatun/modules/artseffects/extrastereogui_impl.cpp
index 92148ba0..c65ff19f 100644
--- a/noatun/modules/artseffects/extrastereogui_impl.cpp
+++ b/noatun/modules/artseffects/extrastereogui_impl.cpp
@@ -7,7 +7,7 @@ namespace Arts {
ExtraStereoGUI_impl::ExtraStereoGUI_impl() : TQWidget(0)
{
(new TQHBoxLayout(this))->setAutoAdd(true);
- mSlider=new TQSlider(0,100,10, 0,Qt::Horizontal, this);
+ mSlider=new TQSlider(0,100,10, 0,TQt::Horizontal, this);
mSlider->show();
show();
}
diff --git a/noatun/modules/dcopiface/dcopiface.cpp b/noatun/modules/dcopiface/dcopiface.cpp
index aef6c58f..4c9e0f37 100644
--- a/noatun/modules/dcopiface/dcopiface.cpp
+++ b/noatun/modules/dcopiface/dcopiface.cpp
@@ -9,7 +9,7 @@
extern "C"
{
- KDE_EXPORT NIF *create_plugin()
+ TDE_EXPORT NIF *create_plugin()
{
return new NIF();
}
@@ -19,7 +19,7 @@ extern "C"
NIF::NIF() : Plugin(), DCOPObject("Noatun")
{
mLastVolume = 0;
-// connect(napp->player(), TQT_SIGNAL(newSong()), TQT_SLOT(newSongPlaying()));
+// connect(napp->player(), TQ_SIGNAL(newSong()), TQ_SLOT(newSongPlaying()));
}
NIF::~NIF()
diff --git a/noatun/modules/dcopiface/dcopiface.h b/noatun/modules/dcopiface/dcopiface.h
index cd58a228..38767fc4 100644
--- a/noatun/modules/dcopiface/dcopiface.h
+++ b/noatun/modules/dcopiface/dcopiface.h
@@ -7,7 +7,7 @@
#include <dcopobject.h>
#include <kdemacros.h>
-class KDE_EXPORT NIF : public Plugin, public DCOPObject
+class TDE_EXPORT NIF : public Plugin, public DCOPObject
{
K_DCOP
diff --git a/noatun/modules/excellent/noatunui.cpp b/noatun/modules/excellent/noatunui.cpp
index a103268d..575dc32a 100644
--- a/noatun/modules/excellent/noatunui.cpp
+++ b/noatun/modules/excellent/noatunui.cpp
@@ -26,7 +26,7 @@
#include "userinterface.h"
-extern "C" KDE_EXPORT Plugin *create_plugin()
+extern "C" TDE_EXPORT Plugin *create_plugin()
{
return new Excellent();
}
diff --git a/noatun/modules/excellent/userinterface.cpp b/noatun/modules/excellent/userinterface.cpp
index 12e7169b..b03a2dbc 100644
--- a/noatun/modules/excellent/userinterface.cpp
+++ b/noatun/modules/excellent/userinterface.cpp
@@ -67,12 +67,12 @@ Excellent::Excellent()
{
setAcceptDrops(true);
- KStdAction::quit(TQT_TQOBJECT(napp), TQT_SLOT(quit()), actionCollection());
- KStdAction::open(TQT_TQOBJECT(napp), TQT_SLOT(fileOpen()), actionCollection());
+ KStdAction::quit(napp, TQ_SLOT(quit()), actionCollection());
+ KStdAction::open(napp, TQ_SLOT(fileOpen()), actionCollection());
setStandardToolBarMenuEnabled(true);
- menubarAction = KStdAction::showMenubar(TQT_TQOBJECT(this), TQT_SLOT(showMenubar()), actionCollection());
- KStdAction::preferences(TQT_TQOBJECT(napp), TQT_SLOT(preferences()), actionCollection());
+ menubarAction = KStdAction::showMenubar(this, TQ_SLOT(showMenubar()), actionCollection());
+ KStdAction::preferences(napp, TQ_SLOT(preferences()), actionCollection());
// buttons
NoatunStdAction::back(actionCollection(), "back");
@@ -82,7 +82,7 @@ Excellent::Excellent()
NoatunStdAction::forward(actionCollection(), "forward");
NoatunStdAction::playlist(actionCollection(), "show_playlist");
- volumeAction = new TDEToggleAction(i18n("Show &Volume Control"), 0, TQT_TQOBJECT(this), TQT_SLOT(showVolumeControl()), actionCollection(), "show_volumecontrol");
+ volumeAction = new TDEToggleAction(i18n("Show &Volume Control"), 0, this, TQ_SLOT(showVolumeControl()), actionCollection(), "show_volumecontrol");
volumeAction->setCheckedState(i18n("Hide &Volume Control"));
NoatunStdAction::effects(actionCollection(), "effects");
NoatunStdAction::equalizer(actionCollection(), "equalizer");
@@ -98,7 +98,7 @@ Excellent::Excellent()
mainFrame = new TQHBox(this);
mainFrame->setSpacing(KDialog::spacingHint());
mainFrame->setMargin(0);
- slider = new L33tSlider(0, 1000, 10, 0, Qt::Horizontal, mainFrame);
+ slider = new L33tSlider(0, 1000, 10, 0, TQt::Horizontal, mainFrame);
slider->setTickmarks(TQSlider::NoMarks);
elapsed = new TQLabel(mainFrame);
@@ -129,24 +129,24 @@ Excellent::Excellent()
statusBar()->addWidget(total, 0, true);
statusBar()->show();
- connect( napp, TQT_SIGNAL(hideYourself()), this, TQT_SLOT(hide()) );
- connect( napp, TQT_SIGNAL(showYourself()), this, TQT_SLOT(show()) );
+ connect( napp, TQ_SIGNAL(hideYourself()), this, TQ_SLOT(hide()) );
+ connect( napp, TQ_SIGNAL(showYourself()), this, TQ_SLOT(show()) );
- connect(napp->player(), TQT_SIGNAL(playing()), this, TQT_SLOT(slotPlaying()));
- connect(napp->player(), TQT_SIGNAL(stopped()), this, TQT_SLOT(slotStopped()));
- connect(napp->player(), TQT_SIGNAL(paused()), this, TQT_SLOT(slotPaused()));
+ connect(napp->player(), TQ_SIGNAL(playing()), this, TQ_SLOT(slotPlaying()));
+ connect(napp->player(), TQ_SIGNAL(stopped()), this, TQ_SLOT(slotStopped()));
+ connect(napp->player(), TQ_SIGNAL(paused()), this, TQ_SLOT(slotPaused()));
napp->player()->handleButtons();
- connect(napp->player(), TQT_SIGNAL(timeout()), this, TQT_SLOT(slotTimeout()));
- connect(napp->player(), TQT_SIGNAL(loopTypeChange(int)), this, TQT_SLOT(slotLoopTypeChanged(int)));
+ connect(napp->player(), TQ_SIGNAL(timeout()), this, TQ_SLOT(slotTimeout()));
+ connect(napp->player(), TQ_SIGNAL(loopTypeChange(int)), this, TQ_SLOT(slotLoopTypeChanged(int)));
/* This skipToWrapper is needed to pass milliseconds to Player() as everybody
* below the GUI is based on milliseconds instead of some unprecise thingy
* like seconds or mille */
- connect(slider, TQT_SIGNAL(userChanged(int)), this, TQT_SLOT(skipToWrapper(int)));
- connect(this, TQT_SIGNAL(skipTo(int)), napp->player(), TQT_SLOT(skipTo(int)));
+ connect(slider, TQ_SIGNAL(userChanged(int)), this, TQ_SLOT(skipToWrapper(int)));
+ connect(this, TQ_SIGNAL(skipTo(int)), napp->player(), TQ_SLOT(skipTo(int)));
- connect(slider, TQT_SIGNAL(sliderMoved(int)), TQT_SLOT(sliderMoved(int)));
+ connect(slider, TQ_SIGNAL(sliderMoved(int)), TQ_SLOT(sliderMoved(int)));
setCaption("Noatun");
setIcon(SmallIcon("noatun"));
@@ -248,7 +248,7 @@ bool Excellent::eventFilter(TQObject *o, TQEvent *e)
{
if (e->type() == TQEvent::Wheel)
{
- wheelEvent(TQT_TQWHEELEVENT(e));
+ wheelEvent(static_cast<TQWheelEvent*>(e));
return true;
}
return TQWidget::eventFilter(o, e);
@@ -373,11 +373,11 @@ void Excellent::handleLengthString(const TQString &text)
void Excellent::growVolumeControl(void)
{
- volumeSlider = new L33tSlider(0, 100, 10, 0,Qt::Vertical, mainFrame);
+ volumeSlider = new L33tSlider(0, 100, 10, 0,TQt::Vertical, mainFrame);
volumeSlider->setValue(100 - napp->player()->volume());
volumeSlider->show();
- connect(volumeSlider, TQT_SIGNAL(sliderMoved(int)), TQT_SLOT(changeVolume(int)));
- connect(volumeSlider, TQT_SIGNAL(userChanged(int)), TQT_SLOT(changeVolume(int)));
+ connect(volumeSlider, TQ_SIGNAL(sliderMoved(int)), TQ_SLOT(changeVolume(int)));
+ connect(volumeSlider, TQ_SIGNAL(userChanged(int)), TQ_SLOT(changeVolume(int)));
}
void Excellent::shrinkVolumeControl(void)
diff --git a/noatun/modules/excellent/userinterface.h b/noatun/modules/excellent/userinterface.h
index a5aca1a1..79a1a2da 100644
--- a/noatun/modules/excellent/userinterface.h
+++ b/noatun/modules/excellent/userinterface.h
@@ -49,7 +49,7 @@ class TDEToggleAction;
*/
class Excellent : public TDEMainWindow, public UserInterface
{
-Q_OBJECT
+TQ_OBJECT
public:
diff --git a/noatun/modules/htmlexport/htmlexport.cpp b/noatun/modules/htmlexport/htmlexport.cpp
index bc2399cc..3facc98c 100644
--- a/noatun/modules/htmlexport/htmlexport.cpp
+++ b/noatun/modules/htmlexport/htmlexport.cpp
@@ -7,7 +7,7 @@
extern "C"
{
- KDE_EXPORT Plugin *create_plugin()
+ TDE_EXPORT Plugin *create_plugin()
{
return new HTMLExport();
}
@@ -18,7 +18,7 @@ HTMLExport::HTMLExport(): TQObject(0, "HTMLExport"), Plugin()
NOATUNPLUGINC(HTMLExport);
mAction = new TDEAction(i18n("&Export Playlist..."), "document-save-as", 0,
- this, TQT_SLOT(slotExport()), this, "exportlist");
+ this, TQ_SLOT(slotExport()), this, "exportlist");
napp->pluginActionMenu()->insert(mAction);
new Prefs(this);
diff --git a/noatun/modules/htmlexport/htmlexport.h b/noatun/modules/htmlexport/htmlexport.h
index c5928ed7..f2262faf 100644
--- a/noatun/modules/htmlexport/htmlexport.h
+++ b/noatun/modules/htmlexport/htmlexport.h
@@ -33,7 +33,7 @@ class TDEAction;
class HTMLExport : public TQObject, public Plugin
{
-Q_OBJECT
+TQ_OBJECT
NOATUNPLUGIND
public:
@@ -54,7 +54,7 @@ private slots:
class Prefs : public CModule
{
-Q_OBJECT
+TQ_OBJECT
public:
Prefs(TQObject *parent);
diff --git a/noatun/modules/infrared/infrared.cpp b/noatun/modules/infrared/infrared.cpp
index bd8a65bd..76b6dc73 100644
--- a/noatun/modules/infrared/infrared.cpp
+++ b/noatun/modules/infrared/infrared.cpp
@@ -14,7 +14,7 @@
extern "C"
{
- KDE_EXPORT Plugin *create_plugin()
+ TDE_EXPORT Plugin *create_plugin()
{
return new InfraRed();
}
@@ -28,12 +28,12 @@ InfraRed::InfraRed()
NOATUNPLUGINC(InfraRed);
m_lirc = new Lirc(this);
connect(m_lirc,
- TQT_SIGNAL(commandReceived(const TQString &, const TQString &, int)),
- TQT_SLOT(slotCommand(const TQString &, const TQString &, int)));
+ TQ_SIGNAL(commandReceived(const TQString &, const TQString &, int)),
+ TQ_SLOT(slotCommand(const TQString &, const TQString &, int)));
IRPrefs::s_lirc = m_lirc;
volume=0;
- TQTimer::singleShot(0, this, TQT_SLOT(start()));
+ TQTimer::singleShot(0, this, TQ_SLOT(start()));
}
InfraRed::~InfraRed()
diff --git a/noatun/modules/infrared/infrared.h b/noatun/modules/infrared/infrared.h
index a8c9bd56..df3883d8 100644
--- a/noatun/modules/infrared/infrared.h
+++ b/noatun/modules/infrared/infrared.h
@@ -10,7 +10,7 @@ class Lirc;
class InfraRed : public TQObject, public Plugin
{
-Q_OBJECT
+TQ_OBJECT
NOATUNPLUGIND
public:
diff --git a/noatun/modules/infrared/irprefs.cpp b/noatun/modules/infrared/irprefs.cpp
index 06a1ade4..50df64cd 100644
--- a/noatun/modules/infrared/irprefs.cpp
+++ b/noatun/modules/infrared/irprefs.cpp
@@ -84,19 +84,19 @@ IRPrefs::IRPrefs(TQObject *parent)
m_interval->setEnabled(false);
layout->addWidget(m_interval, 2, 4);
- connect(s_lirc, TQT_SIGNAL(remotesRead()), TQT_SLOT(reopen()));
+ connect(s_lirc, TQ_SIGNAL(remotesRead()), TQ_SLOT(reopen()));
connect(m_commands,
- TQT_SIGNAL(selectionChanged(TQListViewItem *)),
- TQT_SLOT(slotCommandSelected(TQListViewItem *)));
+ TQ_SIGNAL(selectionChanged(TQListViewItem *)),
+ TQ_SLOT(slotCommandSelected(TQListViewItem *)));
connect(m_action,
- TQT_SIGNAL(activated(int)),
- TQT_SLOT(slotActionActivated(int)));
+ TQ_SIGNAL(activated(int)),
+ TQ_SLOT(slotActionActivated(int)));
connect(m_repeat,
- TQT_SIGNAL(toggled(bool)),
- TQT_SLOT(slotRepeatToggled(bool)));
+ TQ_SIGNAL(toggled(bool)),
+ TQ_SLOT(slotRepeatToggled(bool)));
connect(m_interval,
- TQT_SIGNAL(valueChanged(int)),
- TQT_SLOT(slotIntervalChanged(int)));
+ TQ_SIGNAL(valueChanged(int)),
+ TQ_SLOT(slotIntervalChanged(int)));
reopen();
}
diff --git a/noatun/modules/infrared/irprefs.h b/noatun/modules/infrared/irprefs.h
index 6646456e..925cf638 100644
--- a/noatun/modules/infrared/irprefs.h
+++ b/noatun/modules/infrared/irprefs.h
@@ -14,7 +14,7 @@ class Lirc;
class IRPrefs : public CModule
{
-Q_OBJECT
+TQ_OBJECT
public:
enum Action
diff --git a/noatun/modules/infrared/lirc.cpp b/noatun/modules/infrared/lirc.cpp
index 2487278b..2a6e2ec5 100644
--- a/noatun/modules/infrared/lirc.cpp
+++ b/noatun/modules/infrared/lirc.cpp
@@ -34,7 +34,7 @@ Lirc::Lirc(TQObject *parent)
m_socket = new TQSocket;
m_socket->setSocket(sock);
- connect(m_socket, TQT_SIGNAL(readyRead()), TQT_SLOT(slotRead()));
+ connect(m_socket, TQ_SIGNAL(readyRead()), TQ_SLOT(slotRead()));
update();
}
diff --git a/noatun/modules/infrared/lirc.h b/noatun/modules/infrared/lirc.h
index c770cbac..4b455da5 100644
--- a/noatun/modules/infrared/lirc.h
+++ b/noatun/modules/infrared/lirc.h
@@ -12,7 +12,7 @@ typedef TQMap<TQString, TQStringList> Remotes;
class Lirc : public TQObject
{
-Q_OBJECT
+TQ_OBJECT
public:
/**
diff --git a/noatun/modules/kaiman/SKIN-SPECS b/noatun/modules/kaiman/SKIN-SPECS
index ae293014..bc3533ad 100644
--- a/noatun/modules/kaiman/SKIN-SPECS
+++ b/noatun/modules/kaiman/SKIN-SPECS
@@ -247,7 +247,7 @@ Digit_Large/Digit_Small_Default: filename
Image file. Contains digits horizontally from 0 to 9, and a blank space.
These two digits are a convenience function, if you want to use a digit more than
- once it is quicker to load it into on of these two Q_SLOTS. Then when using the digit
+ once it is quicker to load it into on of these two slots. Then when using the digit
in the number item type below, use the words 'Large' or 'Small' in place of the
filename.
diff --git a/noatun/modules/kaiman/noatunui.cpp b/noatun/modules/kaiman/noatunui.cpp
index bc1bceb0..6dc2538e 100644
--- a/noatun/modules/kaiman/noatunui.cpp
+++ b/noatun/modules/kaiman/noatunui.cpp
@@ -2,7 +2,7 @@
extern "C"
{
- KDE_EXPORT Plugin *create_plugin()
+ TDE_EXPORT Plugin *create_plugin()
{
return new Kaiman();
}
diff --git a/noatun/modules/kaiman/pref.h b/noatun/modules/kaiman/pref.h
index 50ab3808..6917f879 100644
--- a/noatun/modules/kaiman/pref.h
+++ b/noatun/modules/kaiman/pref.h
@@ -26,7 +26,7 @@ class TQLabel;
class KaimanPrefDlg : public CModule
{
- Q_OBJECT
+ TQ_OBJECT
public:
KaimanPrefDlg( TQObject *parent );
diff --git a/noatun/modules/kaiman/style.cpp b/noatun/modules/kaiman/style.cpp
index a11f569b..87fc3f56 100644
--- a/noatun/modules/kaiman/style.cpp
+++ b/noatun/modules/kaiman/style.cpp
@@ -646,7 +646,7 @@ KaimanStyleText::KaimanStyleText(TQWidget *parent, const char *name)
_pos = 0;
_timer = new TQTimer( this );
_delay = 500;
- connect( _timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(timeout()) );
+ connect( _timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(timeout()) );
}
KaimanStyleText::~KaimanStyleText()
@@ -741,7 +741,7 @@ KaimanStyleAnimation::KaimanStyleAnimation(int delay, TQWidget *parent, const ch
_delay = delay;
_frame = 0;
_timer = new TQTimer( this );
- connect( _timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(timeout()) );
+ connect( _timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(timeout()) );
}
KaimanStyleAnimation::~KaimanStyleAnimation()
@@ -1400,13 +1400,13 @@ bool KaimanStyle::eventFilter( TQObject *o, TQEvent *e )
TQMouseEvent *m = (TQMouseEvent*)e;
// handle noatun context menu
- if (m->button()==Qt::RightButton) {
+ if (m->button()==TQt::RightButton) {
NoatunStdAction::ContextMenu::showContextMenu();
return true;
}
- TQPoint mousePos( m->x()+TQT_TQWIDGET(o)->x(),
- m->y()+TQT_TQWIDGET(o)->y() );
+ TQPoint mousePos( m->x()+static_cast<TQWidget*>(o)->x(),
+ m->y()+static_cast<TQWidget*>(o)->y() );
TQWidget *slider = 0;
/* find slider that is under the mouse position */
diff --git a/noatun/modules/kaiman/style.h b/noatun/modules/kaiman/style.h
index 160dee8b..f3489448 100644
--- a/noatun/modules/kaiman/style.h
+++ b/noatun/modules/kaiman/style.h
@@ -30,7 +30,7 @@
class KaimanStyleElement : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
KaimanStyleElement(TQWidget *parent, const char *name=0);
@@ -71,7 +71,7 @@ private:
class KaimanStyleMasked : public KaimanStyleElement
{
- Q_OBJECT
+ TQ_OBJECT
public:
KaimanStyleMasked(TQWidget *parent, const char *name=0)
@@ -88,7 +88,7 @@ public:
class KaimanStyleButton : public KaimanStyleMasked
{
- Q_OBJECT
+ TQ_OBJECT
public:
KaimanStyleButton(TQWidget *parent, const char *name=0);
@@ -126,7 +126,7 @@ private:
class KaimanStyleSlider : public KaimanStyleMasked
{
- Q_OBJECT
+ TQ_OBJECT
public:
KaimanStyleSlider(int min, int max, TQWidget *parent, const char *name=0);
@@ -165,7 +165,7 @@ protected:
class KaimanStyleBackground : public KaimanStyleMasked
{
- Q_OBJECT
+ TQ_OBJECT
public:
KaimanStyleBackground(TQWidget *parent, const char *name=0);
@@ -185,7 +185,7 @@ private:
class KaimanStyleValue : public KaimanStyleMasked
{
- Q_OBJECT
+ TQ_OBJECT
public:
KaimanStyleValue(int min, int max, TQWidget *parent, const char *name=0);
@@ -204,7 +204,7 @@ private:
class KaimanStyleState : public KaimanStyleMasked
{
- Q_OBJECT
+ TQ_OBJECT
public:
KaimanStyleState(TQWidget *parent, const char *name=0);
@@ -228,7 +228,7 @@ private:
class KaimanStyleNumber : public KaimanStyleElement
{
- Q_OBJECT
+ TQ_OBJECT
public:
KaimanStyleNumber(TQWidget *parent, const char *name=0);
@@ -253,7 +253,7 @@ private:
class KaimanStyleText : public KaimanStyleElement
{
- Q_OBJECT
+ TQ_OBJECT
public:
KaimanStyleText(TQWidget *parent, const char *name=0);
@@ -288,7 +288,7 @@ private:
class KaimanStyleAnimation : public KaimanStyleMasked
{
- Q_OBJECT
+ TQ_OBJECT
public:
KaimanStyleAnimation(int delay, TQWidget *parent, const char *name=0);
@@ -309,7 +309,7 @@ private:
class KaimanStyle : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
KaimanStyle(TQWidget *parent, const char *name=0);
diff --git a/noatun/modules/kaiman/userinterface.cpp b/noatun/modules/kaiman/userinterface.cpp
index 9f502178..bed68ec6 100644
--- a/noatun/modules/kaiman/userinterface.cpp
+++ b/noatun/modules/kaiman/userinterface.cpp
@@ -92,27 +92,27 @@ Kaiman::Kaiman()
if ( !changeStyle( DEFAULT_SKIN, "skindata" ) )
{
KMessageBox::error( this, i18n("Cannot load default skin %1.").arg(DEFAULT_SKIN) );
- TQTimer::singleShot( 0, this, TQT_SLOT(close()) );
+ TQTimer::singleShot( 0, this, TQ_SLOT(close()) );
return;
}
}
// global connects
- connect( napp, TQT_SIGNAL(hideYourself()), this, TQT_SLOT(hide()) );
- connect( napp, TQT_SIGNAL(showYourself()), this, TQT_SLOT(show()) );
+ connect( napp, TQ_SIGNAL(hideYourself()), this, TQ_SLOT(hide()) );
+ connect( napp, TQ_SIGNAL(showYourself()), this, TQ_SLOT(show()) );
- connect( napp->player(), TQT_SIGNAL(playing()), this, TQT_SLOT(updateMode()));
- connect( napp->player(), TQT_SIGNAL(stopped()), this, TQT_SLOT(updateMode()));
- connect( napp->player(), TQT_SIGNAL(paused()), this, TQT_SLOT(updateMode()));
- connect( napp->player(), TQT_SIGNAL(timeout()), this, TQT_SLOT(timeout()));
- connect( napp->player(), TQT_SIGNAL(loopTypeChange(int)), this, TQT_SLOT(loopTypeChange(int)));
- connect( napp->player(), TQT_SIGNAL(newSongLen(int,int)), this, TQT_SLOT(newSongLen(int,int)));
- connect( napp->player(), TQT_SIGNAL(newSong()), this, TQT_SLOT(newSong()));
+ connect( napp->player(), TQ_SIGNAL(playing()), this, TQ_SLOT(updateMode()));
+ connect( napp->player(), TQ_SIGNAL(stopped()), this, TQ_SLOT(updateMode()));
+ connect( napp->player(), TQ_SIGNAL(paused()), this, TQ_SLOT(updateMode()));
+ connect( napp->player(), TQ_SIGNAL(timeout()), this, TQ_SLOT(timeout()));
+ connect( napp->player(), TQ_SIGNAL(loopTypeChange(int)), this, TQ_SLOT(loopTypeChange(int)));
+ connect( napp->player(), TQ_SIGNAL(newSongLen(int,int)), this, TQ_SLOT(newSongLen(int,int)));
+ connect( napp->player(), TQ_SIGNAL(newSong()), this, TQ_SLOT(newSong()));
if( napp->player()->isPlaying() )
newSong();
- new KaimanPrefDlg(TQT_TQOBJECT(this));
+ new KaimanPrefDlg(this);
show();
}
@@ -174,64 +174,64 @@ bool Kaiman::loadStyle( const TQString &style, const TQString &desc )
}
item = _style->find("Playlist_Button");
- if( item!=0 ) connect( item, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(toggleListView()) );
+ if( item!=0 ) connect( item, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(toggleListView()) );
item = _style->find("Play_Button");
- if( item!=0 ) connect( item, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(playpause()) );
+ if( item!=0 ) connect( item, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(playpause()) );
item = _style->find("Pause_Button");
- if( item!=0 ) connect( item, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(playpause()) );
+ if( item!=0 ) connect( item, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(playpause()) );
item = _style->find("Stop_Button");
- if( item!=0 ) connect( item, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(stop()) );
+ if( item!=0 ) connect( item, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(stop()) );
item = _style->find("Next_Button");
- if( item!=0 ) connect( item, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(forward()) );
+ if( item!=0 ) connect( item, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(forward()) );
item = _style->find("Prev_Button");
- if( item!=0 ) connect( item, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(back()) );
+ if( item!=0 ) connect( item, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(back()) );
item = _style->find("Exit_Button");
- if( item!=0 ) connect( item, TQT_SIGNAL(clicked()), this, TQT_SLOT(close()) );
+ if( item!=0 ) connect( item, TQ_SIGNAL(clicked()), this, TQ_SLOT(close()) );
item = _style->find("Mixer_Button");
- if( item!=0 ) connect( item, TQT_SIGNAL(clicked()), this, TQT_SLOT(execMixer()) );
+ if( item!=0 ) connect( item, TQ_SIGNAL(clicked()), this, TQ_SLOT(execMixer()) );
item = _style->find("Iconify_Button");
- if( item!=0 ) connect( item, TQT_SIGNAL(clicked()), this, TQT_SLOT(showMinimized()) );
+ if( item!=0 ) connect( item, TQ_SIGNAL(clicked()), this, TQ_SLOT(showMinimized()) );
item = _style->find("Alt_Skin_Button");
- if( item!=0 ) connect( item, TQT_SIGNAL(clicked()), this, TQT_SLOT(toggleSkin()) );
+ if( item!=0 ) connect( item, TQ_SIGNAL(clicked()), this, TQ_SLOT(toggleSkin()) );
item = _style->find("Repeat_Button");
- if( item!=0 ) connect( item, TQT_SIGNAL(clicked()), this, TQT_SLOT(toggleLoop()) );
+ if( item!=0 ) connect( item, TQ_SIGNAL(clicked()), this, TQ_SLOT(toggleLoop()) );
item = _style->find("Shuffle_Button");
- if( item!=0 ) connect( item, TQT_SIGNAL(clicked()), this, TQT_SLOT(toggleShuffle()) );
+ if( item!=0 ) connect( item, TQ_SIGNAL(clicked()), this, TQ_SLOT(toggleShuffle()) );
item = _style->find("Config_Button");
- if( item!=0 ) connect( item, TQT_SIGNAL(clicked()), napp, TQT_SLOT(preferences()) );
+ if( item!=0 ) connect( item, TQ_SIGNAL(clicked()), napp, TQ_SLOT(preferences()) );
item = _style->find("Volume_Up_Button");
- if( item!=0 ) connect( item, TQT_SIGNAL(clicked()), this,TQT_SLOT(volumeUp()));
+ if( item!=0 ) connect( item, TQ_SIGNAL(clicked()), this,TQ_SLOT(volumeUp()));
item = _style->find("Volume_Down_Button");
- if( item!=0 ) connect( item, TQT_SIGNAL(clicked()), this,TQT_SLOT(volumeDown()));
+ if( item!=0 ) connect( item, TQ_SIGNAL(clicked()), this,TQ_SLOT(volumeDown()));
KaimanStyleSlider* slider =
static_cast<KaimanStyleSlider*>(_style->find("Position_Slider"));
if( slider!=0 )
{
- connect( slider, TQT_SIGNAL(newValueDrag(int)), this, TQT_SLOT(seekStart(int)) );
- connect( slider, TQT_SIGNAL(newValue(int)), this, TQT_SLOT(seekDrag(int)) );
- connect( slider, TQT_SIGNAL(newValueDrop(int)), this, TQT_SLOT(seekStop(int)) );
+ connect( slider, TQ_SIGNAL(newValueDrag(int)), this, TQ_SLOT(seekStart(int)) );
+ connect( slider, TQ_SIGNAL(newValue(int)), this, TQ_SLOT(seekDrag(int)) );
+ connect( slider, TQ_SIGNAL(newValueDrop(int)), this, TQ_SLOT(seekStop(int)) );
slider->setValue( 0, 0, 1000 );
}
slider = static_cast<KaimanStyleSlider*>(_style->find("Volume_Slider"));
if ( slider!=0 )
{
- connect(slider, TQT_SIGNAL(newValue(int)), this, TQT_SLOT(setVolume(int)));
+ connect(slider, TQ_SIGNAL(newValue(int)), this, TQ_SLOT(setVolume(int)));
slider->setValue( napp->player()->volume(), 0, 100 );
}
diff --git a/noatun/modules/kaiman/userinterface.h b/noatun/modules/kaiman/userinterface.h
index f4f712a4..0d10a34d 100644
--- a/noatun/modules/kaiman/userinterface.h
+++ b/noatun/modules/kaiman/userinterface.h
@@ -34,7 +34,7 @@ class Player;
*/
class Kaiman : public TDEMainWindow, public UserInterface
{
-Q_OBJECT
+TQ_OBJECT
public:
Kaiman();
diff --git a/noatun/modules/keyz/keyz.cpp b/noatun/modules/keyz/keyz.cpp
index 420ccd01..cda022a2 100644
--- a/noatun/modules/keyz/keyz.cpp
+++ b/noatun/modules/keyz/keyz.cpp
@@ -14,7 +14,7 @@
extern "C"
{
- KDE_EXPORT Plugin *create_plugin()
+ TDE_EXPORT Plugin *create_plugin()
{
return new Keyz();
}
@@ -32,56 +32,56 @@ Keyz::Keyz() : TQObject( 0L, "Keyz" ), Plugin(), preMuteVol(0)
s_accel = new TDEGlobalAccel( this, "noatunglobalaccel" );
s_accel->insert( "PlayPause", i18n("Play/Pause"), TQString(),
CTRL+ALT+Key_P, KKey::QtWIN+CTRL+Key_P,
- player, TQT_SLOT( playpause() ));
+ player, TQ_SLOT( playpause() ));
s_accel->insert( "Stop", i18n("Stop Playing"), TQString(),
CTRL+ALT+Key_S, KKey::QtWIN+CTRL+Key_S,
- player, TQT_SLOT( stop() ));
+ player, TQ_SLOT( stop() ));
s_accel->insert( "Back", i18n("Back"), TQString(),
CTRL+ALT+Key_Left, KKey::QtWIN+CTRL+Key_Left,
- player, TQT_SLOT( back() ));
+ player, TQ_SLOT( back() ));
s_accel->insert( "Forward", i18n("Forward"), TQString(),
CTRL+ALT+Key_Right, KKey::QtWIN+CTRL+Key_Right,
- player, TQT_SLOT( forward() ));
+ player, TQ_SLOT( forward() ));
s_accel->insert( "Playlist", i18n("Show/Hide Playlist"), TQString(),
CTRL+ALT+Key_L, KKey::QtWIN+CTRL+Key_L,
- player, TQT_SLOT( toggleListView() ));
+ player, TQ_SLOT( toggleListView() ));
s_accel->insert( "OpenFile", i18n("Open File to Play"), TQString(),
CTRL+ALT+Key_O, KKey::QtWIN+CTRL+Key_O,
- TQT_TQOBJECT(napp), TQT_SLOT( fileOpen() ));
+ napp, TQ_SLOT( fileOpen() ));
s_accel->insert( "Effects", i18n("Effects Configuration"), TQString(),
CTRL+ALT+Key_E, KKey::QtWIN+CTRL+Key_E,
- TQT_TQOBJECT(napp), TQT_SLOT( effectView() ));
+ napp, TQ_SLOT( effectView() ));
s_accel->insert( "Preferences", i18n("Preferences"), TQString(),
CTRL+ALT+Key_F, KKey::QtWIN+CTRL+Key_F,
- TQT_TQOBJECT(napp), TQT_SLOT( preferences() ));
+ napp, TQ_SLOT( preferences() ));
s_accel->insert( "VolumeUp", i18n("Volume Up"), TQString(),
CTRL+ALT+SHIFT+Key_Up, KKey::QtWIN+CTRL+SHIFT+Key_Up,
- this, TQT_SLOT( slotVolumeUp() ));
+ this, TQ_SLOT( slotVolumeUp() ));
s_accel->insert( "VolumeDown", i18n("Volume Down"), TQString(),
CTRL+ALT+SHIFT+Key_Down, KKey::QtWIN+CTRL+SHIFT+Key_Down,
- this, TQT_SLOT( slotVolumeDown() ));
+ this, TQ_SLOT( slotVolumeDown() ));
s_accel->insert( "Mute", i18n("Mute"), TQString(),
CTRL+ALT+Key_M, KKey::QtWIN+CTRL+Key_M,
- this, TQT_SLOT( slotMute() ));
+ this, TQ_SLOT( slotMute() ));
s_accel->insert( "SeekForward", i18n("Seek Forward"), TQString(),
CTRL+ALT+SHIFT+Key_Right, KKey::QtWIN+CTRL+SHIFT+Key_Right,
- this, TQT_SLOT( slotForward() ));
+ this, TQ_SLOT( slotForward() ));
s_accel->insert( "SeekBackward", i18n("Seek Backward"), TQString(),
CTRL+ALT+SHIFT+Key_Left, KKey::QtWIN+CTRL+SHIFT+Key_Left,
- this, TQT_SLOT( slotBackward() ));
+ this, TQ_SLOT( slotBackward() ));
s_accel->insert( "NextSection", i18n("Next Section"), TQString(),
0, 0,
- this, TQT_SLOT( slotNextSection() ));
+ this, TQ_SLOT( slotNextSection() ));
s_accel->insert( "PrevSection", i18n("Previous Section"), TQString(),
0, 0,
- this, TQT_SLOT( slotPrevSection() ));
+ this, TQ_SLOT( slotPrevSection() ));
s_accel->insert( "CopyTitle", i18n("Copy Song Title to Clipboard"), TQString(),
CTRL+ALT+Key_C, KKey::QtWIN+CTRL+Key_C,
- this, TQT_SLOT( slotCopyTitle() ));
+ this, TQ_SLOT( slotCopyTitle() ));
s_accel->insert( "ToggleGUI", i18n("Show/Hide Main Window"), TQString(),
CTRL+ALT+Key_W, KKey::QtWIN+CTRL+Key_W,
- TQT_TQOBJECT(napp), TQT_SLOT( toggleInterfaces() ));
+ napp, TQ_SLOT( toggleInterfaces() ));
s_accel->readSettings();
s_accel->updateConnections();
diff --git a/noatun/modules/keyz/keyz.h b/noatun/modules/keyz/keyz.h
index 2145448b..f137fcbd 100644
--- a/noatun/modules/keyz/keyz.h
+++ b/noatun/modules/keyz/keyz.h
@@ -6,7 +6,7 @@
class Keyz : public TQObject, public Plugin
{
- Q_OBJECT
+ TQ_OBJECT
NOATUNPLUGIND
@@ -35,7 +35,7 @@ private:
class KeyzPrefs : public CModule
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/noatun/modules/kjofol-skin/kjbutton.cpp b/noatun/modules/kjofol-skin/kjbutton.cpp
index 306a82fc..31e1ad96 100644
--- a/noatun/modules/kjofol-skin/kjbutton.cpp
+++ b/noatun/modules/kjofol-skin/kjbutton.cpp
@@ -87,18 +87,18 @@ KJButton::KJButton(const TQStringList &i, KJLoader *parent)
if (mTitle=="playlistbutton")
{
mShowPressed = napp->playlist()->listVisible();
- connect( napp->player(), TQT_SIGNAL(playlistShown()), this, TQT_SLOT(slotPlaylistShown()) );
- connect( napp->player(), TQT_SIGNAL(playlistHidden()), this, TQT_SLOT(slotPlaylistHidden()) );
+ connect( napp->player(), TQ_SIGNAL(playlistShown()), this, TQ_SLOT(slotPlaylistShown()) );
+ connect( napp->player(), TQ_SIGNAL(playlistHidden()), this, TQ_SLOT(slotPlaylistHidden()) );
}
else if ( mTitle=="equalizeroffbutton") // same goes for EQ buttons
{
mShowPressed = (!napp->vequalizer()->isEnabled());
- connect( napp->vequalizer(), TQT_SIGNAL(enabled(bool)), TQT_SLOT(slotEqEnabled(bool)));
+ connect( napp->vequalizer(), TQ_SIGNAL(enabled(bool)), TQ_SLOT(slotEqEnabled(bool)));
}
else if (mTitle=="equalizeronbutton")
{
mShowPressed = napp->vequalizer()->isEnabled();
- connect( napp->vequalizer(), TQT_SIGNAL(enabled(bool)), TQT_SLOT(slotEqEnabled(bool)));
+ connect( napp->vequalizer(), TQ_SIGNAL(enabled(bool)), TQ_SLOT(slotEqEnabled(bool)));
}
}
diff --git a/noatun/modules/kjofol-skin/kjbutton.h b/noatun/modules/kjofol-skin/kjbutton.h
index 28dcf355..c6e6ae40 100644
--- a/noatun/modules/kjofol-skin/kjbutton.h
+++ b/noatun/modules/kjofol-skin/kjbutton.h
@@ -7,7 +7,7 @@ class KJLoader;
class KJButton : public TQObject, public KJWidget
{
-Q_OBJECT
+TQ_OBJECT
public:
KJButton(const TQStringList&, KJLoader *);
diff --git a/noatun/modules/kjofol-skin/kjequalizer.cpp b/noatun/modules/kjofol-skin/kjequalizer.cpp
index d7d2b9fa..c82d1a93 100644
--- a/noatun/modules/kjofol-skin/kjequalizer.cpp
+++ b/noatun/modules/kjofol-skin/kjequalizer.cpp
@@ -47,7 +47,7 @@ KJEqualizer::KJEqualizer(const TQStringList &l, KJLoader *p)
kdDebug(66666) << "[KJEqualizer] creating VInterpolation for " << mBands << " bands..." << endl;
mInterpEq = new VInterpolation(mBands);
// napp->vequalizer()->setBands(mBands); // FIXME: hack because spline sucks :P
- connect(napp->vequalizer(), TQT_SIGNAL(changed()), this, TQT_SLOT(slotUpdateBuffer()));
+ connect(napp->vequalizer(), TQ_SIGNAL(changed()), this, TQ_SLOT(slotUpdateBuffer()));
slotUpdateBuffer(); // fill mView pixmap with valid data
}
diff --git a/noatun/modules/kjofol-skin/kjequalizer.h b/noatun/modules/kjofol-skin/kjequalizer.h
index 7415ef2f..6331e285 100644
--- a/noatun/modules/kjofol-skin/kjequalizer.h
+++ b/noatun/modules/kjofol-skin/kjequalizer.h
@@ -10,7 +10,7 @@ class VInterpolation;
class KJEqualizer : public TQObject, public KJWidget
{
-Q_OBJECT
+TQ_OBJECT
public:
KJEqualizer(const TQStringList &, KJLoader *parent);
diff --git a/noatun/modules/kjofol-skin/kjloader.cpp b/noatun/modules/kjofol-skin/kjloader.cpp
index 9db30363..293dca96 100644
--- a/noatun/modules/kjofol-skin/kjloader.cpp
+++ b/noatun/modules/kjofol-skin/kjloader.cpp
@@ -131,8 +131,8 @@ KJLoader::KJLoader()
subwidgets.setAutoDelete(true);
- mPrefs = new KJPrefs(TQT_TQOBJECT(this));
- connect ( mPrefs, TQT_SIGNAL(configChanged()), this, TQT_SLOT(readConfig()) );
+ mPrefs = new KJPrefs(this);
+ connect ( mPrefs, TQ_SIGNAL(configChanged()), this, TQ_SLOT(readConfig()) );
TQString skin = mPrefs->skin();
if ( TQFile(skin).exists() )
@@ -147,13 +147,13 @@ KJLoader::KJLoader()
}
mHelpMenu = new KHelpMenu(this, kapp->aboutData());
- connect(napp->player(), TQT_SIGNAL(timeout()), TQT_SLOT(timeUpdate()));
- connect(napp->player(), TQT_SIGNAL(stopped()), TQT_SLOT(timeUpdate()));
- connect(napp->player(), TQT_SIGNAL(newSong()), TQT_SLOT(newSong()));
+ connect(napp->player(), TQ_SIGNAL(timeout()), TQ_SLOT(timeUpdate()));
+ connect(napp->player(), TQ_SIGNAL(stopped()), TQ_SLOT(timeUpdate()));
+ connect(napp->player(), TQ_SIGNAL(newSong()), TQ_SLOT(newSong()));
- connect(napp, TQT_SIGNAL(hideYourself()), TQT_SLOT(hide()));
- connect(napp, TQT_SIGNAL(showYourself()), TQT_SLOT(show()));
-// KStdAction::quit(napp, TQT_SLOT(quit()), actionCollection());
+ connect(napp, TQ_SIGNAL(hideYourself()), TQ_SLOT(hide()));
+ connect(napp, TQ_SIGNAL(showYourself()), TQ_SLOT(show()));
+// KStdAction::quit(napp, TQ_SLOT(quit()), actionCollection());
TQApplication::restoreOverrideCursor();
// newSong();
@@ -371,7 +371,7 @@ void KJLoader::loadSkin(const TQString &file)
// I cant believe it, there are skins without a seeker, now THATS stupid :)
if (exist("seekregion"))
- TQTimer::singleShot(0, this, TQT_SLOT(loadSeeker()));
+ TQTimer::singleShot(0, this, TQ_SLOT(loadSeeker()));
// all the regular buttons
for (TQDictIterator<TQStringList> i(*this); i.current(); ++i)
@@ -487,11 +487,11 @@ void KJLoader::switchToDockmode()
// kdDebug(66666) << "KJLoader::switchToDockmode()" << endl;
loadSkin( mCurrentDockModeSkin );
- connect(mWin, TQT_SIGNAL(activeWindowChanged(WId)), this, TQT_SLOT(slotWindowActivate(WId)));
- connect(mWin, TQT_SIGNAL(windowRemoved(WId)), this, TQT_SLOT(slotWindowRemove(WId)));
- connect(mWin, TQT_SIGNAL(stackingOrderChanged()), this, TQT_SLOT(slotStackingChanged()));
- connect(mWin, TQT_SIGNAL(windowChanged(WId)), this, TQT_SLOT(slotWindowChange(WId)));
- connect(mWin, TQT_SIGNAL(currentDesktopChanged(int)), this, TQT_SLOT(slotDesktopChange(int)));
+ connect(mWin, TQ_SIGNAL(activeWindowChanged(WId)), this, TQ_SLOT(slotWindowActivate(WId)));
+ connect(mWin, TQ_SIGNAL(windowRemoved(WId)), this, TQ_SLOT(slotWindowRemove(WId)));
+ connect(mWin, TQ_SIGNAL(stackingOrderChanged()), this, TQ_SLOT(slotStackingChanged()));
+ connect(mWin, TQ_SIGNAL(windowChanged(WId)), this, TQ_SLOT(slotWindowChange(WId)));
+ connect(mWin, TQ_SIGNAL(currentDesktopChanged(int)), this, TQ_SLOT(slotDesktopChange(int)));
WId activeWin = mWin->activeWindow();
if (activeWin && (activeWin != winId()))
@@ -676,7 +676,7 @@ void KJLoader::slotStackingChanged()
// We seem to get this signal before the window has been restacked,
// so we just schedule a restack.
- TQTimer::singleShot ( 10, this, TQT_SLOT(restack()) );
+ TQTimer::singleShot ( 10, this, TQ_SLOT(restack()) );
// kdDebug(66666) << "END slotStackingChanged()" << endl;
}
@@ -742,7 +742,7 @@ void KJLoader::mousePressEvent(TQMouseEvent *e)
// TQWidget::mousePressEvent(e);
- if ( e->button()==Qt::RightButton )
+ if ( e->button()==TQt::RightButton )
NoatunStdAction::ContextMenu::showContextMenu();
else /* if ( e->button()==LeftButton ) */
{
@@ -822,7 +822,7 @@ void KJLoader::showSplash()
splashScreen->show();
napp->processEvents(); // we want this one time to get the splash actually displayed ASAP
- TQTimer::singleShot(3000, this, TQT_SLOT(hideSplash()) );
+ TQTimer::singleShot(3000, this, TQ_SLOT(hideSplash()) );
}
void KJLoader::hideSplash()
diff --git a/noatun/modules/kjofol-skin/kjloader.h b/noatun/modules/kjofol-skin/kjloader.h
index 27af10a3..1c8bf6fc 100644
--- a/noatun/modules/kjofol-skin/kjloader.h
+++ b/noatun/modules/kjofol-skin/kjloader.h
@@ -32,7 +32,7 @@ class KJPrefs;
class KJLoader : public TQWidget, public UserInterface, public Parser
{
-Q_OBJECT
+TQ_OBJECT
NOATUNPLUGIND
diff --git a/noatun/modules/kjofol-skin/kjprefs.cpp b/noatun/modules/kjofol-skin/kjprefs.cpp
index cb341ea3..04670fe0 100644
--- a/noatun/modules/kjofol-skin/kjprefs.cpp
+++ b/noatun/modules/kjofol-skin/kjprefs.cpp
@@ -63,9 +63,9 @@ KJPrefs::KJPrefs(TQObject* parent)
mTabWidget->insertTab( mSkinselectorWidget, i18n("&Skin Selector") );
mTabWidget->insertTab( mGuiSettingsWidget, i18n("O&ther Settings") );
- connect ( mSkinselectorWidget->mSkins, TQT_SIGNAL(activated(const TQString&)), TQT_SLOT(showPreview(const TQString&)) );
- connect ( mSkinselectorWidget->installButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(installNewSkin()) );
- connect ( mSkinselectorWidget->mRemoveButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(removeSelectedSkin()) );
+ connect ( mSkinselectorWidget->mSkins, TQ_SIGNAL(activated(const TQString&)), TQ_SLOT(showPreview(const TQString&)) );
+ connect ( mSkinselectorWidget->installButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(installNewSkin()) );
+ connect ( mSkinselectorWidget->mRemoveButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(removeSelectedSkin()) );
reopen(); // fill the skinlist and draw a preview
}
@@ -488,7 +488,7 @@ void KJPrefs::installNewSkin( void )
kdDebug(66666) << "src: " << src.path().latin1() << endl;
kdDebug(66666) << "dst: " << dst.path().latin1() << endl;
TDEIO::Job *job = TDEIO::copy(src,dst);
- connect ( job, TQT_SIGNAL(result(TDEIO::Job*)), this, TQT_SLOT(slotResult(TDEIO::Job*)) );
+ connect ( job, TQ_SIGNAL(result(TDEIO::Job*)), this, TQ_SLOT(slotResult(TDEIO::Job*)) );
skinInstalled = true;
}
} // END iterate trough dirList
@@ -555,7 +555,7 @@ void KJPrefs::removeSelectedSkin( void )
{
kdDebug(66666) << "Deleting Skindir: " << dirToDelete.latin1() << endl;
TDEIO::Job *job = TDEIO::del( dirToDelete, false, true );
- connect ( job, TQT_SIGNAL(result(TDEIO::Job*)), this, TQT_SLOT(slotResult(TDEIO::Job*)) );
+ connect ( job, TQ_SIGNAL(result(TDEIO::Job*)), this, TQ_SLOT(slotResult(TDEIO::Job*)) );
}
int item = -1;
diff --git a/noatun/modules/kjofol-skin/kjprefs.h b/noatun/modules/kjofol-skin/kjprefs.h
index 0226cfdd..bb36e631 100644
--- a/noatun/modules/kjofol-skin/kjprefs.h
+++ b/noatun/modules/kjofol-skin/kjprefs.h
@@ -24,7 +24,7 @@ class KJLoader;
class KJPrefs : public CModule
{
-Q_OBJECT
+TQ_OBJECT
public:
KJPrefs(TQObject* parent);
diff --git a/noatun/modules/kjofol-skin/kjtextdisplay.h b/noatun/modules/kjofol-skin/kjtextdisplay.h
index 3487ae0d..ffb3cbae 100644
--- a/noatun/modules/kjofol-skin/kjtextdisplay.h
+++ b/noatun/modules/kjofol-skin/kjtextdisplay.h
@@ -11,7 +11,7 @@ class KPixmap;
class KJFilename : public TQObject, public KJWidget
{
-Q_OBJECT
+TQ_OBJECT
public:
KJFilename(const TQStringList &, KJLoader *parent);
diff --git a/noatun/modules/kjofol-skin/noatunui.cpp b/noatun/modules/kjofol-skin/noatunui.cpp
index b5be87fd..4541e45b 100644
--- a/noatun/modules/kjofol-skin/noatunui.cpp
+++ b/noatun/modules/kjofol-skin/noatunui.cpp
@@ -2,7 +2,7 @@
extern "C"
{
- KDE_EXPORT Plugin *create_plugin()
+ TDE_EXPORT Plugin *create_plugin()
{
return new KJLoader();
}
diff --git a/noatun/modules/making_plugins b/noatun/modules/making_plugins
index cb921cc2..0134b321 100644
--- a/noatun/modules/making_plugins
+++ b/noatun/modules/making_plugins
@@ -6,7 +6,7 @@ You're free to use the net plugin as a base, I've licensed it under the
public domain, so you can relicense it however you wish (preferably not
GPL, though :)
-Remember that QObject must derive first.
+Remember that TQObject must derive first.
Do a "return this;" in the PlayList *playlist() const; function, if your class
is a playlist, otherwise, don't even override that function.
diff --git a/noatun/modules/marquis/marquis.cpp b/noatun/modules/marquis/marquis.cpp
index f7a6e5ff..ba3c258b 100644
--- a/noatun/modules/marquis/marquis.cpp
+++ b/noatun/modules/marquis/marquis.cpp
@@ -78,9 +78,9 @@ Marquis::Marquis()
// for testing: uncomment this and use
// dcop `dcop | grep noatun` Marquis activateAction dynamicRestore
// and dynamicSave accordingly.
-// (void) new TDEAction("Restore", 0, this, TQT_SLOT( dynamicRestore() ), actionCollection(), "dynamicRestore" );
-// (void) new TDEAction("Save", 0, this, TQT_SLOT( dynamicSave() ), actionCollection(), "dynamicSave" );
- connect( napp, TQT_SIGNAL( saveYourself() ), TQT_SLOT( dynamicSave() ));
+// (void) new TDEAction("Restore", 0, this, TQ_SLOT( dynamicRestore() ), actionCollection(), "dynamicRestore" );
+// (void) new TDEAction("Save", 0, this, TQ_SLOT( dynamicSave() ), actionCollection(), "dynamicSave" );
+ connect( napp, TQ_SIGNAL( saveYourself() ), TQ_SLOT( dynamicSave() ));
}
Marquis::~Marquis()
diff --git a/noatun/modules/marquis/marquis.h b/noatun/modules/marquis/marquis.h
index 00789b43..651417ba 100644
--- a/noatun/modules/marquis/marquis.h
+++ b/noatun/modules/marquis/marquis.h
@@ -34,7 +34,7 @@ class Player;
class Marquis : public TDEMainWindow, public SessionManagement
{
-Q_OBJECT
+TQ_OBJECT
NOATUNPLUGIND
public:
diff --git a/noatun/modules/marquis/plugin.cpp b/noatun/modules/marquis/plugin.cpp
index 146b0979..e9ccc0e2 100644
--- a/noatun/modules/marquis/plugin.cpp
+++ b/noatun/modules/marquis/plugin.cpp
@@ -2,7 +2,7 @@
extern "C"
{
- KDE_EXPORT Plugin *create_plugin()
+ TDE_EXPORT Plugin *create_plugin()
{
return new Marquis();
}
diff --git a/noatun/modules/metatag/edit.cpp b/noatun/modules/metatag/edit.cpp
index e520320c..16d09ece 100644
--- a/noatun/modules/metatag/edit.cpp
+++ b/noatun/modules/metatag/edit.cpp
@@ -49,8 +49,8 @@ Editor::Editor()
mControls.setAutoDelete(true);
mNextRow = 2;
- connect(this, TQT_SIGNAL(closeClicked()), TQT_SLOT(delayedDestruct()));
- connect(this, TQT_SIGNAL(okClicked()), TQT_SLOT(save()));
+ connect(this, TQ_SIGNAL(closeClicked()), TQ_SLOT(delayedDestruct()));
+ connect(this, TQ_SIGNAL(okClicked()), TQ_SLOT(save()));
enableButtonSeparator(true);
setFixedHeight(sizeHint().height());
@@ -122,11 +122,11 @@ void Editor::saveControl(KFileMetaInfo& meta_info, const MetaWidget &meta_widget
if (!meta_widget.widget->isEnabled())
return;
- if (meta_widget.widget->inherits(TQSPINBOX_OBJECT_NAME_STRING))
+ if (meta_widget.widget->inherits("TQSpinBox"))
value = static_cast<TQSpinBox *>(meta_widget.widget)->value();
- else if (meta_widget.widget->inherits(TQCOMBOBOX_OBJECT_NAME_STRING))
+ else if (meta_widget.widget->inherits("TQComboBox"))
value = static_cast<TQComboBox *>(meta_widget.widget)->currentText();
- else if (meta_widget.widget->inherits(TQLINEEDIT_OBJECT_NAME_STRING))
+ else if (meta_widget.widget->inherits("TQLineEdit"))
value = static_cast<TQLineEdit *>(meta_widget.widget)->text();
TQString group = keyGroup(meta_info, meta_widget.key);
@@ -182,7 +182,7 @@ MetaWidget* Editor::createControl(KFileMetaInfo& meta_info, const TQString &labe
// Get the correct validator
if ( info && !groupName.isNull() )
- validator = info->createValidator( groupName, key, TQT_TQOBJECT(parent) );
+ validator = info->createValidator( groupName, key, parent );
// meta_widget is used for book-keeping internally
meta_widget = new MetaWidget;
@@ -204,7 +204,7 @@ MetaWidget* Editor::createControl(KFileMetaInfo& meta_info, const TQString &labe
box->setValidator(validator);
// Is it an integer validator
- if (validator->inherits(TQINTVALIDATOR_OBJECT_NAME_STRING)) {
+ if (validator->inherits("TQIntValidator")) {
TQIntValidator *int_validator = static_cast<TQIntValidator *>(validator);
// FIXME: Why the -hell- doesn't TQSpinBox::setValidator() do this??
@@ -215,7 +215,7 @@ MetaWidget* Editor::createControl(KFileMetaInfo& meta_info, const TQString &labe
box->setValue(info_item.value().toInt());
- connect(box, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(modified()));
+ connect(box, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(modified()));
meta_widget->widget = box;
}
else {
@@ -234,7 +234,7 @@ MetaWidget* Editor::createControl(KFileMetaInfo& meta_info, const TQString &labe
>(validator)->stringList());
combo->setCurrentText(info_item.value().toString());
- connect(combo, TQT_SIGNAL(activated(int)), this, TQT_SLOT(modified()));
+ connect(combo, TQ_SIGNAL(activated(int)), this, TQ_SLOT(modified()));
meta_widget->widget = combo;
}
@@ -244,7 +244,7 @@ MetaWidget* Editor::createControl(KFileMetaInfo& meta_info, const TQString &labe
edit = new KLineEdit(parent);
edit->setText(info_item.value().toString());
edit->setValidator(validator);
- connect(edit, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(modified()));
+ connect(edit, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(modified()));
meta_widget->widget = edit;
}
diff --git a/noatun/modules/metatag/edit.h b/noatun/modules/metatag/edit.h
index 801c2e53..c86f18da 100644
--- a/noatun/modules/metatag/edit.h
+++ b/noatun/modules/metatag/edit.h
@@ -16,7 +16,7 @@ struct MetaWidget {
};
class Editor:public KDialogBase {
- Q_OBJECT
+ TQ_OBJECT
public:
Editor();
diff --git a/noatun/modules/metatag/metatag.cpp b/noatun/modules/metatag/metatag.cpp
index 801ddf0f..1df53d35 100644
--- a/noatun/modules/metatag/metatag.cpp
+++ b/noatun/modules/metatag/metatag.cpp
@@ -24,7 +24,7 @@
extern "C"
{
- KDE_EXPORT Plugin *create_plugin()
+ TDE_EXPORT Plugin *create_plugin()
{
return new MetaTagLoader;
}
@@ -32,7 +32,7 @@ extern "C"
MetaTagLoader::MetaTagLoader():Plugin()
{
- mAction = new TDEAction(i18n("&Tag Editor..."), "edit", 0, this, TQT_SLOT(editTag()), this, "edittag");
+ mAction = new TDEAction(i18n("&Tag Editor..."), "edit", 0, this, TQ_SLOT(editTag()), this, "edittag");
napp->pluginActionMenu()->insert(mAction);
}
@@ -52,8 +52,8 @@ void MetaTagLoader::editTag()
e->open(i);
e->show();
- connect(e, TQT_SIGNAL(saved(PlaylistItem &)),
- TQT_SLOT(update(PlaylistItem &)));
+ connect(e, TQ_SIGNAL(saved(PlaylistItem &)),
+ TQ_SLOT(update(PlaylistItem &)));
}
bool MetaTagLoader::update(PlaylistItem & item)
diff --git a/noatun/modules/metatag/metatag.h b/noatun/modules/metatag/metatag.h
index 43eb9f3c..ec70edf6 100644
--- a/noatun/modules/metatag/metatag.h
+++ b/noatun/modules/metatag/metatag.h
@@ -12,7 +12,7 @@ class KFileMetaInfo;
class TDEAction;
class MetaTagLoader:public TQObject, public Tags, public Plugin {
- Q_OBJECT
+ TQ_OBJECT
public:
MetaTagLoader();
diff --git a/noatun/modules/monoscope/monoscope.cpp b/noatun/modules/monoscope/monoscope.cpp
index 7ab51333..4c717c42 100644
--- a/noatun/modules/monoscope/monoscope.cpp
+++ b/noatun/modules/monoscope/monoscope.cpp
@@ -9,7 +9,7 @@
extern "C"
{
- KDE_EXPORT Plugin *create_plugin()
+ TDE_EXPORT Plugin *create_plugin()
{
return new Monoscope();
}
@@ -41,7 +41,7 @@ Monoscope::~Monoscope()
void Monoscope::init()
{
mAction = new TDEToggleAction(i18n("Toggle Monoscope"), 0, 0,
- TQT_TQOBJECT(this), TQT_SLOT(toggle()), TQT_TQOBJECT(this), "togglemonoscope");
+ this, TQ_SLOT(toggle()), this, "togglemonoscope");
mAction->setChecked(!isHidden());
napp->pluginActionMenu()->insert(mAction);
}
diff --git a/noatun/modules/monoscope/monoscope.h b/noatun/modules/monoscope/monoscope.h
index 7fddb26b..2b1a8c3a 100644
--- a/noatun/modules/monoscope/monoscope.h
+++ b/noatun/modules/monoscope/monoscope.h
@@ -7,7 +7,7 @@ class TDEToggleAction;
class Monoscope : public TQWidget, public MonoScope, public Plugin
{
-Q_OBJECT
+TQ_OBJECT
NOATUNPLUGIND
diff --git a/noatun/modules/net/net.cpp b/noatun/modules/net/net.cpp
index dbdd7e2f..752b2005 100644
--- a/noatun/modules/net/net.cpp
+++ b/noatun/modules/net/net.cpp
@@ -4,7 +4,7 @@
extern "C"
{
- KDE_EXPORT Plugin *create_plugin()
+ TDE_EXPORT Plugin *create_plugin()
{
return new Net();
}
@@ -14,7 +14,7 @@ extern "C"
Net::Net() : TQServerSocket(7539, 10), Plugin()
{
mFDs.setAutoDelete(true);
- connect(napp->player(), TQT_SIGNAL(newSong()), TQT_SLOT(newSong()));
+ connect(napp->player(), TQ_SIGNAL(newSong()), TQ_SLOT(newSong()));
}
Net::~Net()
diff --git a/noatun/modules/net/net.h b/noatun/modules/net/net.h
index 68df6e20..4548f63f 100644
--- a/noatun/modules/net/net.h
+++ b/noatun/modules/net/net.h
@@ -9,7 +9,7 @@
class Net : public TQServerSocket, public Plugin
{
-Q_OBJECT
+TQ_OBJECT
public:
diff --git a/noatun/modules/noatunui/noatunui.cpp b/noatun/modules/noatunui/noatunui.cpp
index adb9534b..081b9158 100644
--- a/noatun/modules/noatunui/noatunui.cpp
+++ b/noatun/modules/noatunui/noatunui.cpp
@@ -2,7 +2,7 @@
extern "C"
{
- KDE_EXPORT Plugin *create_plugin()
+ TDE_EXPORT Plugin *create_plugin()
{
return new MilkChocolate;
}
diff --git a/noatun/modules/noatunui/userinterface.cpp b/noatun/modules/noatunui/userinterface.cpp
index 1919fade..7fbc497b 100644
--- a/noatun/modules/noatunui/userinterface.cpp
+++ b/noatun/modules/noatunui/userinterface.cpp
@@ -37,52 +37,52 @@ MilkChocolate::MilkChocolate() : TQWidget(0,"NoatunUI"), UserInterface()
mBack=new TQPushButton(this);
mBack->setFixedSize(buttonSize,buttonSize);
mBack->setPixmap(BarIcon("noatunback"));
- connect(mBack, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(back()));
+ connect(mBack, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(back()));
TQToolTip::add(mBack,i18n("Back"));
mStop=new TQPushButton(this);
mStop->setFixedSize(buttonSize,buttonSize);
mStop->setPixmap(BarIcon("noatunstop"));
- connect(mStop, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(stop()));
+ connect(mStop, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(stop()));
TQToolTip::add(mStop, i18n("Stop"));
mPlay=new TQPushButton(this);
mPlay->setToggleButton(true);
mPlay->setFixedSize(buttonSize,buttonSize);
mPlay->setPixmap(BarIcon("noatunplay"));
- connect(mPlay, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(playpause()));
+ connect(mPlay, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(playpause()));
TQToolTip::add(mPlay, i18n("Play"));
mForward=new TQPushButton(this);
mForward->setFixedSize(buttonSize,buttonSize);
mForward->setPixmap(BarIcon("noatunforward"));
- connect(mForward, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(forward()));
+ connect(mForward, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(forward()));
TQToolTip::add(mForward, i18n("Forward"));
mPlaylist=new TQPushButton(this);
mPlaylist->setToggleButton(true);
mPlaylist->setFixedSize(buttonSize,buttonSize);
mPlaylist->setPixmap(BarIcon("noatunplaylist"));
- connect(mPlaylist, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(toggleListView()));
+ connect(mPlaylist, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(toggleListView()));
TQToolTip::add(mPlaylist, i18n("Playlist"));
mLoop=new TQPushButton(this);
mLoop->setFixedSize(buttonSize,buttonSize);
mLoop->setPixmap(BarIcon("noatunloopnone"));
- connect(mLoop, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(loop()));
+ connect(mLoop, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(loop()));
TQToolTip::add(mLoop, i18n("Change loop style"));
mPopup=new TQPushButton(this);
mPopup->setFixedSize(buttonSize,buttonSize);
mPopup->setPixmap(BarIcon("noatun"));
- connect(mPopup, TQT_SIGNAL(clicked()), TQT_SLOT(popup()));
+ connect(mPopup, TQ_SIGNAL(clicked()), TQ_SLOT(popup()));
// TQToolTip::add(mRemoveCurrent, i18n("Remove current file from playlist"));
}
- mVolume=new L33tSlider(0,100,10,0,Qt::Horizontal, this);
+ mVolume=new L33tSlider(0,100,10,0,TQt::Horizontal, this);
mVolume->setValue(napp->player()->volume());
- mSeeker=new L33tSlider(0,1000,10,0,Qt::Horizontal, this);
+ mSeeker=new L33tSlider(0,1000,10,0,TQt::Horizontal, this);
mStatusBar=new KStatusBar(this);
@@ -104,32 +104,32 @@ MilkChocolate::MilkChocolate() : TQWidget(0,"NoatunUI"), UserInterface()
statusBar()->message(i18n("No File Loaded"));
statusBar()->insertItem("--:--/--:--", 1, 0, true);
- connect(napp, TQT_SIGNAL(hideYourself()), this, TQT_SLOT(hide()) );
- connect(napp, TQT_SIGNAL(showYourself()), this, TQT_SLOT(show()) );
+ connect(napp, TQ_SIGNAL(hideYourself()), this, TQ_SLOT(hide()) );
+ connect(napp, TQ_SIGNAL(showYourself()), this, TQ_SLOT(show()) );
- connect(napp->player(), TQT_SIGNAL(playing()), this, TQT_SLOT(slotPlaying()));
- connect(napp->player(), TQT_SIGNAL(stopped()), this, TQT_SLOT(slotStopped()));
- connect(napp->player(), TQT_SIGNAL(paused()), this, TQT_SLOT(slotPaused()));
+ connect(napp->player(), TQ_SIGNAL(playing()), this, TQ_SLOT(slotPlaying()));
+ connect(napp->player(), TQ_SIGNAL(stopped()), this, TQ_SLOT(slotStopped()));
+ connect(napp->player(), TQ_SIGNAL(paused()), this, TQ_SLOT(slotPaused()));
napp->player()->handleButtons();
- connect(napp->player(), TQT_SIGNAL(timeout()), this, TQT_SLOT(slotTimeout()));
- connect(napp->player(), TQT_SIGNAL(loopTypeChange(int)), this, TQT_SLOT(changeLoopType(int)));
+ connect(napp->player(), TQ_SIGNAL(timeout()), this, TQ_SLOT(slotTimeout()));
+ connect(napp->player(), TQ_SIGNAL(loopTypeChange(int)), this, TQ_SLOT(changeLoopType(int)));
// if(seeker())
{
/* This skipToWrapper is needed to pass milliseconds to Player() as everybody
* below the GUI is based on milliseconds instead of some unprecise thingy
* like seconds or mille */
- connect(seeker(), TQT_SIGNAL(userChanged(int)), this, TQT_SLOT(skipToWrapper(int)));
- connect(this, TQT_SIGNAL(skipTo(int)), napp->player(), TQT_SLOT(skipTo(int)));
- connect(seeker(), TQT_SIGNAL(sliderMoved(int)), TQT_SLOT(sliderMoved(int)));
+ connect(seeker(), TQ_SIGNAL(userChanged(int)), this, TQ_SLOT(skipToWrapper(int)));
+ connect(this, TQ_SIGNAL(skipTo(int)), napp->player(), TQ_SLOT(skipTo(int)));
+ connect(seeker(), TQ_SIGNAL(sliderMoved(int)), TQ_SLOT(sliderMoved(int)));
}
- connect(mVolume, TQT_SIGNAL(sliderMoved(int)), napp->player(), TQT_SLOT(setVolume(int)));
- connect(mVolume, TQT_SIGNAL(userChanged(int)), napp->player(), TQT_SLOT(setVolume(int)));
+ connect(mVolume, TQ_SIGNAL(sliderMoved(int)), napp->player(), TQ_SLOT(setVolume(int)));
+ connect(mVolume, TQ_SIGNAL(userChanged(int)), napp->player(), TQ_SLOT(setVolume(int)));
- connect(napp->player(), TQT_SIGNAL(playlistShown()), TQT_SLOT(playlistShown()));
- connect(napp->player(), TQT_SIGNAL(playlistHidden()), TQT_SLOT(playlistHidden()));
+ connect(napp->player(), TQ_SIGNAL(playlistShown()), TQ_SLOT(playlistShown()));
+ connect(napp->player(), TQ_SIGNAL(playlistHidden()), TQ_SLOT(playlistHidden()));
// Event Filter for the RMB
for (TQPtrListIterator<TQObject> i(childrenListObject()); i.current(); ++i)
@@ -179,7 +179,7 @@ void MilkChocolate::dropEvent(TQDropEvent *event)
void MilkChocolate::mouseReleaseEvent(TQMouseEvent *e)
{
TQWidget::mouseReleaseEvent(e);
- if (e->button()!=Qt::RightButton) return;
+ if (e->button()!=TQt::RightButton) return;
NoatunStdAction::ContextMenu::showContextMenu();
}
@@ -205,7 +205,7 @@ void MilkChocolate::popup()
void MilkChocolate::slotPlaying()
{
-// connect(twinmodule, TQT_SIGNAL(windowAdded(WId)), view, TQT_SLOT(attemptReparent(WId)));
+// connect(twinmodule, TQ_SIGNAL(windowAdded(WId)), view, TQ_SLOT(attemptReparent(WId)));
changeStatusbar(napp->player()->current().title(), napp->player()->lengthString());
mPlay->setOn(true);
mStop->setEnabled(true);
@@ -281,15 +281,15 @@ void MilkChocolate::changeLoopType(int t)
bool MilkChocolate::eventFilter(TQObject *o, TQEvent *e)
{
if ((e->type() == TQEvent::MouseButtonRelease)
- && ((TQT_TQMOUSEEVENT(e))->button()==Qt::RightButton))
+ && ((static_cast<TQMouseEvent*>(e))->button()==TQt::RightButton))
{
- mouseReleaseEvent(TQT_TQMOUSEEVENT(e));
+ mouseReleaseEvent(static_cast<TQMouseEvent*>(e));
return true;
}
if (e->type() == TQEvent::Wheel)
{
- wheelEvent(TQT_TQWHEELEVENT(e));
+ wheelEvent(static_cast<TQWheelEvent*>(e));
return true;
}
return TQWidget::eventFilter(o, e);
diff --git a/noatun/modules/noatunui/userinterface.h b/noatun/modules/noatunui/userinterface.h
index 1b384be9..797fc4ac 100644
--- a/noatun/modules/noatunui/userinterface.h
+++ b/noatun/modules/noatunui/userinterface.h
@@ -23,7 +23,7 @@ class KStatusBar;
*/
class MilkChocolate : public TQWidget, public UserInterface
{
-Q_OBJECT
+TQ_OBJECT
public:
MilkChocolate();
diff --git a/noatun/modules/simple/noatunui.cpp b/noatun/modules/simple/noatunui.cpp
index 3b647e42..ba2ca067 100644
--- a/noatun/modules/simple/noatunui.cpp
+++ b/noatun/modules/simple/noatunui.cpp
@@ -13,5 +13,5 @@
extern "C"
{
- KDE_EXPORT Plugin *create_plugin() { return new SimpleUI(); }
+ TDE_EXPORT Plugin *create_plugin() { return new SimpleUI(); }
}
diff --git a/noatun/modules/simple/propertiesdialog.ui b/noatun/modules/simple/propertiesdialog.ui
index ca13195a..9ac59ed1 100644
--- a/noatun/modules/simple/propertiesdialog.ui
+++ b/noatun/modules/simple/propertiesdialog.ui
@@ -341,8 +341,8 @@
<include location="global" impldecl="in declaration">kmimetype.h</include>
<include location="local" impldecl="in implementation">propertiesdialog.ui.h</include>
</includes>
-<Q_SLOTS>
+<slots>
<slot specifier="non virtual">setPlayObject( PlaylistItem pi, Arts::PlayObject po )</slot>
-</Q_SLOTS>
+</slots>
<layoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/noatun/modules/simple/userinterface.cpp b/noatun/modules/simple/userinterface.cpp
index c600338d..72edda51 100644
--- a/noatun/modules/simple/userinterface.cpp
+++ b/noatun/modules/simple/userinterface.cpp
@@ -63,14 +63,14 @@ SimpleUI::SimpleUI()
setupGUI( StatusBar|Create, "simpleui.rc" );
- connect( napp->player(), TQT_SIGNAL(playing()), TQT_SLOT(slotPlaying()) );
- connect( napp->player(), TQT_SIGNAL(stopped()), TQT_SLOT(slotStopped()) );
- connect( napp->player(), TQT_SIGNAL(paused()), TQT_SLOT(slotPaused()) );
- connect( napp->player(), TQT_SIGNAL(timeout()), TQT_SLOT(slotTimeout()) );
- connect( napp->player(), TQT_SIGNAL(newSong()), TQT_SLOT(slotChanged()) );
- connect( napp->player(), TQT_SIGNAL(volumeChanged(int)), TQT_SLOT(slotVolumeChanged(int)) );
- connect( napp, TQT_SIGNAL(hideYourself()), TQT_SLOT(hide()) );
- connect( napp, TQT_SIGNAL(showYourself()), TQT_SLOT(show()) );
+ connect( napp->player(), TQ_SIGNAL(playing()), TQ_SLOT(slotPlaying()) );
+ connect( napp->player(), TQ_SIGNAL(stopped()), TQ_SLOT(slotStopped()) );
+ connect( napp->player(), TQ_SIGNAL(paused()), TQ_SLOT(slotPaused()) );
+ connect( napp->player(), TQ_SIGNAL(timeout()), TQ_SLOT(slotTimeout()) );
+ connect( napp->player(), TQ_SIGNAL(newSong()), TQ_SLOT(slotChanged()) );
+ connect( napp->player(), TQ_SIGNAL(volumeChanged(int)), TQ_SLOT(slotVolumeChanged(int)) );
+ connect( napp, TQ_SIGNAL(hideYourself()), TQ_SLOT(hide()) );
+ connect( napp, TQ_SIGNAL(showYourself()), TQ_SLOT(show()) );
napp->player()->handleButtons();
@@ -126,10 +126,10 @@ SimpleUI::~SimpleUI()
void SimpleUI::setupActions()
{
- KStdAction::open( TQT_TQOBJECT(napp), TQT_SLOT(fileOpen()), actionCollection(), "_file_open" );
- new TDEAction( i18n("&Properties"), 0, TQT_TQOBJECT(propertiesDialog), TQT_SLOT(show()),
+ KStdAction::open( napp, TQ_SLOT(fileOpen()), actionCollection(), "_file_open" );
+ new TDEAction( i18n("&Properties"), 0, propertiesDialog, TQ_SLOT(show()),
actionCollection(), "_file_properties" );
- KStdAction::quit( TQT_TQOBJECT(napp), TQT_SLOT(quit()), actionCollection(), "_file_quit");
+ KStdAction::quit( napp, TQ_SLOT(quit()), actionCollection(), "_file_quit");
NoatunStdAction::playlist( actionCollection(), "view_playlist" );
actionCollection()->insert(video->action( "half_size" ));
@@ -139,14 +139,14 @@ void SimpleUI::setupActions()
actionCollection()->insert(napp->pluginActionMenu());
- menubarAction = KStdAction::showMenubar(TQT_TQOBJECT(this), TQT_SLOT(showMenubar()),
+ menubarAction = KStdAction::showMenubar(this, TQ_SLOT(showMenubar()),
actionCollection());
- statusbarAction = KStdAction::showStatusbar(TQT_TQOBJECT(this), TQT_SLOT(showStatusbar()),
+ statusbarAction = KStdAction::showStatusbar(this, TQ_SLOT(showStatusbar()),
actionCollection());
NoatunStdAction::effects( actionCollection(), "effects" );
NoatunStdAction::equalizer( actionCollection(), "equalizer" );
NoatunStdAction::loop( actionCollection(), "loop_style" );
- KStdAction::preferences( TQT_TQOBJECT(napp), TQT_SLOT(preferences()), actionCollection() );
+ KStdAction::preferences( napp, TQ_SLOT(preferences()), actionCollection() );
}
void SimpleUI::showMenubar()
@@ -178,10 +178,10 @@ void SimpleUI::setupCentralWidget()
statusBar()->addWidget( positionLabel, 0, true );
video = new VideoFrame( npWidget );
- connect( video, TQT_SIGNAL(adaptSize(int,int)),
- TQT_SLOT(slotAdaptSize(int,int)) );
- connect( video, TQT_SIGNAL(rightButtonPressed(const TQPoint &)),
- TQT_SLOT(slotContextMenu(const TQPoint &)) );
+ connect( video, TQ_SIGNAL(adaptSize(int,int)),
+ TQ_SLOT(slotAdaptSize(int,int)) );
+ connect( video, TQ_SIGNAL(rightButtonPressed(const TQPoint &)),
+ TQ_SLOT(slotContextMenu(const TQPoint &)) );
TQHBox *ctlFrame = new TQHBox( npWidget );
ctlFrame->setFixedHeight( 38 );
@@ -194,38 +194,38 @@ void SimpleUI::setupCentralWidget()
backButton->setFixedSize( 24, 24 );
backButton->setPixmap( TQPixmap( back_xpm ) );
TQToolTip::add( backButton, i18n("Back") );
- connect( backButton, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(back()) );
+ connect( backButton, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(back()) );
stopButton = new TQPushButton( ctlFrame );
stopButton->setFixedSize( 24, 24 );
stopButton->setPixmap( TQPixmap( stop_xpm ) );
TQToolTip::add( stopButton, i18n("Stop") );
- connect( stopButton, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(stop()) );
+ connect( stopButton, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(stop()) );
playButton = new TQPushButton( ctlFrame );
playButton->setFixedSize( 24, 24 );
playButton->setPixmap( TQPixmap( play_xpm ) );
TQToolTip::add( playButton, i18n("Play / Pause") );
- connect( playButton, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(playpause()) );
+ connect( playButton, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(playpause()) );
TQPushButton *forwButton = new TQPushButton( ctlFrame );
forwButton->setFixedSize( 24, 24 );
forwButton->setPixmap( TQPixmap( forward_xpm ) );
TQToolTip::add( forwButton, i18n("Forward") );
- connect( forwButton, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(forward()) );
+ connect( forwButton, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(forward()) );
- slider = new L33tSlider( 0, 1000, 10, 0, Qt::Horizontal, ctlFrame );
+ slider = new L33tSlider( 0, 1000, 10, 0, TQt::Horizontal, ctlFrame );
slider->setFixedHeight( 24 );
slider->setMinimumWidth( 100 );
slider->setTickmarks( TQSlider::NoMarks );
- connect( slider, TQT_SIGNAL(userChanged(int)), TQT_SLOT(slotSkipTo(int)) );
- connect( slider, TQT_SIGNAL(sliderMoved(int)), TQT_SLOT(slotSliderMoved(int)) );
+ connect( slider, TQ_SIGNAL(userChanged(int)), TQ_SLOT(slotSkipTo(int)) );
+ connect( slider, TQ_SIGNAL(sliderMoved(int)), TQ_SLOT(slotSliderMoved(int)) );
TQPushButton *playlistButton = new TQPushButton( ctlFrame );
playlistButton->setFixedSize( 24, 24 );
playlistButton->setPixmap( TQPixmap( playlist_xpm ) );
TQToolTip::add( playlistButton, i18n("Playlist") );
- connect( playlistButton, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(toggleListView()) );
+ connect( playlistButton, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(toggleListView()) );
volumeButton = new TQPushButton( ctlFrame );
volumeButton->setFixedSize( 24, 24 );
@@ -242,15 +242,15 @@ void SimpleUI::setupCentralWidget()
volumeLabel->setFixedSize( volumeLabel->sizeHint() );
TQHBox *volumeSubFrame = new TQHBox( volumeFrame );
- volumeSlider = new L33tSlider( 0, 100, 10, 0,Qt::Vertical, volumeSubFrame );
+ volumeSlider = new L33tSlider( 0, 100, 10, 0,TQt::Vertical, volumeSubFrame );
volumeSlider->setValue( 100 - napp->player()->volume() );
volumeSlider->setFixedSize( volumeSlider->sizeHint() );
volumeFrame->resize( volumeFrame->sizeHint() );
- connect( volumeSlider, TQT_SIGNAL(sliderMoved(int)), TQT_SLOT(slotVolumeSliderMoved(int)) );
- connect( volumeSlider, TQT_SIGNAL(userChanged(int)), TQT_SLOT(slotVolumeSliderMoved(int)) );
- connect( volumeButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotVolumeFrame()) );
+ connect( volumeSlider, TQ_SIGNAL(sliderMoved(int)), TQ_SLOT(slotVolumeSliderMoved(int)) );
+ connect( volumeSlider, TQ_SIGNAL(userChanged(int)), TQ_SLOT(slotVolumeSliderMoved(int)) );
+ connect( volumeButton, TQ_SIGNAL(clicked()), TQ_SLOT(slotVolumeFrame()) );
setCentralWidget( npWidget );
diff --git a/noatun/modules/simple/userinterface.h b/noatun/modules/simple/userinterface.h
index a218f574..17f5b3ea 100644
--- a/noatun/modules/simple/userinterface.h
+++ b/noatun/modules/simple/userinterface.h
@@ -27,7 +27,7 @@
class SimpleUI : public TDEMainWindow, public UserInterface
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/noatun/modules/splitplaylist/find.cpp b/noatun/modules/splitplaylist/find.cpp
index 67b7f332..7c504383 100644
--- a/noatun/modules/splitplaylist/find.cpp
+++ b/noatun/modules/splitplaylist/find.cpp
@@ -26,10 +26,10 @@ Finder::Finder(TQWidget *parent) : KDialogBase(parent, 0, false, i18n("Find"), C
layout->addWidget(mRegexp, 1, 0);
layout->addWidget(mBackwards, 1, 1);
- connect(this, TQT_SIGNAL(user1Clicked()), TQT_SLOT(clicked()));
+ connect(this, TQ_SIGNAL(user1Clicked()), TQ_SLOT(clicked()));
- connect(mText, TQT_SIGNAL(activated(int)), TQT_SLOT(clicked()));
- connect(mText, TQT_SIGNAL(textChanged(const TQString &)), TQT_SLOT(textChanged(const TQString &)));
+ connect(mText, TQ_SIGNAL(activated(int)), TQ_SLOT(clicked()));
+ connect(mText, TQ_SIGNAL(textChanged(const TQString &)), TQ_SLOT(textChanged(const TQString &)));
enableButton(User1, false);
}
diff --git a/noatun/modules/splitplaylist/find.h b/noatun/modules/splitplaylist/find.h
index d44bb0e5..c77a6424 100644
--- a/noatun/modules/splitplaylist/find.h
+++ b/noatun/modules/splitplaylist/find.h
@@ -9,7 +9,7 @@ class TQPushButton;
class Finder : public KDialogBase
{
-Q_OBJECT
+TQ_OBJECT
public:
Finder(TQWidget *parent);
diff --git a/noatun/modules/splitplaylist/playlist.cpp b/noatun/modules/splitplaylist/playlist.cpp
index 34690f91..d940c8ca 100644
--- a/noatun/modules/splitplaylist/playlist.cpp
+++ b/noatun/modules/splitplaylist/playlist.cpp
@@ -20,9 +20,9 @@ SplitPlaylist::SplitPlaylist()
void SplitPlaylist::init()
{
view=new View(this); // 195
- connect(view->listView(), TQT_SIGNAL(executed(TQListViewItem*)), TQT_SLOT(listItemSelected(TQListViewItem*)));
- connect(view, TQT_SIGNAL(shown()), TQT_SIGNAL(listShown()));
- connect(view, TQT_SIGNAL(hidden()), TQT_SIGNAL(listHidden()));
+ connect(view->listView(), TQ_SIGNAL(executed(TQListViewItem*)), TQ_SLOT(listItemSelected(TQListViewItem*)));
+ connect(view, TQ_SIGNAL(shown()), TQ_SIGNAL(listShown()));
+ connect(view, TQ_SIGNAL(hidden()), TQ_SIGNAL(listHidden()));
view->init(); // 1000
}
diff --git a/noatun/modules/splitplaylist/playlist.h b/noatun/modules/splitplaylist/playlist.h
index de025ad5..9ac27bc2 100644
--- a/noatun/modules/splitplaylist/playlist.h
+++ b/noatun/modules/splitplaylist/playlist.h
@@ -27,7 +27,7 @@ class TQListViewItem;
class SplitPlaylist : public Playlist, public Plugin
{
-Q_OBJECT
+TQ_OBJECT
friend class SafeListViewItem;
friend class List;
diff --git a/noatun/modules/splitplaylist/splitplaylist.cpp b/noatun/modules/splitplaylist/splitplaylist.cpp
index fd854311..92e075a5 100644
--- a/noatun/modules/splitplaylist/splitplaylist.cpp
+++ b/noatun/modules/splitplaylist/splitplaylist.cpp
@@ -5,7 +5,7 @@
extern "C"
{
- KDE_EXPORT Plugin *create_plugin()
+ TDE_EXPORT Plugin *create_plugin()
{
return new SplitPlaylist();
}
diff --git a/noatun/modules/splitplaylist/view.cpp b/noatun/modules/splitplaylist/view.cpp
index bfdd0112..1b2679d5 100644
--- a/noatun/modules/splitplaylist/view.cpp
+++ b/noatun/modules/splitplaylist/view.cpp
@@ -49,7 +49,7 @@ SafeListViewItem::SafeListViewItem(TQListView *parent, TQListViewItem *after, co
addRef();
setUrl(text);
- static_cast<TDEListView*>(TQT_TQWIDGET(parent))->moveItem(this, 0, after);
+ static_cast<TDEListView*>(parent)->moveItem(this, 0, after);
setOn(true);
// is this really needed, it makes the listview too wide for me :(
@@ -91,7 +91,7 @@ SafeListViewItem::SafeListViewItem(TQListView *parent, TQListViewItem *after, co
}
}
- static_cast<TDEListView*>(TQT_TQWIDGET(parent))->moveItem(this, 0, after);
+ static_cast<TDEListView*>(parent)->moveItem(this, 0, after);
modified();
if (!streamable() && enqueue(url()))
@@ -355,10 +355,10 @@ List::List(View *parent)
setDragEnabled(true);
setItemsMovable(true);
setSelectionMode(TQListView::Extended);
- connect(TQT_TQOBJECT(this), TQT_SIGNAL(dropped(TQDropEvent*, TQListViewItem*)), TQT_SLOT(dropEvent(TQDropEvent*, TQListViewItem*)));
- connect(TQT_TQOBJECT(this), TQT_SIGNAL(moved()), TQT_SLOT(move()));
- connect(TQT_TQOBJECT(this), TQT_SIGNAL(aboutToMove()), parent, TQT_SLOT(setNoSorting()));
- connect(TQT_TQOBJECT(this), TQT_SIGNAL(deleteCurrentItem()), parent, TQT_SLOT(deleteSelected()));
+ connect(this, TQ_SIGNAL(dropped(TQDropEvent*, TQListViewItem*)), TQ_SLOT(dropEvent(TQDropEvent*, TQListViewItem*)));
+ connect(this, TQ_SIGNAL(moved()), TQ_SLOT(move()));
+ connect(this, TQ_SIGNAL(aboutToMove()), parent, TQ_SLOT(setNoSorting()));
+ connect(this, TQ_SIGNAL(deleteCurrentItem()), parent, TQ_SLOT(deleteSelected()));
}
List::~List()
@@ -377,7 +377,7 @@ bool List::acceptDrag(TQDropEvent *event) const
void List::dropEvent(TQDropEvent *event, TQListViewItem *after)
{
- static_cast<View*>(TQT_TQWIDGET(parent()))->setNoSorting();
+ static_cast<View*>(parent())->setNoSorting();
KURL::List textlist;
if (!KURLDrag::decode(event, textlist)) return;
event->acceptAction();
@@ -569,16 +569,16 @@ void List::addNextPendingDirectory()
currentJobURL= *pendingIt;
listJob= TDEIO::listRecursive(currentJobURL, false,false);
connect(
- listJob, TQT_SIGNAL(entries(TDEIO::Job*, const TDEIO::UDSEntryList&)),
- TQT_SLOT(slotEntries(TDEIO::Job*, const TDEIO::UDSEntryList&))
+ listJob, TQ_SIGNAL(entries(TDEIO::Job*, const TDEIO::UDSEntryList&)),
+ TQ_SLOT(slotEntries(TDEIO::Job*, const TDEIO::UDSEntryList&))
);
connect(
- listJob, TQT_SIGNAL(result(TDEIO::Job *)),
- TQT_SLOT(slotResult(TDEIO::Job *))
+ listJob, TQ_SIGNAL(result(TDEIO::Job *)),
+ TQ_SLOT(slotResult(TDEIO::Job *))
);
connect(
- listJob, TQT_SIGNAL(redirection(TDEIO::Job *, const KURL &)),
- TQT_SLOT(slotRedirection(TDEIO::Job *, const KURL &))
+ listJob, TQ_SIGNAL(redirection(TDEIO::Job *, const KURL &)),
+ TQ_SLOT(slotRedirection(TDEIO::Job *, const KURL &))
);
pendingAddDirectories.remove(pendingIt);
}
@@ -638,25 +638,25 @@ View::View(SplitPlaylist *)
{
list=new List(this);
setCentralWidget(list);
- connect(list, TQT_SIGNAL(modified(void)), TQT_TQOBJECT(this), TQT_SLOT(setModified(void)) );
+ connect(list, TQ_SIGNAL(modified(void)), this, TQ_SLOT(setModified(void)) );
// connect the click on the header with sorting
- connect(list->header(),TQT_SIGNAL(clicked(int)),this,TQT_SLOT(headerClicked(int)) );
+ connect(list->header(),TQ_SIGNAL(clicked(int)),this,TQ_SLOT(headerClicked(int)) );
- mOpen=new TDEAction(i18n("Add &Files..."), "queue", 0, TQT_TQOBJECT(this), TQT_SLOT(addFiles()), actionCollection(), "add_files");
- (void) new TDEAction(i18n("Add Fol&ders..."), "folder", 0, TQT_TQOBJECT(this), TQT_SLOT(addDirectory()), actionCollection(), "add_dir");
- mDelete=new TDEAction(i18n("Delete"), "edit-delete", Key_Delete, TQT_TQOBJECT(this), TQT_SLOT(deleteSelected()), actionCollection(), "delete");
+ mOpen=new TDEAction(i18n("Add &Files..."), "queue", 0, this, TQ_SLOT(addFiles()), actionCollection(), "add_files");
+ (void) new TDEAction(i18n("Add Fol&ders..."), "folder", 0, this, TQ_SLOT(addDirectory()), actionCollection(), "add_dir");
+ mDelete=new TDEAction(i18n("Delete"), "edit-delete", Key_Delete, this, TQ_SLOT(deleteSelected()), actionCollection(), "delete");
- mClose=KStdAction::close(TQT_TQOBJECT(this), TQT_SLOT(close()), actionCollection());
- mFind=KStdAction::find(TQT_TQOBJECT(this), TQT_SLOT(find()), actionCollection());
+ mClose=KStdAction::close(this, TQ_SLOT(close()), actionCollection());
+ mFind=KStdAction::find(this, TQ_SLOT(find()), actionCollection());
- (void) KStdAction::configureToolbars(TQT_TQOBJECT(this), TQT_SLOT(configureToolBars()), actionCollection());
- mOpenNew=KStdAction::openNew(TQT_TQOBJECT(this), TQT_SLOT(openNew()), actionCollection());
- mOpenpl=KStdAction::open(TQT_TQOBJECT(this), TQT_SLOT(open()), actionCollection());
- mSave=KStdAction::save(TQT_TQOBJECT(this), TQT_SLOT(save()), actionCollection());
- mSaveAs=KStdAction::saveAs(TQT_TQOBJECT(this), TQT_SLOT(saveAs()), actionCollection());
+ (void) KStdAction::configureToolbars(this, TQ_SLOT(configureToolBars()), actionCollection());
+ mOpenNew=KStdAction::openNew(this, TQ_SLOT(openNew()), actionCollection());
+ mOpenpl=KStdAction::open(this, TQ_SLOT(open()), actionCollection());
+ mSave=KStdAction::save(this, TQ_SLOT(save()), actionCollection());
+ mSaveAs=KStdAction::saveAs(this, TQ_SLOT(saveAs()), actionCollection());
- (void) new TDEAction(i18n("Shuffle"), "misc", 0, TQT_TQOBJECT(SPL), TQT_SLOT( randomize() ), actionCollection(), "shuffle");
- (void) new TDEAction(i18n("Clear"), "edit-clear", 0, TQT_TQOBJECT(list), TQT_SLOT( clear() ), actionCollection(), "clear");
+ (void) new TDEAction(i18n("Shuffle"), "misc", 0, SPL, TQ_SLOT( randomize() ), actionCollection(), "shuffle");
+ (void) new TDEAction(i18n("Clear"), "edit-clear", 0, list, TQ_SLOT( clear() ), actionCollection(), "clear");
createGUI("splui.rc");
@@ -669,7 +669,7 @@ View::View(SplitPlaylist *)
void View::find()
{
mFinder->show();
- connect(mFinder, TQT_SIGNAL(search(Finder*)), TQT_SLOT(findIt(Finder*)));
+ connect(mFinder, TQ_SIGNAL(search(Finder*)), TQ_SLOT(findIt(Finder*)));
}
static bool testWord(TQListViewItem *i, const TQString &finder)
@@ -797,6 +797,9 @@ void View::init()
list->openGlobal(internalURL);
}
+ for(PlaylistItem item = SPL->getFirst(); item; item = SPL->getAfter(item))
+ if(item.url().path().isEmpty()) item.remove();
+
TDEConfig &config = *TDEGlobal::config();
config.setGroup("splitplaylist");
@@ -964,7 +967,7 @@ void View::configureToolBars()
{
saveMainWindowSettings(TDEGlobal::config(), "SPL Window");
KEditToolbar dlg(actionCollection(), "splui.rc");
- connect(&dlg, TQT_SIGNAL(newToolbarConfig()), TQT_SLOT(newToolBarConfig()));
+ connect(&dlg, TQ_SIGNAL(newToolbarConfig()), TQ_SLOT(newToolBarConfig()));
dlg.exec();
}
diff --git a/noatun/modules/splitplaylist/view.h b/noatun/modules/splitplaylist/view.h
index 4eef4e9b..54578cb4 100644
--- a/noatun/modules/splitplaylist/view.h
+++ b/noatun/modules/splitplaylist/view.h
@@ -57,7 +57,7 @@ private:
class List : public TDEListView
{
-Q_OBJECT
+TQ_OBJECT
friend class View;
public:
@@ -105,7 +105,7 @@ class TDEToolBar;
class View : public TDEMainWindow
{
-Q_OBJECT
+TQ_OBJECT
public:
View(SplitPlaylist *mother);
diff --git a/noatun/modules/systray/cmodule.cpp b/noatun/modules/systray/cmodule.cpp
index 189d1539..e9e33d16 100644
--- a/noatun/modules/systray/cmodule.cpp
+++ b/noatun/modules/systray/cmodule.cpp
@@ -58,9 +58,9 @@ YHModule::YHModule(TQObject *_parent)
mWidget->cmbModifier->insertItem(i18n("Ctrl"), YHConfig::Ctrl);
mWidget->cmbModifier->setCurrentItem(YHConfig::None);
- connect(mWidget->chkUsePopup, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotUsePopupToggled(bool)));
- connect(mWidget->cmbModifier, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotModifierActivated(int)));
- connect(mWidget->grpMwheel, TQT_SIGNAL(clicked(int)), this, TQT_SLOT(slotMwheelClicked(int)));
+ connect(mWidget->chkUsePopup, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotUsePopupToggled(bool)));
+ connect(mWidget->cmbModifier, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotModifierActivated(int)));
+ connect(mWidget->grpMwheel, TQ_SIGNAL(clicked(int)), this, TQ_SLOT(slotMwheelClicked(int)));
reopen();
}
diff --git a/noatun/modules/systray/cmodule.h b/noatun/modules/systray/cmodule.h
index 10196423..dd8784d3 100644
--- a/noatun/modules/systray/cmodule.h
+++ b/noatun/modules/systray/cmodule.h
@@ -33,7 +33,7 @@ class YHConfigWidget;
class YHModule : public CModule
{
-Q_OBJECT
+TQ_OBJECT
public:
YHModule(TQObject *_parent);
diff --git a/noatun/modules/systray/kitsystemtray.cpp b/noatun/modules/systray/kitsystemtray.cpp
index 963a9c69..358efb59 100644
--- a/noatun/modules/systray/kitsystemtray.cpp
+++ b/noatun/modules/systray/kitsystemtray.cpp
@@ -67,10 +67,10 @@ void KitSystemTray::mousePressEvent(TQMouseEvent *event)
{
switch(event->button())
{
- case Qt::LeftButton:
+ case TQt::LeftButton:
napp->toggleInterfaces();
break;
- case Qt::MidButton:
+ case TQt::MidButton:
if (YHConfig::self()->middleMouseAction() == YHConfig::HideShowPlaylist)
napp->playlist()->toggleList();
else // play or pause
diff --git a/noatun/modules/systray/kitsystemtray.h b/noatun/modules/systray/kitsystemtray.h
index 13a8b518..709a8f07 100644
--- a/noatun/modules/systray/kitsystemtray.h
+++ b/noatun/modules/systray/kitsystemtray.h
@@ -36,7 +36,7 @@ class TQPixmap;
class KitSystemTray : public KSystemTray
{
-Q_OBJECT
+TQ_OBJECT
public:
diff --git a/noatun/modules/systray/noatunui.cpp b/noatun/modules/systray/noatunui.cpp
index 76f9af25..3beac24e 100644
--- a/noatun/modules/systray/noatunui.cpp
+++ b/noatun/modules/systray/noatunui.cpp
@@ -2,7 +2,7 @@
extern "C"
{
- KDE_EXPORT Plugin *create_plugin()
+ TDE_EXPORT Plugin *create_plugin()
{
return new NoatunSystray();
}
diff --git a/noatun/modules/systray/systray.cpp b/noatun/modules/systray/systray.cpp
index da0590ce..ab70c8dd 100644
--- a/noatun/modules/systray/systray.cpp
+++ b/noatun/modules/systray/systray.cpp
@@ -100,9 +100,9 @@ NoatunSystray::NoatunSystray() : TDEMainWindow(0, "NoatunSystray"), Plugin(),
removeCover(); // make sure any old temp cover is gone
- KStdAction::quit(TQT_TQOBJECT(napp), TQT_SLOT(quit()), actionCollection());
- KStdAction::open(TQT_TQOBJECT(napp), TQT_SLOT(fileOpen()), actionCollection());
- KStdAction::preferences(TQT_TQOBJECT(napp), TQT_SLOT(preferences()), actionCollection());
+ KStdAction::quit(napp, TQ_SLOT(quit()), actionCollection());
+ KStdAction::open(napp, TQ_SLOT(fileOpen()), actionCollection());
+ KStdAction::preferences(napp, TQ_SLOT(preferences()), actionCollection());
NoatunStdAction::back(actionCollection(), "back");
NoatunStdAction::stop(actionCollection(), "stop");
NoatunStdAction::playpause(actionCollection(), "play");
@@ -124,11 +124,11 @@ NoatunSystray::NoatunSystray() : TDEMainWindow(0, "NoatunSystray"), Plugin(),
showingTrayStatus = false;
mBlinkTimer = new TQTimer(this);
- connect(mBlinkTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotBlinkTimer()));
+ connect(mBlinkTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(slotBlinkTimer()));
- connect(napp->player(), TQT_SIGNAL(playing()), this, TQT_SLOT(slotPlayPause()));
- connect(napp->player(), TQT_SIGNAL(paused()), this, TQT_SLOT(slotPlayPause()));
- connect(napp->player(), TQT_SIGNAL(stopped()), this, TQT_SLOT(slotStopped()));
+ connect(napp->player(), TQ_SIGNAL(playing()), this, TQ_SLOT(slotPlayPause()));
+ connect(napp->player(), TQ_SIGNAL(paused()), this, TQ_SLOT(slotPlayPause()));
+ connect(napp->player(), TQ_SIGNAL(stopped()), this, TQ_SLOT(slotStopped()));
//napp->player()->handleButtons();
}
@@ -145,8 +145,8 @@ NoatunSystray::~NoatunSystray()
void NoatunSystray::init()
{
- YHModule *cmod = new YHModule(TQT_TQOBJECT(this));
- connect(cmod, TQT_SIGNAL(saved()), this, TQT_SLOT(slotLoadSettings()));
+ YHModule *cmod = new YHModule(this);
+ connect(cmod, TQ_SIGNAL(saved()), this, TQ_SLOT(slotLoadSettings()));
slotLoadSettings();
}
@@ -334,7 +334,7 @@ void NoatunSystray::updateCover()
if(src.load(cover))
{
if(src.width() >= COVER_MAXW || src.height() >= COVER_MAXH)
- tmpimg = src.scale(COVER_MAXW, COVER_MAXH, TQ_ScaleMin);
+ tmpimg = src.scale(COVER_MAXW, COVER_MAXH, TQImage::ScaleMin);
else
tmpimg = src;
@@ -364,7 +364,7 @@ void NoatunSystray::setTipText(const TQString& text)
YHConfig *c = YHConfig::self();
if(c->passivePopup())
- TQTimer::singleShot(0, this, TQT_SLOT(showPassivePopup()));
+ TQTimer::singleShot(0, this, TQ_SLOT(showPassivePopup()));
if(c->tip())
TQToolTip::add(mTray, tipText);
@@ -405,11 +405,11 @@ void NoatunSystray::showPassivePopup()
TQPushButton *forwardButton = new TQPushButton(action("forward")->iconSet(), 0, buttonBox, "popup_forward");
forwardButton->setFlat(true);
- connect(forwardButton, TQT_SIGNAL(clicked()), action("forward"), TQT_SLOT(activate()));
+ connect(forwardButton, TQ_SIGNAL(clicked()), action("forward"), TQ_SLOT(activate()));
TQPushButton *backButton = new TQPushButton(action("back")->iconSet(), 0, buttonBox, "popup_back");
backButton->setFlat(true);
- connect(backButton, TQT_SIGNAL(clicked()), action("back"), TQT_SLOT(activate()));
+ connect(backButton, TQ_SIGNAL(clicked()), action("back"), TQ_SLOT(activate()));
TQFrame *line = new TQFrame(box);
line->setFrameShape(TQFrame::VLine);
@@ -429,11 +429,11 @@ void NoatunSystray::showPassivePopup()
TQPushButton *forwardButton = new TQPushButton(action("forward")->iconSet(), 0, buttonBox, "popup_forward");
forwardButton->setFlat(true);
- connect(forwardButton, TQT_SIGNAL(clicked()), action("forward"), TQT_SLOT(activate()));
+ connect(forwardButton, TQ_SIGNAL(clicked()), action("forward"), TQ_SLOT(activate()));
TQPushButton *backButton = new TQPushButton(action("back")->iconSet(), 0, buttonBox, "popup_back");
backButton->setFlat(true);
- connect(backButton, TQT_SIGNAL(clicked()), action("back"), TQT_SLOT(activate()));
+ connect(backButton, TQ_SIGNAL(clicked()), action("back"), TQ_SLOT(activate()));
}
mPassivePopup->setView(box);
}
diff --git a/noatun/modules/systray/systray.h b/noatun/modules/systray/systray.h
index 80592b07..3adc59cf 100644
--- a/noatun/modules/systray/systray.h
+++ b/noatun/modules/systray/systray.h
@@ -40,7 +40,7 @@ class PassivePopup;
class NoatunSystray : public TDEMainWindow, public Plugin
{
-Q_OBJECT
+TQ_OBJECT
public:
NoatunSystray();
diff --git a/noatun/modules/voiceprint/prefs.h b/noatun/modules/voiceprint/prefs.h
index 16b8032f..c317cc45 100644
--- a/noatun/modules/voiceprint/prefs.h
+++ b/noatun/modules/voiceprint/prefs.h
@@ -8,7 +8,7 @@ class KColorButton;
class Prefs : public CModule
{
-Q_OBJECT
+TQ_OBJECT
public:
Prefs(TQObject* parent);
diff --git a/noatun/modules/voiceprint/voiceprint.cpp b/noatun/modules/voiceprint/voiceprint.cpp
index c0b1c859..f9f65105 100644
--- a/noatun/modules/voiceprint/voiceprint.cpp
+++ b/noatun/modules/voiceprint/voiceprint.cpp
@@ -9,7 +9,7 @@
extern "C"
{
- KDE_EXPORT Plugin *create_plugin()
+ TDE_EXPORT Plugin *create_plugin()
{
return new VoicePrint();
}
@@ -35,7 +35,7 @@ VoicePrint::~VoicePrint()
void VoicePrint::init()
{
- Prefs *p=new Prefs(TQT_TQOBJECT(this));
+ Prefs *p=new Prefs(this);
p->reopen();
p->save();
resizeEvent(0);
diff --git a/noatun/modules/voiceprint/voiceprint.h b/noatun/modules/voiceprint/voiceprint.h
index 0440e8c4..b3ce0d29 100644
--- a/noatun/modules/voiceprint/voiceprint.h
+++ b/noatun/modules/voiceprint/voiceprint.h
@@ -5,7 +5,7 @@
class VoicePrint : public TQWidget, public MonoFFTScope, public Plugin
{
-Q_OBJECT
+TQ_OBJECT
public:
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/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/waSkin.cpp b/noatun/modules/winskin/waSkin.cpp
index 4cdef1ec..91e6a45e 100644
--- a/noatun/modules/winskin/waSkin.cpp
+++ b/noatun/modules/winskin/waSkin.cpp
@@ -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..f2e63469 100644
--- a/noatun/modules/winskin/waSkinManager.cpp
+++ b/noatun/modules/winskin/waSkinManager.cpp
@@ -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.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..4591b4d7 100644
--- a/noatun/modules/winskin/winSkinConfig.cpp
+++ b/noatun/modules/winskin/winSkinConfig.cpp
@@ -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: