summaryrefslogtreecommitdiffstats
path: root/kommander/widgets/radiobutton.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kommander/widgets/radiobutton.cpp')
-rw-r--r--kommander/widgets/radiobutton.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/kommander/widgets/radiobutton.cpp b/kommander/widgets/radiobutton.cpp
index a7faa91a..ba46248d 100644
--- a/kommander/widgets/radiobutton.cpp
+++ b/kommander/widgets/radiobutton.cpp
@@ -16,25 +16,25 @@
/* KDE INCLUDES */
/* QT INCLUDES */
-#include <qobject.h>
-#include <qstring.h>
-#include <qwidget.h>
-#include <qstringlist.h>
-#include <qevent.h>
-#include <qradiobutton.h>
+#include <tqobject.h>
+#include <tqstring.h>
+#include <tqwidget.h>
+#include <tqstringlist.h>
+#include <tqevent.h>
+#include <tqradiobutton.h>
/* OTHER INCLUDES */
#include <specials.h>
#include "radiobutton.h"
-RadioButton::RadioButton(QWidget *a_parent, const char *a_name)
- : QRadioButton(a_parent, a_name), KommanderWidget(this)
+RadioButton::RadioButton(TQWidget *a_parent, const char *a_name)
+ : TQRadioButton(a_parent, a_name), KommanderWidget(this)
{
- QStringList states;
+ TQStringList states;
states << "unchecked";
states << "checked";
setStates(states);
- QStringList displayStates;
+ TQStringList displayStates;
displayStates << "checked";
displayStates << "unchecked";
setDisplayStates(displayStates);
@@ -44,7 +44,7 @@ RadioButton::~RadioButton()
{
}
-QString RadioButton::currentState() const
+TQString RadioButton::currentState() const
{
return (isChecked() ? "checked" : "unchecked");
}
@@ -54,48 +54,48 @@ bool RadioButton::isKommanderWidget() const
return true;
}
-QStringList RadioButton::associatedText() const
+TQStringList RadioButton::associatedText() const
{
return KommanderWidget::associatedText();
}
-void RadioButton::setAssociatedText(const QStringList& a_at)
+void RadioButton::setAssociatedText(const TQStringList& a_at)
{
KommanderWidget::setAssociatedText(a_at);
}
-void RadioButton::setWidgetText(const QString &a_text)
+void RadioButton::setWidgetText(const TQString &a_text)
{
setText(a_text);
emit widgetTextChanged(a_text);
}
-void RadioButton::setPopulationText(const QString& a_text)
+void RadioButton::setPopulationText(const TQString& a_text)
{
KommanderWidget::setPopulationText( a_text );
}
-QString RadioButton::populationText() const
+TQString RadioButton::populationText() const
{
return KommanderWidget::populationText();
}
void RadioButton::populate()
{
- QString txt = KommanderWidget::evalAssociatedText( populationText() );
+ TQString txt = KommanderWidget::evalAssociatedText( populationText() );
setWidgetText( txt );
}
-void RadioButton::showEvent( QShowEvent *e )
+void RadioButton::showEvent( TQShowEvent *e )
{
- QRadioButton::showEvent( e );
+ TQRadioButton::showEvent( e );
emit widgetOpened();
}
-void RadioButton::contextMenuEvent( QContextMenuEvent * e )
+void RadioButton::contextMenuEvent( TQContextMenuEvent * e )
{
e->accept();
- QPoint p = e->globalPos();
+ TQPoint p = e->globalPos();
emit contextMenuRequested(p.x(), p.y());
}
@@ -104,7 +104,7 @@ bool RadioButton::isFunctionSupported(int f)
return f == DCOP::text || f == DCOP::setText || f == DCOP::setChecked || f == DCOP::checked || f == DCOP::geometry || f == DCOP::getBackgroundColor || f == DCOP::setBackgroundColor;
}
-QString RadioButton::handleDCOP(int function, const QStringList& args)
+TQString RadioButton::handleDCOP(int function, const TQStringList& args)
{
switch (function) {
case DCOP::text:
@@ -116,10 +116,10 @@ QString RadioButton::handleDCOP(int function, const QStringList& args)
setChecked(args[0] != "false");
break;
case DCOP::checked:
- return QString::number(isOn());
+ return TQString::number(isOn());
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;
}
@@ -128,7 +128,7 @@ QString RadioButton::handleDCOP(int function, const QStringList& args)
break;
case DCOP::setBackgroundColor:
{
- QColor color;
+ TQColor color;
color.setNamedColor(args[0]);
this->setPaletteBackgroundColor(color);
break;
@@ -136,7 +136,7 @@ QString RadioButton::handleDCOP(int function, const QStringList& args)
default:
return KommanderWidget::handleDCOP(function, args);
}
- return QString();
+ return TQString();
}