diff options
Diffstat (limited to 'lib/widgets/propeditor/pspinbox.cpp')
-rw-r--r-- | lib/widgets/propeditor/pspinbox.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
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 <limits.h> -#include <qspinbox.h> -#include <qlayout.h> +#include <tqspinbox.h> +#include <tqlayout.h> 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)); } } |