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/integerinputfield.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/integerinputfield.cpp')
-rw-r--r-- | kode/kwsdl/kung/integerinputfield.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kode/kwsdl/kung/integerinputfield.cpp b/kode/kwsdl/kung/integerinputfield.cpp index a06136823..022ec0d84 100644 --- a/kode/kwsdl/kung/integerinputfield.cpp +++ b/kode/kwsdl/kung/integerinputfield.cpp @@ -27,13 +27,13 @@ #include "integerinputfield.h" -IntegerInputField::IntegerInputField( const QString &name, const QString &typeName, const Schema::SimpleType *type ) +IntegerInputField::IntegerInputField( const TQString &name, const TQString &typeName, const Schema::SimpleType *type ) : SimpleInputField( name, type ), mValue( 0 ), mTypeName( typeName ) { } -void IntegerInputField::setXMLData( const QDomElement &element ) +void IntegerInputField::setXMLData( const TQDomElement &element ) { if ( mName != element.tagName() ) { qDebug( "IntegerInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); @@ -43,27 +43,27 @@ void IntegerInputField::setXMLData( const QDomElement &element ) setData( element.text() ); } -void IntegerInputField::xmlData( QDomDocument &document, QDomElement &parent ) +void IntegerInputField::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 IntegerInputField::setData( const QString &data ) +void IntegerInputField::setData( const TQString &data ) { mValue = data.toInt(); } -QString IntegerInputField::data() const +TQString IntegerInputField::data() const { - return QString::number( mValue ); + return TQString::number( mValue ); } -QWidget *IntegerInputField::createWidget( QWidget *parent ) +TQWidget *IntegerInputField::createWidget( TQWidget *parent ) { mInputWidget = new KIntSpinBox( parent ); @@ -116,8 +116,8 @@ QWidget *IntegerInputField::createWidget( QWidget *parent ) mInputWidget->setValue( mValue ); - connect( mInputWidget, SIGNAL( valueChanged( int ) ), - this, SLOT( inputChanged( int ) ) ); + connect( mInputWidget, TQT_SIGNAL( valueChanged( int ) ), + this, TQT_SLOT( inputChanged( int ) ) ); return mInputWidget; } |