diff options
Diffstat (limited to 'lib/widgets/propeditor/pyesnobutton.cpp')
-rw-r--r-- | lib/widgets/propeditor/pyesnobutton.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/widgets/propeditor/pyesnobutton.cpp b/lib/widgets/propeditor/pyesnobutton.cpp index 763ac630..308570be 100644 --- a/lib/widgets/propeditor/pyesnobutton.cpp +++ b/lib/widgets/propeditor/pyesnobutton.cpp @@ -19,9 +19,9 @@ ***************************************************************************/ #include "pyesnobutton.h" -#include <qlayout.h> -#include <qpainter.h> -#include <qpushbutton.h> +#include <tqlayout.h> +#include <tqpainter.h> +#include <tqpushbutton.h> #ifndef PURE_QT #include <klocale.h> @@ -31,34 +31,34 @@ namespace PropertyLib{ -PYesNoButton::PYesNoButton(MultiProperty* property, QWidget* parent, const char* name) +PYesNoButton::PYesNoButton(MultiProperty* property, TQWidget* parent, const char* name) :PropertyWidget(property, parent, name) { - QHBoxLayout *l = new QHBoxLayout(this, 0, 0); - m_edit = new QPushButton(this); + TQHBoxLayout *l = new TQHBoxLayout(this, 0, 0); + m_edit = new TQPushButton(this); m_edit->setToggleButton(true); - m_edit->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding); + m_edit->setSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding); l->addWidget(m_edit); - connect(m_edit, SIGNAL(toggled(bool)), this, SLOT(updateProperty(bool))); + connect(m_edit, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(updateProperty(bool))); } -QVariant PYesNoButton::value() const +TQVariant PYesNoButton::value() const { - return QVariant(m_edit->isOn()); + return TQVariant(m_edit->isOn()); } -void PYesNoButton::drawViewer(QPainter* p, const QColorGroup& cg, const QRect& r, const QVariant& value) +void PYesNoButton::drawViewer(TQPainter* p, const TQColorGroup& cg, const TQRect& r, const TQVariant& value) { PropertyWidget::drawViewer(p, cg, r, value.toBool() ? i18n("Yes") : i18n("No")); } -void PYesNoButton::setValue(const QVariant& value, bool emitChange) +void PYesNoButton::setValue(const TQVariant& value, bool emitChange) { - disconnect(m_edit, SIGNAL(toggled(bool)), this, SLOT(updateProperty(bool))); + disconnect(m_edit, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(updateProperty(bool))); m_edit->setDown(value.toBool()); value.toBool() ? m_edit->setText(i18n("Yes")) : m_edit->setText(i18n("No")); - connect(m_edit, SIGNAL(toggled(bool)), this, SLOT(updateProperty(bool))); + connect(m_edit, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(updateProperty(bool))); if (emitChange) emit propertyChanged(m_property, value); } |