diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
commit | d6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch) | |
tree | d109539636691d7b03036ca1c0ed29dbae6577cf /parts/konsole | |
parent | 3331a47a9cad24795c7440ee8107143ce444ef34 (diff) | |
download | tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'parts/konsole')
-rw-r--r-- | parts/konsole/konsoleviewpart.cpp | 10 | ||||
-rw-r--r-- | parts/konsole/konsoleviewpart.h | 6 | ||||
-rw-r--r-- | parts/konsole/konsoleviewwidget.cpp | 24 | ||||
-rw-r--r-- | parts/konsole/konsoleviewwidget.h | 6 |
4 files changed, 23 insertions, 23 deletions
diff --git a/parts/konsole/konsoleviewpart.cpp b/parts/konsole/konsoleviewpart.cpp index 8d7892a5..c103a3a8 100644 --- a/parts/konsole/konsoleviewpart.cpp +++ b/parts/konsole/konsoleviewpart.cpp @@ -11,7 +11,7 @@ #include "konsoleviewpart.h" -#include <qwhatsthis.h> +#include <tqwhatsthis.h> #include <kdevgenericfactory.h> #include <kiconloader.h> @@ -28,14 +28,14 @@ typedef KDevGenericFactory<KonsoleViewPart> KonsoleViewFactory; static const KDevPluginInfo data("kdevkonsoleview"); K_EXPORT_COMPONENT_FACTORY(libkdevkonsoleview, KonsoleViewFactory(data)) -KonsoleViewPart::KonsoleViewPart(QObject *parent, const char *name, const QStringList &) +KonsoleViewPart::KonsoleViewPart(TQObject *parent, const char *name, const TQStringList &) : KDevPlugin(&data, parent, name ? name : "KonsoleViewPart") { setInstance( KonsoleViewFactory::instance() ); m_widget = new KDevShellWidget( 0, "konsole widget" ); - QWhatsThis::add(m_widget, i18n("<b>Konsole</b><p>" + TQWhatsThis::add(m_widget, i18n("<b>Konsole</b><p>" "This window contains an embedded konsole window. It will try to follow you when " "you navigate in the source directories") ); @@ -48,7 +48,7 @@ KonsoleViewPart::KonsoleViewPart(QObject *parent, const char *name, const QStrin mainWindow()->embedOutputView(m_widget, i18n("Konsole"), i18n("Embedded console window")); - connect(core(), SIGNAL(projectOpened()), this, SLOT(projectOpened())); + connect(core(), TQT_SIGNAL(projectOpened()), this, TQT_SLOT(projectOpened())); } @@ -61,7 +61,7 @@ KonsoleViewPart::~KonsoleViewPart() void KonsoleViewPart::projectOpened() { - QString cd_projectdir = QString("cd ") + project()->projectDirectory() + "\n"; + TQString cd_projectdir = TQString("cd ") + project()->projectDirectory() + "\n"; m_widget->sendInput( cd_projectdir ); } diff --git a/parts/konsole/konsoleviewpart.h b/parts/konsole/konsoleviewpart.h index b7cea9d8..89047a2d 100644 --- a/parts/konsole/konsoleviewpart.h +++ b/parts/konsole/konsoleviewpart.h @@ -13,7 +13,7 @@ #define __KONSOLEVIEWPART_H__ -#include <qguardedptr.h> +#include <tqguardedptr.h> #include "kdevplugin.h" @@ -23,14 +23,14 @@ class KonsoleViewPart : public KDevPlugin { Q_OBJECT public: - KonsoleViewPart(QObject *parent, const char *name, const QStringList &); + KonsoleViewPart(TQObject *parent, const char *name, const TQStringList &); virtual ~KonsoleViewPart(); private slots: void projectOpened(); private: - QGuardedPtr<KDevShellWidget> m_widget; + TQGuardedPtr<KDevShellWidget> m_widget; }; #endif diff --git a/parts/konsole/konsoleviewwidget.cpp b/parts/konsole/konsoleviewwidget.cpp index e7a84d94..1604a321 100644 --- a/parts/konsole/konsoleviewwidget.cpp +++ b/parts/konsole/konsoleviewwidget.cpp @@ -9,9 +9,9 @@ * * ***************************************************************************/ -#include <qlayout.h> -#include <qframe.h> -#include <qdir.h> +#include <tqlayout.h> +#include <tqframe.h> +#include <tqdir.h> #include <kparts/part.h> #include <klibloader.h> @@ -28,10 +28,10 @@ #include "konsoleviewwidget.h" KonsoleViewWidget::KonsoleViewWidget(KonsoleViewPart *part) - : QWidget(0, "konsole widget"), part(0), owner( part ) + : TQWidget(0, "konsole widget"), part(0), owner( part ) { - connect(part->partController(), SIGNAL(activePartChanged(KParts::Part*)), this, SLOT(activePartChanged(KParts::Part*))); - vbox = new QVBoxLayout(this); + connect(part->partController(), TQT_SIGNAL(activePartChanged(KParts::Part*)), this, TQT_SLOT(activePartChanged(KParts::Part*))); + vbox = new TQVBoxLayout(this); } KonsoleViewWidget::~KonsoleViewWidget() @@ -41,7 +41,7 @@ KonsoleViewWidget::~KonsoleViewWidget() void KonsoleViewWidget::show() { activate(); - QWidget::show(); + TQWidget::show(); } void KonsoleViewWidget::activate() @@ -58,19 +58,19 @@ void KonsoleViewWidget::activate() if (!part) return; - part->widget()->setFocusPolicy(QWidget::WheelFocus); + part->widget()->setFocusPolicy(TQWidget::WheelFocus); setFocusProxy(part->widget()); part->widget()->setFocus(); - if (part->widget()->inherits("QFrame")) - ((QFrame*)part->widget())->setFrameStyle(QFrame::Panel|QFrame::Sunken); + if (part->widget()->inherits("TQFrame")) + ((TQFrame*)part->widget())->setFrameStyle(TQFrame::Panel|TQFrame::Sunken); vbox->addWidget(part->widget()); // this->activePartChanged( owner->partController()->activePart() ); part->widget()->show(); - connect(part, SIGNAL(destroyed()), this, SLOT(partDestroyed())); + connect(part, TQT_SIGNAL(destroyed()), this, TQT_SLOT(partDestroyed())); } @@ -84,7 +84,7 @@ void KonsoleViewWidget::activePartChanged(KParts::Part *activatedPart) kdDebug(9035) << k_funcinfo << "part is null or not local" << endl; return; } - QString dir; + TQString dir; if (ro_part) dir = ro_part->url().directory(); else if (owner->project()) diff --git a/parts/konsole/konsoleviewwidget.h b/parts/konsole/konsoleviewwidget.h index 0236dee4..50e17ff5 100644 --- a/parts/konsole/konsoleviewwidget.h +++ b/parts/konsole/konsoleviewwidget.h @@ -13,8 +13,8 @@ #define __KONSOLEVIEWWIDGET_H__ -#include <qwidget.h> -#include <qstring.h> +#include <tqwidget.h> +#include <tqstring.h> class KDevProject; @@ -47,7 +47,7 @@ private: void activate(); KParts::ReadOnlyPart *part; - QVBoxLayout *vbox; + TQVBoxLayout *vbox; KonsoleViewPart *owner; }; |