diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kode/kwsdl/kung/doubleinputfield.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kode/kwsdl/kung/doubleinputfield.cpp')
-rw-r--r-- | kode/kwsdl/kung/doubleinputfield.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kode/kwsdl/kung/doubleinputfield.cpp b/kode/kwsdl/kung/doubleinputfield.cpp index 4c19abf97..78f73bcd6 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; } |