summaryrefslogtreecommitdiffstats
path: root/kview/modules/scale/kfloatspinbox.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
commiteba47f8f0637f451e21348187591e1f1fd58ac74 (patch)
tree448f10b95c656604acc331a3236c1e59bde5c1ad /kview/modules/scale/kfloatspinbox.cpp
parentc7e8736c69373f48b0401319757c742e8607431a (diff)
downloadtdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz
tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kview/modules/scale/kfloatspinbox.cpp')
-rw-r--r--kview/modules/scale/kfloatspinbox.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kview/modules/scale/kfloatspinbox.cpp b/kview/modules/scale/kfloatspinbox.cpp
index e5ce8465..936713f6 100644
--- a/kview/modules/scale/kfloatspinbox.cpp
+++ b/kview/modules/scale/kfloatspinbox.cpp
@@ -21,7 +21,7 @@
#include "kfloatspinbox.h"
#if defined(QT_ACCESSIBILITY_SUPPORT)
-#include <qaccessible.h>
+#include <tqaccessible.h>
#endif
#include <knumvalidator.h>
@@ -37,12 +37,12 @@ int pow( int a, int b )
return ret;
}
-KFloatSpinBox::KFloatSpinBox( float minValue, float maxValue, float step, unsigned int precision, QWidget * parent, const char * name )
- : QSpinBox( parent, name )
+KFloatSpinBox::KFloatSpinBox( float minValue, float maxValue, float step, unsigned int precision, TQWidget * parent, const char * name )
+ : TQSpinBox( parent, name )
, m_doselection( true )
{
setRange( minValue, maxValue, step, precision );
- connect( this, SIGNAL( valueChanged( int ) ), this, SLOT( slotValueChanged( int ) ) );
+ connect( this, TQT_SIGNAL( valueChanged( int ) ), this, TQT_SLOT( slotValueChanged( int ) ) );
}
KFloatSpinBox::~KFloatSpinBox()
@@ -55,7 +55,7 @@ void KFloatSpinBox::setRange( float minValue, float maxValue, float step, unsign
m_min = (int)( minValue * m_factor );
m_max = (int)( maxValue * m_factor );
m_step = (int)( step * m_factor );
- QSpinBox::setRange( m_min, m_max );
+ TQSpinBox::setRange( m_min, m_max );
setSteps( m_step, m_step * 10 );
if( precision == 0 )
setValidator( new KIntValidator( m_min, m_max, this, 10, "KFloatValidator::KIntValidator" ) );
@@ -65,14 +65,14 @@ void KFloatSpinBox::setRange( float minValue, float maxValue, float step, unsign
float KFloatSpinBox::value() const
{
- float ret = (float)QSpinBox::value() / m_factor;
+ float ret = (float)TQSpinBox::value() / m_factor;
kdDebug( 4630 ) << ret << endl;
return ret;
}
void KFloatSpinBox::setValue( float value )
{
- QSpinBox::setValue( (int)( value * m_factor ) );
+ TQSpinBox::setValue( (int)( value * m_factor ) );
}
void KFloatSpinBox::setValueBlocking( float value )
@@ -84,7 +84,7 @@ void KFloatSpinBox::setValueBlocking( float value )
m_doselection = true;
}
-QString KFloatSpinBox::mapValueToText( int value )
+TQString KFloatSpinBox::mapValueToText( int value )
{
return KGlobal::locale()->formatNumber( (float)value / (float)m_factor, 4 );
}
@@ -97,13 +97,13 @@ int KFloatSpinBox::mapTextToValue( bool * ok )
void KFloatSpinBox::valueChange()
{
if( m_doselection )
- QSpinBox::valueChange();
+ TQSpinBox::valueChange();
else
{
updateDisplay();
emit valueChanged( value() );
#if defined(QT_ACCESSIBILITY_SUPPORT)
- QAccessible::updateAccessibility( this, 0, QAccessible::ValueChanged );
+ TQAccessible::updateAccessibility( this, 0, TQAccessible::ValueChanged );
#endif
}
}