diff options
Diffstat (limited to 'kommander/part')
-rw-r--r-- | kommander/part/kommander_part.cpp | 20 | ||||
-rw-r--r-- | kommander/part/kommander_part.h | 8 |
2 files changed, 14 insertions, 14 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 } diff --git a/kommander/part/kommander_part.h b/kommander/part/kommander_part.h index fc9b876c..7b417a24 100644 --- a/kommander/part/kommander_part.h +++ b/kommander/part/kommander_part.h @@ -25,8 +25,8 @@ class KommanderPart : public KParts::ReadOnlyPart { Q_OBJECT public: - KommanderPart(QWidget *parentWidget, const char *widgetName, - QObject *parent, const char *name, const QStringList &args); + KommanderPart(TQWidget *parentWidget, const char *widgetName, + TQObject *parent, const char *name, const TQStringList &args); virtual ~KommanderPart(); @@ -40,8 +40,8 @@ protected slots: private: Instance *m_instance; - QWidget *m_widget; - QGridLayout *m_layout; + TQWidget *m_widget; + TQGridLayout *m_layout; }; |