summaryrefslogtreecommitdiffstats
path: root/kommander/widgets/slider.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kommander/widgets/slider.cpp')
-rw-r--r--kommander/widgets/slider.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/kommander/widgets/slider.cpp b/kommander/widgets/slider.cpp
index 52f6d47a..b3bef6fc 100644
--- a/kommander/widgets/slider.cpp
+++ b/kommander/widgets/slider.cpp
@@ -15,25 +15,25 @@
***************************************************************************/
/* QT INCLUDES */
-#include <qstringlist.h>
-#include <qevent.h>
+#include <tqstringlist.h>
+#include <tqevent.h>
/* OTHER INCLUDES */
#include <specials.h>
#include "slider.h"
-Slider::Slider(QWidget * a_parent, const char *a_name)
- : QSlider(a_parent, a_name), KommanderWidget((QObject *) this)
+Slider::Slider(TQWidget * a_parent, const char *a_name)
+ : TQSlider(a_parent, a_name), KommanderWidget((TQObject *) this)
{
- QStringList states;
+ TQStringList states;
states << "default";
setStates(states);
setDisplayStates(states);
}
-QString Slider::currentState() const
+TQString Slider::currentState() const
{
- return QString("default");
+ return TQString("default");
}
Slider::~Slider()
@@ -45,40 +45,40 @@ bool Slider::isKommanderWidget() const
return true;
}
-QStringList Slider::associatedText() const
+TQStringList Slider::associatedText() const
{
return KommanderWidget::associatedText();
}
-void Slider::setAssociatedText(const QStringList & a_at)
+void Slider::setAssociatedText(const TQStringList & a_at)
{
KommanderWidget::setAssociatedText(a_at);
}
-void Slider::setPopulationText(const QString & a_text)
+void Slider::setPopulationText(const TQString & a_text)
{
KommanderWidget::setPopulationText(a_text);
}
-QString Slider::populationText() const
+TQString Slider::populationText() const
{
return KommanderWidget::populationText();
}
void Slider::populate()
{
- QString txt = KommanderWidget::evalAssociatedText(populationText());
+ TQString txt = KommanderWidget::evalAssociatedText(populationText());
setWidgetText(txt);
}
-void Slider::setWidgetText(const QString & a_text)
+void Slider::setWidgetText(const TQString & a_text)
{
setValue(a_text.toInt());
}
-void Slider::showEvent(QShowEvent * e)
+void Slider::showEvent(TQShowEvent * e)
{
- QSlider::showEvent(e);
+ TQSlider::showEvent(e);
emit widgetOpened();
}
@@ -87,11 +87,11 @@ bool Slider::isFunctionSupported(int f)
return f == DCOP::text || f == DCOP::setText || f == DCOP::clear || f == DCOP::setMaximum || f == DCOP::getBackgroundColor || f == DCOP::setBackgroundColor;
}
-QString Slider::handleDCOP(int function, const QStringList& args)
+TQString Slider::handleDCOP(int function, const TQStringList& args)
{
switch (function) {
case DCOP::text:
- return QString::number(value());
+ return TQString::number(value());
case DCOP::setText:
setValue(args[0].toInt());
break;
@@ -106,7 +106,7 @@ QString Slider::handleDCOP(int function, const QStringList& args)
break;
case DCOP::setBackgroundColor:
{
- QColor color;
+ TQColor color;
color.setNamedColor(args[0]);
this->setPaletteBackgroundColor(color);
break;
@@ -114,7 +114,7 @@ QString Slider::handleDCOP(int function, const QStringList& args)
default:
return KommanderWidget::handleDCOP(function, args);
}
- return QString();
+ return TQString();
}