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 /src/statusbar.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 'src/statusbar.cpp')
-rw-r--r-- | src/statusbar.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/statusbar.cpp b/src/statusbar.cpp index cff28b3e..02031021 100644 --- a/src/statusbar.cpp +++ b/src/statusbar.cpp @@ -9,11 +9,11 @@ * * ***************************************************************************/ -#include <qlayout.h> -#include <qlineedit.h> -#include <qpainter.h> -#include <qtimer.h> -#include <qfontmetrics.h> +#include <tqlayout.h> +#include <tqlineedit.h> +#include <tqpainter.h> +#include <tqtimer.h> +#include <tqfontmetrics.h> #include <kdebug.h> #include <kglobalsettings.h> @@ -27,20 +27,20 @@ #include "statusbar.h" #include "partcontroller.h" -KDevStatusBar::KDevStatusBar(QWidget *parent, const char *name) +KDevStatusBar::KDevStatusBar(TQWidget *parent, const char *name) : KStatusBar(parent, name), _cursorIface(0), _activePart(0) { - QWidget * w = new QWidget( this ); + TQWidget * w = new TQWidget( this ); addWidget( w, 1, true ); w->hide(); - _status = new QLabel( this ); + _status = new TQLabel( this ); _status->setMinimumWidth(_status->fontMetrics().width("Line: XXXXX Col: XXX OVR NORM * ")); - _status->setAlignment(QWidget::AlignCenter); + _status->setAlignment(TQWidget::AlignCenter); addWidget(_status, 0, true); - connect(PartController::getInstance(), SIGNAL(activePartChanged(KParts::Part*)), - this, SLOT(activePartChanged(KParts::Part*))); + connect(PartController::getInstance(), TQT_SIGNAL(activePartChanged(KParts::Part*)), + this, TQT_SLOT(activePartChanged(KParts::Part*))); } @@ -60,14 +60,14 @@ void KDevStatusBar::activePartChanged(KParts::Part *part) { if ((_viewmsgIface = dynamic_cast<KTextEditor::ViewStatusMsgInterface*>(part->widget()))) { - connect( part->widget(), SIGNAL( viewStatusMsg( const QString & ) ), - this, SLOT( setStatus( const QString & ) ) ); + connect( part->widget(), TQT_SIGNAL( viewStatusMsg( const TQString & ) ), + this, TQT_SLOT( setStatus( const TQString & ) ) ); _status->show(); } else if ((_cursorIface = dynamic_cast<KTextEditor::ViewCursorInterface*>(part->widget()))) { - connect(part->widget(), SIGNAL(cursorPositionChanged()), this, SLOT(cursorPositionChanged())); + connect(part->widget(), TQT_SIGNAL(cursorPositionChanged()), this, TQT_SLOT(cursorPositionChanged())); _status->show(); cursorPositionChanged(); @@ -90,7 +90,7 @@ void KDevStatusBar::cursorPositionChanged() } } -void KDevStatusBar::setStatus(const QString &str) +void KDevStatusBar::setStatus(const TQString &str) { _status->setText(str); } @@ -101,7 +101,7 @@ void KDevStatusBar::setCursorPosition(int line, int col) _status->setText(i18n(" Line: %1 Col: %2 ").arg(line+1).arg(col)); } -void KDevStatusBar::addWidget ( QWidget *widget, int stretch, bool permanent) +void KDevStatusBar::addWidget ( TQWidget *widget, int stretch, bool permanent) { KStatusBar::addWidget(widget,stretch,permanent); |