diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
commit | dc6b8e72fed2586239e3514819238c520636c9d9 (patch) | |
tree | 88b200df0a0b7fab9d6f147596173556f1ed9a13 /kommander/part/kommander_part.cpp | |
parent | 6927d4436e54551917f600b706a8d6109e49de1c (diff) | |
download | tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kommander/part/kommander_part.cpp')
-rw-r--r-- | kommander/part/kommander_part.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kommander/part/kommander_part.cpp b/kommander/part/kommander_part.cpp index ef8ab5e1..d8645bc9 100644 --- a/kommander/part/kommander_part.cpp +++ b/kommander/part/kommander_part.cpp @@ -19,9 +19,9 @@ #include <kinstance.h> #include <kparts/genericfactory.h> -#include <qpoint.h> -#include <qlayout.h> -#include <qtimer.h> +#include <tqpoint.h> +#include <tqlayout.h> +#include <tqtimer.h> #include "instance.h" #include "kommanderversion.h" @@ -33,15 +33,15 @@ typedef KParts::GenericFactory<KommanderPart> KommanderPartFactory; K_EXPORT_COMPONENT_FACTORY( libkommander_part, KommanderPartFactory ) -KommanderPart::KommanderPart( QWidget *parentWidget, const char * /*widgetName*/, - QObject *parent, const char *name, const QStringList & /*args*/ ) +KommanderPart::KommanderPart( TQWidget *parentWidget, const char * /*widgetName*/, + TQObject *parent, const char *name, const TQStringList & /*args*/ ) : KParts::ReadOnlyPart(parent, name) { setInstance( KommanderPartFactory::instance() ); m_instance = 0L; - m_widget = new QWidget(parentWidget); + m_widget = new TQWidget(parentWidget); setWidget(m_widget); - m_layout = new QGridLayout(m_widget); + m_layout = new TQGridLayout(m_widget); } KommanderPart::~KommanderPart() @@ -66,7 +66,7 @@ bool KommanderPart::openFile() delete m_instance; m_instance = new Instance(0L); m_instance->build(m_url); - QTimer::singleShot(0, this, SLOT(slotRun())); + TQTimer::singleShot(0, this, TQT_SLOT(slotRun())); emit setStatusBarText( m_url.prettyURL() ); return true; @@ -74,10 +74,10 @@ bool KommanderPart::openFile() void KommanderPart::slotRun() { - QWidget *w = m_instance->widget(); + TQWidget *w = m_instance->widget(); if (w) { - w->reparent(m_widget, 0, QPoint(0,0)); + w->reparent(m_widget, 0, TQPoint(0,0)); m_layout->addWidget(w, 0, 0); w->show(); //show, not execute, so it doesn't block the parent } |