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/qfloatinput.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/qfloatinput.cpp')
-rw-r--r-- | lib/widgets/propeditor/qfloatinput.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/widgets/propeditor/qfloatinput.cpp b/lib/widgets/propeditor/qfloatinput.cpp index a8522105..d14ea9c7 100644 --- a/lib/widgets/propeditor/qfloatinput.cpp +++ b/lib/widgets/propeditor/qfloatinput.cpp @@ -18,15 +18,15 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301 USA */ -#include "qfloatinput.h" +#include "tqfloatinput.h" #include <math.h> -QFloatInput::QFloatInput( int min, int max, float step, int digits, - TQWidget *parent, const char *name ) +TQFloatInput::TQFloatInput( int min, int max, float step, int digits, + TQWidget *tqparent, const char *name ) : TQSpinBox( (int) (min*pow(digits,10)), (int) (max*pow(digits,10)), - (int) (step*pow(digits,10)), parent, name ), + (int) (step*pow(digits,10)), tqparent, name ), m_digits( digits ) { setValue( (int) (min*pow(digits,10)) ); @@ -36,14 +36,14 @@ QFloatInput::QFloatInput( int min, int max, float step, int digits, setValidator( validator ); } -TQString QFloatInput::mapValueToText( int value ) +TQString TQFloatInput::mapValueToText( int value ) { - TQString format = TQString("%.%1f").arg( m_digits ); + TQString format = TQString("%.%1f").tqarg( m_digits ); return TQString().sprintf(format.latin1(), (value/(float)pow(m_digits,10)) ); } -int QFloatInput::mapTextToValue( bool* ok ) +int TQFloatInput::mapTextToValue( bool* ok ) { return int(cleanText().toFloat(ok)*pow(m_digits,10)); } |