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/konsoleviewwidget.cpp | |
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/konsoleviewwidget.cpp')
-rw-r--r-- | parts/konsole/konsoleviewwidget.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
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()) |