diff options
Diffstat (limited to 'kommander/widgets/spinboxint.cpp')
-rw-r--r-- | kommander/widgets/spinboxint.cpp | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/kommander/widgets/spinboxint.cpp b/kommander/widgets/spinboxint.cpp index ce013333..a2b9af6a 100644 --- a/kommander/widgets/spinboxint.cpp +++ b/kommander/widgets/spinboxint.cpp @@ -16,21 +16,21 @@ /* KDE INCLUDES */ /* QT INCLUDES */ -#include <qobject.h> -#include <qstring.h> -#include <qwidget.h> -#include <qstringlist.h> -#include <qevent.h> -#include <qspinbox.h> +#include <tqobject.h> +#include <tqstring.h> +#include <tqwidget.h> +#include <tqstringlist.h> +#include <tqevent.h> +#include <tqspinbox.h> /* OTHER INCLUDES */ #include <specials.h> #include "spinboxint.h" -SpinBoxInt::SpinBoxInt(QWidget *a_parent, const char *a_name) - : QSpinBox(a_parent, a_name), KommanderWidget(this) +SpinBoxInt::SpinBoxInt(TQWidget *a_parent, const char *a_name) + : TQSpinBox(a_parent, a_name), KommanderWidget(this) { - QStringList states; + TQStringList states; states << "default"; setStates(states); setDisplayStates(states); @@ -40,7 +40,7 @@ SpinBoxInt::~SpinBoxInt() { } -QString SpinBoxInt::currentState() const +TQString SpinBoxInt::currentState() const { return "default"; } @@ -50,22 +50,22 @@ bool SpinBoxInt::isKommanderWidget() const return true; } -QStringList SpinBoxInt::associatedText() const +TQStringList SpinBoxInt::associatedText() const { return KommanderWidget::associatedText(); } -void SpinBoxInt::setAssociatedText(const QStringList& a_at) +void SpinBoxInt::setAssociatedText(const TQStringList& a_at) { KommanderWidget::setAssociatedText(a_at); } -void SpinBoxInt::setPopulationText(const QString& a_text) +void SpinBoxInt::setPopulationText(const TQString& a_text) { KommanderWidget::setPopulationText(a_text); } -QString SpinBoxInt::populationText() const +TQString SpinBoxInt::populationText() const { return KommanderWidget::populationText(); } @@ -75,27 +75,27 @@ void SpinBoxInt::populate() setWidgetText(KommanderWidget::evalAssociatedText( populationText())); } -void SpinBoxInt::setWidgetText(const QString &a_text) +void SpinBoxInt::setWidgetText(const TQString &a_text) { setValue(a_text.toInt()); emit widgetTextChanged(a_text); } -void SpinBoxInt::showEvent( QShowEvent *e ) +void SpinBoxInt::showEvent( TQShowEvent *e ) { - QSpinBox::showEvent(e); + TQSpinBox::showEvent(e); emit widgetOpened(); } -void SpinBoxInt::focusOutEvent( QFocusEvent * e) +void SpinBoxInt::focusOutEvent( TQFocusEvent * e) { - QSpinBox::focusOutEvent(e); + TQSpinBox::focusOutEvent(e); emit lostFocus(); } -void SpinBoxInt::focusInEvent( QFocusEvent * e) +void SpinBoxInt::focusInEvent( TQFocusEvent * e) { - QSpinBox::focusInEvent(e); + TQSpinBox::focusInEvent(e); emit gotFocus(); } @@ -104,7 +104,7 @@ bool SpinBoxInt::isFunctionSupported(int f) return f == DCOP::text || f == DCOP::setText || f == DCOP::setMaximum || f == DCOP::geometry|| f == DCOP::getBackgroundColor || f == DCOP::setBackgroundColor; } -QString SpinBoxInt::handleDCOP(int function, const QStringList& args) +TQString SpinBoxInt::handleDCOP(int function, const TQStringList& args) { switch (function) { case DCOP::text: @@ -117,7 +117,7 @@ QString SpinBoxInt::handleDCOP(int function, const QStringList& args) break; case DCOP::geometry: { - QString geo = QString::number(this->x())+" "+QString::number(this->y())+" "+QString::number(this->width())+" "+QString::number(this->height()); + TQString geo = TQString::number(this->x())+" "+TQString::number(this->y())+" "+TQString::number(this->width())+" "+TQString::number(this->height()); return geo; break; } @@ -126,7 +126,7 @@ QString SpinBoxInt::handleDCOP(int function, const QStringList& args) break; case DCOP::setBackgroundColor: { - QColor color; + TQColor color; color.setNamedColor(args[0]); this->setPaletteBackgroundColor(color); break; @@ -134,7 +134,7 @@ QString SpinBoxInt::handleDCOP(int function, const QStringList& args) default: return KommanderWidget::handleDCOP(function, args); } - return QString(); + return TQString(); } #include "spinboxint.moc" |