summaryrefslogtreecommitdiffstats
path: root/noatun/library/pref.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
commite654398e46e37abf457b2b1122ab898d2c51c49f (patch)
treed39ee6440f3c3663c3ead84a2d4cc2d034667e96 /noatun/library/pref.cpp
parente4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff)
downloadtdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz
tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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();
}