summaryrefslogtreecommitdiffstats
path: root/lib/widgets/propeditor/qfloatinput.cpp
diff options
context:
space:
mode:
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 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));
}