summaryrefslogtreecommitdiffstats
path: root/lib/widgets/propeditor/qfloatinput.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/qfloatinput.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/qfloatinput.cpp')
-rw-r--r--lib/widgets/propeditor/qfloatinput.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/widgets/propeditor/qfloatinput.cpp b/lib/widgets/propeditor/qfloatinput.cpp
index f1bde4cd..a8522105 100644
--- a/lib/widgets/propeditor/qfloatinput.cpp
+++ b/lib/widgets/propeditor/qfloatinput.cpp
@@ -23,23 +23,23 @@
#include <math.h>
QFloatInput::QFloatInput( int min, int max, float step, int digits,
- QWidget *parent, const char *name )
- : QSpinBox( (int) (min*pow(digits,10)),
+ TQWidget *parent, const char *name )
+ : TQSpinBox( (int) (min*pow(digits,10)),
(int) (max*pow(digits,10)),
(int) (step*pow(digits,10)), parent, name ),
m_digits( digits )
{
setValue( (int) (min*pow(digits,10)) );
delete validator();
- QDoubleValidator* validator =
- new QDoubleValidator( min, max, m_digits, this );
+ TQDoubleValidator* validator =
+ new TQDoubleValidator( min, max, m_digits, this );
setValidator( validator );
}
-QString QFloatInput::mapValueToText( int value )
+TQString QFloatInput::mapValueToText( int value )
{
- QString format = QString("%.%1f").arg( m_digits );
- return QString().sprintf(format.latin1(),
+ TQString format = TQString("%.%1f").arg( m_digits );
+ return TQString().sprintf(format.latin1(),
(value/(float)pow(m_digits,10)) );
}