summaryrefslogtreecommitdiffstats
path: root/kommander/widgets/statusbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kommander/widgets/statusbar.cpp')
-rw-r--r--kommander/widgets/statusbar.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/kommander/widgets/statusbar.cpp b/kommander/widgets/statusbar.cpp
index 90b23999..59070884 100644
--- a/kommander/widgets/statusbar.cpp
+++ b/kommander/widgets/statusbar.cpp
@@ -16,24 +16,24 @@
/* KDE INCLUDES */
/* QT INCLUDES */
-#include <qobject.h>
-#include <qstring.h>
-#include <qwidget.h>
-#include <qstringlist.h>
-#include <qevent.h>
+#include <tqobject.h>
+#include <tqstring.h>
+#include <tqwidget.h>
+#include <tqstringlist.h>
+#include <tqevent.h>
/* OTHER INCLUDES */
#include <specials.h>
#include "statusbar.h"
-StatusBar::StatusBar(QWidget *a_parent, const char *a_name)
+StatusBar::StatusBar(TQWidget *a_parent, const char *a_name)
: KStatusBar(a_parent, a_name), KommanderWidget(this)
{
- QStringList states;
+ TQStringList states;
states << "default";
setStates(states);
setDisplayStates(states);
- insertItem(QString::null, 0, 1);
+ insertItem(TQString::null, 0, 1);
setItemAlignment(0, Qt::AlignLeft);
}
@@ -41,9 +41,9 @@ StatusBar::~StatusBar()
{
}
-QString StatusBar::currentState() const
+TQString StatusBar::currentState() const
{
- return QString("default");
+ return TQString("default");
}
bool StatusBar::isKommanderWidget() const
@@ -51,22 +51,22 @@ bool StatusBar::isKommanderWidget() const
return true;
}
-QStringList StatusBar::associatedText() const
+TQStringList StatusBar::associatedText() const
{
return KommanderWidget::associatedText();
}
-void StatusBar::setAssociatedText(const QStringList& a_at)
+void StatusBar::setAssociatedText(const TQStringList& a_at)
{
KommanderWidget::setAssociatedText(a_at);
}
-void StatusBar::setPopulationText(const QString& a_text)
+void StatusBar::setPopulationText(const TQString& a_text)
{
KommanderWidget::setPopulationText(a_text);
}
-QString StatusBar::populationText() const
+TQString StatusBar::populationText() const
{
return KommanderWidget::populationText();
}
@@ -76,16 +76,16 @@ void StatusBar::populate()
changeItem(KommanderWidget::evalAssociatedText(populationText()), 0);
}
-void StatusBar::showEvent(QShowEvent *e)
+void StatusBar::showEvent(TQShowEvent *e)
{
- QStatusBar::showEvent(e);
+ TQStatusBar::showEvent(e);
emit widgetOpened();
}
-void StatusBar::contextMenuEvent( QContextMenuEvent * e )
+void StatusBar::contextMenuEvent( TQContextMenuEvent * e )
{
e->accept();
- QPoint p = e->globalPos();
+ TQPoint p = e->globalPos();
emit contextMenuRequested(p.x(), p.y());
}
@@ -94,7 +94,7 @@ bool StatusBar::isFunctionSupported(int f)
return f == DCOP::setText || f == DCOP::insertItem || f == DCOP::removeItem || f == DCOP::clear || f == DCOP::getBackgroundColor || f == DCOP::setBackgroundColor;
}
-QString StatusBar::handleDCOP(int function, const QStringList& args)
+TQString StatusBar::handleDCOP(int function, const TQStringList& args)
{
switch (function) {
case DCOP::setText:
@@ -117,7 +117,7 @@ QString StatusBar::handleDCOP(int function, const QStringList& args)
break;
case DCOP::setBackgroundColor:
{
- QColor color;
+ TQColor color;
color.setNamedColor(args[0]);
this->setPaletteBackgroundColor(color);
break;
@@ -125,7 +125,7 @@ QString StatusBar::handleDCOP(int function, const QStringList& args)
default:
return KommanderWidget::handleDCOP(function, args);
}
- return QString();
+ return TQString();
}
#include "statusbar.moc"