summaryrefslogtreecommitdiffstats
path: root/lib/widgets/propeditor/pdoublenuminput.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/widgets/propeditor/pdoublenuminput.cpp')
-rw-r--r--lib/widgets/propeditor/pdoublenuminput.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/lib/widgets/propeditor/pdoublenuminput.cpp b/lib/widgets/propeditor/pdoublenuminput.cpp
index aa4f72aa..df6b3bcb 100644
--- a/lib/widgets/propeditor/pdoublenuminput.cpp
+++ b/lib/widgets/propeditor/pdoublenuminput.cpp
@@ -27,23 +27,23 @@
#include <limits.h>
#include <math.h>
-#include <qlayout.h>
+#include <tqlayout.h>
namespace PropertyLib{
-PDoubleNumInput::PDoubleNumInput(MultiProperty *property, QWidget *parent, const char *name)
+PDoubleNumInput::PDoubleNumInput(MultiProperty *property, TQWidget *parent, const char *name)
:PropertyWidget(property, parent, name)
{
- QHBoxLayout *l = new QHBoxLayout(this, 0, 0);
+ TQHBoxLayout *l = new TQHBoxLayout(this, 0, 0);
#ifndef PURE_QT
m_edit = new KDoubleNumInput(-999999.0, 999999.0, 0.0, 0.01, 2, this);
- m_edit->setLabel(QString::null);
- connect(m_edit, SIGNAL(valueChanged(double)), this, SLOT(updateProperty(double)));
+ m_edit->setLabel(TQString::null);
+ connect(m_edit, TQT_SIGNAL(valueChanged(double)), this, TQT_SLOT(updateProperty(double)));
#else
m_edit = new QFloatInput(-999999, 999999, 0.01, 2, this );
- connect(m_edit, SIGNAL(valueChanged(int)), this, SLOT(updateProperty(int)));
+ connect(m_edit, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(updateProperty(int)));
#endif
- m_edit->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
+ m_edit->setSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding);
/* m_edit->setMinValue(-999999999);
m_edit->setMaxValue(+999999999);
m_edit->setPrecision(2);*/
@@ -51,21 +51,21 @@ PDoubleNumInput::PDoubleNumInput(MultiProperty *property, QWidget *parent, const
}
-QVariant PDoubleNumInput::value() const
+TQVariant PDoubleNumInput::value() const
{
- return QVariant(m_edit->value());
+ return TQVariant(m_edit->value());
}
-void PDoubleNumInput::setValue(const QVariant &value, bool emitChange)
+void PDoubleNumInput::setValue(const TQVariant &value, bool emitChange)
{
#ifndef PURE_QT
- disconnect(m_edit, SIGNAL(valueChanged(double)), this, SLOT(updateProperty(double)));
+ disconnect(m_edit, TQT_SIGNAL(valueChanged(double)), this, TQT_SLOT(updateProperty(double)));
m_edit->setValue(value.toDouble());
- connect(m_edit, SIGNAL(valueChanged(double)), this, SLOT(updateProperty(double)));
+ connect(m_edit, TQT_SIGNAL(valueChanged(double)), this, TQT_SLOT(updateProperty(double)));
#else
- 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(int(value.toDouble()*pow(m_edit->digits(),10)));
- connect(m_edit, SIGNAL(valueChanged(int)), this, SLOT(updateProperty(int)));
+ connect(m_edit, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(updateProperty(int)));
#endif
if (emitChange)
emit propertyChanged(m_property, value);
@@ -73,15 +73,15 @@ void PDoubleNumInput::setValue(const QVariant &value, bool emitChange)
void PDoubleNumInput::updateProperty(double val)
{
- emit propertyChanged(m_property, QVariant(val));
+ emit propertyChanged(m_property, TQVariant(val));
}
void PDoubleNumInput::updateProperty(int val)
{
#ifdef PURE_QT
- QString format = QString("%.%1f").arg( m_edit->digits() );
- QString strVal = QString().sprintf(format.latin1(),
+ TQString format = TQString("%.%1f").arg( m_edit->digits() );
+ TQString strVal = TQString().sprintf(format.latin1(),
(val/(float)pow(m_edit->digits(),10)) );
- emit propertyChanged(m_property, QVariant(strVal));
+ emit propertyChanged(m_property, TQVariant(strVal));
#else
Q_UNUSED(val);
#endif