summaryrefslogtreecommitdiffstats
path: root/noatun/library/pref.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'noatun/library/pref.cpp')
-rw-r--r--noatun/library/pref.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/noatun/library/pref.cpp b/noatun/library/pref.cpp
index 98e71645..658e7951 100644
--- a/noatun/library/pref.cpp
+++ b/noatun/library/pref.cpp
@@ -4,11 +4,11 @@
#include <kglobal.h>
#include <kiconloader.h>
#include <kdebug.h>
-#include <qlayout.h>
-//#include <qlabel.h>
+#include <tqlayout.h>
+//#include <tqlabel.h>
#include "cmodule.h"
-NoatunPreferences::NoatunPreferences(QWidget *parent)
+NoatunPreferences::NoatunPreferences(TQWidget *parent)
: KDialogBase(TreeList, i18n("Preferences - Noatun"),
Ok|Apply|Cancel|Help, Ok, parent, "NoatunPreferences", false, true)
{
@@ -32,7 +32,7 @@ void NoatunPreferences::show()
void NoatunPreferences::show(CModule *page)
{
- int index = pageIndex( static_cast<QWidget *>(page->parent()) );
+ int index = pageIndex( static_cast<TQWidget *>(page->parent()) );
if (index != -1)
showPage(index);
show();
@@ -54,19 +54,19 @@ void NoatunPreferences::remove(CModule *page)
mModules.removeRef(page);
}
-CModule::CModule(const QString &name, const QString &description, const QString &icon, QObject *owner)
- : QWidget(napp->preferencesBox()->addPage(name, description, KGlobal::iconLoader()->loadIcon(
+CModule::CModule(const TQString &name, const TQString &description, const TQString &icon, TQObject *owner)
+ : TQWidget(napp->preferencesBox()->addPage(name, description, KGlobal::iconLoader()->loadIcon(
icon, KIcon::Small,0, KIcon::DefaultState,0, true)))
{
if (owner)
- connect(owner, SIGNAL(destroyed()), SLOT(ownerDeleted()));
+ connect(owner, TQT_SIGNAL(destroyed()), TQT_SLOT(ownerDeleted()));
//kdDebug(66666) << k_funcinfo << "name = " << name << endl;
napp->preferencesBox()->add(this);
- QFrame *page=static_cast<QFrame*>(parent());
- (new QHBoxLayout(page))->addWidget(this);
+ TQFrame *page=static_cast<TQFrame*>(parent());
+ (new TQHBoxLayout(page))->addWidget(this);
}
CModule::~CModule()
@@ -87,7 +87,7 @@ CModule::~CModule()
void CModule::ownerDeleted()
{
- QObject *p=parent();
+ TQObject *p=parent();
delete this;
p->deleteLater();
}