From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kode/kwsdl/kung/doubleinputfield.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'kode/kwsdl/kung/doubleinputfield.cpp') 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; } -- cgit v1.2.3