diff options
| author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 | 
|---|---|---|
| committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 | 
| commit | 48d4a26399959121f33d2bc3bfe51c7827b654fc (patch) | |
| tree | 5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /lib/widgets/propeditor/pdoublenuminput.cpp | |
| parent | 7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff) | |
| download | tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.tar.gz tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.zip | |
TQt4 port kdevelop
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/widgets/propeditor/pdoublenuminput.cpp')
| -rw-r--r-- | lib/widgets/propeditor/pdoublenuminput.cpp | 14 | 
1 files changed, 7 insertions, 7 deletions
| diff --git a/lib/widgets/propeditor/pdoublenuminput.cpp b/lib/widgets/propeditor/pdoublenuminput.cpp index df6b3bcb..742180b4 100644 --- a/lib/widgets/propeditor/pdoublenuminput.cpp +++ b/lib/widgets/propeditor/pdoublenuminput.cpp @@ -22,7 +22,7 @@  #ifndef PURE_QT  #include <knuminput.h>  #else -#include "qfloatinput.h" +#include "tqfloatinput.h"  #endif  #include <limits.h> @@ -31,19 +31,19 @@  namespace PropertyLib{ -PDoubleNumInput::PDoubleNumInput(MultiProperty *property, TQWidget *parent, const char *name) -    :PropertyWidget(property, parent, name) +PDoubleNumInput::PDoubleNumInput(MultiProperty *property, TQWidget *tqparent, const char *name) +    :PropertyWidget(property, tqparent, name)  {      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(TQString::null); +    m_edit->setLabel(TQString());      connect(m_edit, TQT_SIGNAL(valueChanged(double)), this, TQT_SLOT(updateProperty(double)));  #else -    m_edit = new QFloatInput(-999999, 999999, 0.01, 2, this ); +    m_edit = new TQFloatInput(-999999, 999999, 0.01, 2, this );      connect(m_edit, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(updateProperty(int)));  #endif -    m_edit->setSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding); +    m_edit->tqsetSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding);  /*    m_edit->setMinValue(-999999999);      m_edit->setMaxValue(+999999999);      m_edit->setPrecision(2);*/ @@ -78,7 +78,7 @@ void PDoubleNumInput::updateProperty(double val)  void PDoubleNumInput::updateProperty(int val)  {  #ifdef PURE_QT -    TQString format = TQString("%.%1f").arg( m_edit->digits() ); +    TQString format = TQString("%.%1f").tqarg( m_edit->digits() );      TQString strVal = TQString().sprintf(format.latin1(),                                         (val/(float)pow(m_edit->digits(),10)) );      emit propertyChanged(m_property, TQVariant(strVal)); | 
