summaryrefslogtreecommitdiffstats
path: root/kommander/widgets/buttongroup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kommander/widgets/buttongroup.cpp')
-rw-r--r--kommander/widgets/buttongroup.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/kommander/widgets/buttongroup.cpp b/kommander/widgets/buttongroup.cpp
index 0a6eafc2..751c8e5c 100644
--- a/kommander/widgets/buttongroup.cpp
+++ b/kommander/widgets/buttongroup.cpp
@@ -17,12 +17,12 @@
#include <klocale.h>
/* QT INCLUDES */
-#include <qobject.h>
-#include <qstring.h>
-#include <qwidget.h>
-#include <qstringlist.h>
-#include <qbuttongroup.h>
-#include <qevent.h>
+#include <tqobject.h>
+#include <tqstring.h>
+#include <tqwidget.h>
+#include <tqstringlist.h>
+#include <tqbuttongroup.h>
+#include <tqevent.h>
/* OTHER INCLUDES */
#include <kommanderwidget.h>
@@ -38,17 +38,17 @@ enum Functions {
LastFunction
};
-ButtonGroup::ButtonGroup(QWidget *a_parent, const char *a_name)
- : QButtonGroup(a_parent, a_name), KommanderWidget(this)
+ButtonGroup::ButtonGroup(TQWidget *a_parent, const char *a_name)
+ : TQButtonGroup(a_parent, a_name), KommanderWidget(this)
{
- QStringList states;
+ TQStringList states;
states << "checked";
states << "unchecked";
setStates(states);
setDisplayStates(states);
KommanderPlugin::setDefaultGroup(Group::DCOP);
- KommanderPlugin::registerFunction(BG_selectedId, "selectedId(QString widget)", i18n("Returns the ID of the selected button."), 1);
+ KommanderPlugin::registerFunction(BG_selectedId, "selectedId(TQString widget)", i18n("Returns the ID of the selected button."), 1);
}
@@ -56,7 +56,7 @@ ButtonGroup::~ButtonGroup()
{
}
-QString ButtonGroup::currentState() const
+TQString ButtonGroup::currentState() const
{
if (!isCheckable() || isChecked())
return "checked";
@@ -69,22 +69,22 @@ bool ButtonGroup::isKommanderWidget() const
return true;
}
-QStringList ButtonGroup::associatedText() const
+TQStringList ButtonGroup::associatedText() const
{
return KommanderWidget::associatedText();
}
-void ButtonGroup::setAssociatedText(const QStringList& a_at)
+void ButtonGroup::setAssociatedText(const TQStringList& a_at)
{
KommanderWidget::setAssociatedText(a_at);
}
-void ButtonGroup::setPopulationText(const QString& a_text)
+void ButtonGroup::setPopulationText(const TQString& a_text)
{
KommanderWidget::setPopulationText( a_text );
}
-QString ButtonGroup::populationText() const
+TQString ButtonGroup::populationText() const
{
return KommanderWidget::populationText();
}
@@ -94,16 +94,16 @@ void ButtonGroup::populate()
//FIXME: implement
}
-void ButtonGroup::showEvent(QShowEvent* e)
+void ButtonGroup::showEvent(TQShowEvent* e)
{
- QButtonGroup::showEvent(e);
+ TQButtonGroup::showEvent(e);
emit widgetOpened();
}
-void ButtonGroup::contextMenuEvent( QContextMenuEvent * e )
+void ButtonGroup::contextMenuEvent( TQContextMenuEvent * e )
{
e->accept();
- QPoint p = e->globalPos();
+ TQPoint p = e->globalPos();
emit contextMenuRequested(p.x(), p.y());
}
@@ -113,29 +113,29 @@ bool ButtonGroup::isFunctionSupported(int f)
}
-QString ButtonGroup::handleDCOP(int function, const QStringList& args)
+TQString ButtonGroup::handleDCOP(int function, const TQStringList& args)
{
switch (function) {
case DCOP::text:
{
- QString text;
+ TQString text;
for (int i = 0; i < count(); i++)
if (dynamic_cast<KommanderWidget*>(find(i)))
text += (dynamic_cast<KommanderWidget*>(find(i)))->evalAssociatedText();
return text;
}
case DCOP::checked:
- return QString::number(isChecked());
+ return TQString::number(isChecked());
case DCOP::setChecked:
setCheckable(true);
setChecked(args[0] != "false");
break;
case BG_selectedId:
- return QString::number(this->selectedId() );
+ return TQString::number(this->selectedId() );
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;
}
@@ -144,7 +144,7 @@ QString ButtonGroup::handleDCOP(int function, const QStringList& args)
break;
case DCOP::setBackgroundColor:
{
- QColor color;
+ TQColor color;
color.setNamedColor(args[0]);
this->setPaletteBackgroundColor(color);
break;
@@ -152,7 +152,7 @@ QString ButtonGroup::handleDCOP(int function, const QStringList& args)
default:
return KommanderWidget::handleDCOP(function, args);
}
- return QString();
+ return TQString();
}