summaryrefslogtreecommitdiffstats
path: root/kommander/widgets/buttongroup.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
commitdc6b8e72fed2586239e3514819238c520636c9d9 (patch)
tree88b200df0a0b7fab9d6f147596173556f1ed9a13 /kommander/widgets/buttongroup.cpp
parent6927d4436e54551917f600b706a8d6109e49de1c (diff)
downloadtdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz
tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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();
}