diff options
Diffstat (limited to 'kommander/widgets/groupbox.cpp')
-rw-r--r-- | kommander/widgets/groupbox.cpp | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/kommander/widgets/groupbox.cpp b/kommander/widgets/groupbox.cpp index 29947eb1..7ca1c199 100644 --- a/kommander/widgets/groupbox.cpp +++ b/kommander/widgets/groupbox.cpp @@ -16,13 +16,13 @@ /* KDE INCLUDES */ /* QT INCLUDES */ -#include <qobject.h> -#include <qstring.h> -#include <qwidget.h> -#include <qstringlist.h> -#include <qevent.h> -#include <qgroupbox.h> -#include <qobjectlist.h> +#include <tqobject.h> +#include <tqstring.h> +#include <tqwidget.h> +#include <tqstringlist.h> +#include <tqevent.h> +#include <tqgroupbox.h> +#include <tqobjectlist.h> #include <klocale.h> /* OTHER INCLUDES */ @@ -31,10 +31,10 @@ #include "groupbox.h" -GroupBox::GroupBox(QWidget *a_parent, const char *a_name) - : QGroupBox(a_parent, a_name), KommanderWidget(this) +GroupBox::GroupBox(TQWidget *a_parent, const char *a_name) + : TQGroupBox(a_parent, a_name), KommanderWidget(this) { - QStringList states; + TQStringList states; states << "default"; setStates(states); setDisplayStates(states); @@ -44,9 +44,9 @@ GroupBox::~GroupBox() { } -QString GroupBox::currentState() const +TQString GroupBox::currentState() const { - return QString("default"); + return TQString("default"); } bool GroupBox::isKommanderWidget() const @@ -54,55 +54,55 @@ bool GroupBox::isKommanderWidget() const return true; } -QStringList GroupBox::associatedText() const +TQStringList GroupBox::associatedText() const { return KommanderWidget::associatedText(); } -void GroupBox::setAssociatedText(const QStringList& a_at) +void GroupBox::setAssociatedText(const TQStringList& a_at) { KommanderWidget::setAssociatedText(a_at); } -void GroupBox::setPopulationText(const QString& a_text) +void GroupBox::setPopulationText(const TQString& a_text) { KommanderWidget::setPopulationText(a_text); } -QString GroupBox::populationText() const +TQString GroupBox::populationText() const { return KommanderWidget::populationText(); } void GroupBox::populate() { - QString txt = KommanderWidget::evalAssociatedText( populationText() ); + TQString txt = KommanderWidget::evalAssociatedText( populationText() ); //FIXME: setWidgetText( txt ); } /* We need to keep track of all widgets created as a child of a groupbox, in order of creation. */ -void GroupBox::insertChild(QObject *a_child) +void GroupBox::insertChild(TQObject *a_child) { m_childList.append(a_child); - QObject::insertChild(a_child); + TQObject::insertChild(a_child); } -void GroupBox::removeChild(QObject *a_child) +void GroupBox::removeChild(TQObject *a_child) { m_childList.remove(a_child); - QObject::removeChild(a_child); + TQObject::removeChild(a_child); } -void GroupBox::showEvent( QShowEvent *e ) +void GroupBox::showEvent( TQShowEvent *e ) { - QGroupBox::showEvent(e); + TQGroupBox::showEvent(e); emit widgetOpened(); } -void GroupBox::contextMenuEvent( QContextMenuEvent * e ) +void GroupBox::contextMenuEvent( TQContextMenuEvent * e ) { e->accept(); - QPoint p = e->globalPos(); + TQPoint p = e->globalPos(); emit contextMenuRequested(p.x(), p.y()); } @@ -112,13 +112,13 @@ bool GroupBox::isFunctionSupported(int f) // || (f >= FirstFunction && f <= LastFunction); } -QString GroupBox::handleDCOP(int function, const QStringList& args) +TQString GroupBox::handleDCOP(int function, const TQStringList& args) { switch (function) { case DCOP::text: { - QString text; - for (QObjectListIt it(m_childList); it.current(); ++it) + TQString text; + for (TQObjectListIt it(m_childList); it.current(); ++it) if (dynamic_cast<KommanderWidget*>(it.current())) text += (dynamic_cast<KommanderWidget*>(it.current()))->evalAssociatedText(); return text; @@ -128,7 +128,7 @@ QString GroupBox::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; } @@ -137,7 +137,7 @@ QString GroupBox::handleDCOP(int function, const QStringList& args) break; case DCOP::setBackgroundColor: { - QColor color; + TQColor color; color.setNamedColor(args[0]); this->setPaletteBackgroundColor(color); break; @@ -145,7 +145,7 @@ QString GroupBox::handleDCOP(int function, const QStringList& args) default: return KommanderWidget::handleDCOP(function, args); } - return QString(); + return TQString(); } |