summaryrefslogtreecommitdiffstats
path: root/kommander/widgets/checkbox.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/checkbox.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/checkbox.cpp')
-rw-r--r--kommander/widgets/checkbox.cpp60
1 files changed, 30 insertions, 30 deletions
diff --git a/kommander/widgets/checkbox.cpp b/kommander/widgets/checkbox.cpp
index e78dbdb8..f7fe20be 100644
--- a/kommander/widgets/checkbox.cpp
+++ b/kommander/widgets/checkbox.cpp
@@ -16,27 +16,27 @@
/* KDE INCLUDES */
/* QT INCLUDES */
-#include <qobject.h>
-#include <qstring.h>
-#include <qwidget.h>
-#include <qstringlist.h>
-#include <qevent.h>
-#include <qcheckbox.h>
-#include <qbutton.h>
+#include <tqobject.h>
+#include <tqstring.h>
+#include <tqwidget.h>
+#include <tqstringlist.h>
+#include <tqevent.h>
+#include <tqcheckbox.h>
+#include <tqbutton.h>
/* OTHER INCLUDES */
#include <specials.h>
#include "checkbox.h"
-CheckBox::CheckBox(QWidget *a_parent, const char *a_name)
- : QCheckBox(a_parent, a_name), KommanderWidget(this)
+CheckBox::CheckBox(TQWidget *a_parent, const char *a_name)
+ : TQCheckBox(a_parent, a_name), KommanderWidget(this)
{
- QStringList states;
+ TQStringList states;
states << "unchecked";
states << "semichecked";
states << "checked";
setStates(states);
- QStringList displayStates;
+ TQStringList displayStates;
displayStates << "checked";
displayStates << "semichecked";
displayStates << "unchecked";
@@ -47,15 +47,15 @@ CheckBox::~CheckBox()
{
}
-QString CheckBox::currentState() const
+TQString CheckBox::currentState() const
{
- if (state() == QButton::Off)
+ if (state() == TQButton::Off)
return "unchecked";
- else if (state() == QButton::NoChange)
+ else if (state() == TQButton::NoChange)
return "semichecked";
- else if (state() == QButton::On)
+ else if (state() == TQButton::On)
return "checked";
- return QString();
+ return TQString();
}
bool CheckBox::isKommanderWidget() const
@@ -63,22 +63,22 @@ bool CheckBox::isKommanderWidget() const
return true;
}
-QStringList CheckBox::associatedText() const
+TQStringList CheckBox::associatedText() const
{
return KommanderWidget::associatedText();
}
-void CheckBox::setAssociatedText(const QStringList & a_at)
+void CheckBox::setAssociatedText(const TQStringList & a_at)
{
KommanderWidget::setAssociatedText(a_at);
}
-void CheckBox::setPopulationText(const QString & a_text)
+void CheckBox::setPopulationText(const TQString & a_text)
{
KommanderWidget::setPopulationText(a_text);
}
-QString CheckBox::populationText() const
+TQString CheckBox::populationText() const
{
return KommanderWidget::populationText();
}
@@ -88,15 +88,15 @@ void CheckBox::populate()
setWidgetText(KommanderWidget::evalAssociatedText(populationText()));
}
-void CheckBox::setWidgetText(const QString& a_text)
+void CheckBox::setWidgetText(const TQString& a_text)
{
setText(a_text);
emit widgetTextChanged(a_text);
}
-void CheckBox::showEvent(QShowEvent* e)
+void CheckBox::showEvent(TQShowEvent* e)
{
- QCheckBox::showEvent(e);
+ TQCheckBox::showEvent(e);
emit widgetOpened();
}
@@ -105,14 +105,14 @@ bool CheckBox::isFunctionSupported(int f)
return f == DCOP::text || f == DCOP::setText || f == DCOP::checked || f == DCOP::setChecked || f == DCOP::geometry || f == DCOP::getBackgroundColor || f == DCOP::setBackgroundColor;
}
-void CheckBox::contextMenuEvent( QContextMenuEvent * e )
+void CheckBox::contextMenuEvent( TQContextMenuEvent * e )
{
e->accept();
- QPoint p = e->globalPos();
+ TQPoint p = e->globalPos();
emit contextMenuRequested(p.x(), p.y());
}
-QString CheckBox::handleDCOP(int function, const QStringList& args)
+TQString CheckBox::handleDCOP(int function, const TQStringList& args)
{
switch (function) {
case DCOP::text:
@@ -121,13 +121,13 @@ QString CheckBox::handleDCOP(int function, const QStringList& args)
setWidgetText(args[0]);
break;
case DCOP::checked:
- return QString::number(isChecked());
+ return TQString::number(isChecked());
case DCOP::setChecked:
setChecked(args[0] != "false" && args[0] != "0");
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;
}
@@ -136,7 +136,7 @@ QString CheckBox::handleDCOP(int function, const QStringList& args)
break;
case DCOP::setBackgroundColor:
{
- QColor color;
+ TQColor color;
color.setNamedColor(args[0]);
this->setPaletteBackgroundColor(color);
break;
@@ -144,7 +144,7 @@ QString CheckBox::handleDCOP(int function, const QStringList& args)
default:
return KommanderWidget::handleDCOP(function, args);
}
- return QString();
+ return TQString();
}