summaryrefslogtreecommitdiffstats
path: root/src/statusbar.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
commit48d4a26399959121f33d2bc3bfe51c7827b654fc (patch)
tree5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /src/statusbar.cpp
parent7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff)
downloadtdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.tar.gz
tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.zip
TQt4 port kdevelop
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/statusbar.cpp')
-rw-r--r--src/statusbar.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/statusbar.cpp b/src/statusbar.cpp
index 02031021..581c2fd2 100644
--- a/src/statusbar.cpp
+++ b/src/statusbar.cpp
@@ -27,8 +27,8 @@
#include "statusbar.h"
#include "partcontroller.h"
-KDevStatusBar::KDevStatusBar(TQWidget *parent, const char *name)
- : KStatusBar(parent, name), _cursorIface(0), _activePart(0)
+KDevStatusBar::KDevStatusBar(TQWidget *tqparent, const char *name)
+ : KStatusBar(tqparent, name), _cursorIface(0), _activePart(0)
{
TQWidget * w = new TQWidget( this );
addWidget( w, 1, true );
@@ -36,7 +36,7 @@ KDevStatusBar::KDevStatusBar(TQWidget *parent, const char *name)
_status = new TQLabel( this );
_status->setMinimumWidth(_status->fontMetrics().width("Line: XXXXX Col: XXX OVR NORM * "));
- _status->setAlignment(TQWidget::AlignCenter);
+ _status->tqsetAlignment(TQWidget::AlignCenter);
addWidget(_status, 0, true);
connect(PartController::getInstance(), TQT_SIGNAL(activePartChanged(KParts::Part*)),
@@ -61,7 +61,7 @@ void KDevStatusBar::activePartChanged(KParts::Part *part)
if ((_viewmsgIface = dynamic_cast<KTextEditor::ViewStatusMsgInterface*>(part->widget())))
{
connect( part->widget(), TQT_SIGNAL( viewStatusMsg( const TQString & ) ),
- this, TQT_SLOT( setStatus( const TQString & ) ) );
+ this, TQT_SLOT( settqStatus( const TQString & ) ) );
_status->show();
}
@@ -90,7 +90,7 @@ void KDevStatusBar::cursorPositionChanged()
}
}
-void KDevStatusBar::setStatus(const TQString &str)
+void KDevStatusBar::settqStatus(const TQString &str)
{
_status->setText(str);
}
@@ -98,15 +98,15 @@ void KDevStatusBar::setStatus(const TQString &str)
void KDevStatusBar::setCursorPosition(int line, int col)
{
- _status->setText(i18n(" Line: %1 Col: %2 ").arg(line+1).arg(col));
+ _status->setText(i18n(" Line: %1 Col: %2 ").tqarg(line+1).tqarg(col));
}
void KDevStatusBar::addWidget ( TQWidget *widget, int stretch, bool permanent)
{
KStatusBar::addWidget(widget,stretch,permanent);
- if(widget->sizeHint().height() + 4 > height())
- setFixedHeight(widget->sizeHint().height() + 4);
+ if(widget->tqsizeHint().height() + 4 > height())
+ setFixedHeight(widget->tqsizeHint().height() + 4);
}
#include "statusbar.moc"