summaryrefslogtreecommitdiffstats
path: root/kode/kwsdl/kung/doubleinputfield.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kode/kwsdl/kung/doubleinputfield.cpp')
-rw-r--r--kode/kwsdl/kung/doubleinputfield.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kode/kwsdl/kung/doubleinputfield.cpp b/kode/kwsdl/kung/doubleinputfield.cpp
index 4c19abf9..78f73bcd 100644
--- a/kode/kwsdl/kung/doubleinputfield.cpp
+++ b/kode/kwsdl/kung/doubleinputfield.cpp
@@ -25,13 +25,13 @@
#include "doubleinputfield.h"
-DoubleInputField::DoubleInputField( const QString &name, const QString &typeName, const Schema::SimpleType *type )
+DoubleInputField::DoubleInputField( const TQString &name, const TQString &typeName, const Schema::SimpleType *type )
: SimpleInputField( name, type ),
mValue( 0 ), mTypeName( typeName )
{
}
-void DoubleInputField::setXMLData( const QDomElement &element )
+void DoubleInputField::setXMLData( const TQDomElement &element )
{
if ( mName != element.tagName() ) {
qDebug( "DoubleInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() );
@@ -41,27 +41,27 @@ void DoubleInputField::setXMLData( const QDomElement &element )
setData( element.text() );
}
-void DoubleInputField::xmlData( QDomDocument &document, QDomElement &parent )
+void DoubleInputField::xmlData( TQDomDocument &document, TQDomElement &parent )
{
- QDomElement element = document.createElement( mName );
+ TQDomElement element = document.createElement( mName );
element.setAttribute( "xsi:type", "xsd:" + mTypeName );
- QDomText text = document.createTextNode( data() );
+ TQDomText text = document.createTextNode( data() );
element.appendChild( text );
parent.appendChild( element );
}
-void DoubleInputField::setData( const QString &data )
+void DoubleInputField::setData( const TQString &data )
{
mValue = data.toDouble();
}
-QString DoubleInputField::data() const
+TQString DoubleInputField::data() const
{
- return QString::number( mValue );
+ return TQString::number( mValue );
}
-QWidget *DoubleInputField::createWidget( QWidget *parent )
+TQWidget *DoubleInputField::createWidget( TQWidget *parent )
{
mInputWidget = new KDoubleSpinBox( parent );
@@ -78,8 +78,8 @@ QWidget *DoubleInputField::createWidget( QWidget *parent )
mInputWidget->setValue( mValue );
- connect( mInputWidget, SIGNAL( valueChanged( double ) ),
- this, SLOT( inputChanged( double ) ) );
+ connect( mInputWidget, TQT_SIGNAL( valueChanged( double ) ),
+ this, TQT_SLOT( inputChanged( double ) ) );
return mInputWidget;
}