summaryrefslogtreecommitdiffstats
path: root/src/statusbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/statusbar.cpp')
-rw-r--r--src/statusbar.cpp32
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);