From d6f8bbb45b267065a6907e71ff9c98bb6d161241 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:56:07 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- lib/widgets/propeditor/pspinbox.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'lib/widgets/propeditor/pspinbox.cpp') diff --git a/lib/widgets/propeditor/pspinbox.cpp b/lib/widgets/propeditor/pspinbox.cpp index 0171adfb..755041c1 100644 --- a/lib/widgets/propeditor/pspinbox.cpp +++ b/lib/widgets/propeditor/pspinbox.cpp @@ -21,49 +21,49 @@ #include -#include -#include +#include +#include namespace PropertyLib{ -PSpinBox::PSpinBox(MultiProperty *property, QWidget *parent, const char *name) +PSpinBox::PSpinBox(MultiProperty *property, TQWidget *parent, const char *name) :PropertyWidget(property, parent, name) { - QHBoxLayout *l = new QHBoxLayout(this, 0, 0); - m_edit = new QSpinBox(INT_MIN, INT_MAX, 1, this); - m_edit->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding); + TQHBoxLayout *l = new TQHBoxLayout(this, 0, 0); + m_edit = new TQSpinBox(INT_MIN, INT_MAX, 1, this); + m_edit->setSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding); l->addWidget(m_edit); - connect(m_edit, SIGNAL(valueChanged(int)), this, SLOT(updateProperty(int))); + connect(m_edit, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(updateProperty(int))); } -PSpinBox::PSpinBox(MultiProperty *property, int minValue, int maxValue, int step, QWidget *parent, const char *name) +PSpinBox::PSpinBox(MultiProperty *property, int minValue, int maxValue, int step, TQWidget *parent, const char *name) :PropertyWidget(property, parent, name) { - QHBoxLayout *l = new QHBoxLayout(this, 0, 0); - m_edit = new QSpinBox(minValue, maxValue, step, this); + TQHBoxLayout *l = new TQHBoxLayout(this, 0, 0); + m_edit = new TQSpinBox(minValue, maxValue, step, this); l->addWidget(m_edit); - connect(m_edit, SIGNAL(valueChanged(int)), this, SLOT(updateProperty(int))); + connect(m_edit, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(updateProperty(int))); } -QVariant PSpinBox::value() const +TQVariant PSpinBox::value() const { - return QVariant(m_edit->cleanText().toInt()); + return TQVariant(m_edit->cleanText().toInt()); } -void PSpinBox::setValue(const QVariant &value, bool emitChange) +void PSpinBox::setValue(const TQVariant &value, bool emitChange) { - disconnect(m_edit, SIGNAL(valueChanged(int)), this, SLOT(updateProperty(int))); + disconnect(m_edit, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(updateProperty(int))); m_edit->setValue(value.toInt()); - connect(m_edit, SIGNAL(valueChanged(int)), this, SLOT(updateProperty(int))); + connect(m_edit, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(updateProperty(int))); if (emitChange) emit propertyChanged(m_property, value); } void PSpinBox::updateProperty(int val) { - emit propertyChanged(m_property, QVariant(val)); + emit propertyChanged(m_property, TQVariant(val)); } } -- cgit v1.2.1