diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
commit | d6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch) | |
tree | d109539636691d7b03036ca1c0ed29dbae6577cf /lib/widgets/propeditor/pcheckbox.cpp | |
parent | 3331a47a9cad24795c7440ee8107143ce444ef34 (diff) | |
download | tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/widgets/propeditor/pcheckbox.cpp')
-rw-r--r-- | lib/widgets/propeditor/pcheckbox.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/lib/widgets/propeditor/pcheckbox.cpp b/lib/widgets/propeditor/pcheckbox.cpp index 15aacbff..3f406e4d 100644 --- a/lib/widgets/propeditor/pcheckbox.cpp +++ b/lib/widgets/propeditor/pcheckbox.cpp @@ -19,9 +19,9 @@ ***************************************************************************/ #include "pcheckbox.h" -#include <qlayout.h> -#include <qcheckbox.h> -#include <qpainter.h> +#include <tqlayout.h> +#include <tqcheckbox.h> +#include <tqpainter.h> #ifndef PURE_QT #include <klocale.h> @@ -31,37 +31,37 @@ namespace PropertyLib{ -PCheckBox::PCheckBox(MultiProperty *property, QWidget *parent, const char *name) +PCheckBox::PCheckBox(MultiProperty *property, TQWidget *parent, const char *name) :PropertyWidget(property, parent, name) { - QHBoxLayout *l = new QHBoxLayout(this, 0, 0); - m_edit = new QCheckBox(this); - m_edit->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding); + TQHBoxLayout *l = new TQHBoxLayout(this, 0, 0); + m_edit = new TQCheckBox(this); + 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 PCheckBox::value() const +TQVariant PCheckBox::value() const { - return QVariant(m_edit->isChecked()); + return TQVariant(m_edit->isChecked()); } -void PCheckBox::setValue(const QVariant &value, bool emitChange) +void PCheckBox::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->setChecked(value.toBool()); - 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); } void PCheckBox::updateProperty(bool val) { - emit propertyChanged(m_property, QVariant(val)); + emit propertyChanged(m_property, TQVariant(val)); } -void PCheckBox::drawViewer(QPainter *p, const QColorGroup &cg, const QRect &r, const QVariant &value) +void PCheckBox::drawViewer(TQPainter *p, const TQColorGroup &cg, const TQRect &r, const TQVariant &value) { p->setBrush(cg.background()); p->setPen(Qt::NoPen); |