summaryrefslogtreecommitdiffstats
path: root/lib/widgets/propeditor/pspinbox.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /lib/widgets/propeditor/pspinbox.cpp
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-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/pspinbox.cpp')
-rw-r--r--lib/widgets/propeditor/pspinbox.cpp34
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));
}
}