From e654398e46e37abf457b2b1122ab898d2c51c49f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:43:15 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- noatun/library/pref.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'noatun/library/pref.cpp') 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 #include #include -#include -//#include +#include +//#include #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(page->parent()) ); + int index = pageIndex( static_cast(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(parent()); - (new QHBoxLayout(page))->addWidget(this); + TQFrame *page=static_cast(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(); } -- cgit v1.2.1