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/enuminputfield.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/enuminputfield.cpp')
-rw-r--r-- | kode/kwsdl/kung/enuminputfield.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kode/kwsdl/kung/enuminputfield.cpp b/kode/kwsdl/kung/enuminputfield.cpp index 61ff328d6..f290803b6 100644 --- a/kode/kwsdl/kung/enuminputfield.cpp +++ b/kode/kwsdl/kung/enuminputfield.cpp @@ -25,7 +25,7 @@ #include "enuminputfield.h" -EnumInputField::EnumInputField( const QString &name, const Schema::SimpleType *type ) +EnumInputField::EnumInputField( const TQString &name, const Schema::SimpleType *type ) : SimpleInputField( name, type ) { mEnums = type->facetEnums(); @@ -33,7 +33,7 @@ EnumInputField::EnumInputField( const QString &name, const Schema::SimpleType *t mValue = mEnums.first(); } -void EnumInputField::setXMLData( const QDomElement &element ) +void EnumInputField::setXMLData( const TQDomElement &element ) { if ( mName != element.tagName() ) { qDebug( "EnumInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); @@ -43,35 +43,35 @@ void EnumInputField::setXMLData( const QDomElement &element ) setData( element.text() ); } -void EnumInputField::xmlData( QDomDocument &document, QDomElement &parent ) +void EnumInputField::xmlData( TQDomDocument &document, TQDomElement &parent ) { - QDomElement element = document.createElement( mName ); + TQDomElement element = document.createElement( mName ); element.setAttribute( "xsi:type", "xsd:string" ); - QDomText text = document.createTextNode( data() ); + TQDomText text = document.createTextNode( data() ); element.appendChild( text ); parent.appendChild( element ); } -void EnumInputField::setData( const QString &data ) +void EnumInputField::setData( const TQString &data ) { mValue = data; } -QString EnumInputField::data() const +TQString EnumInputField::data() const { return mValue; } -QWidget *EnumInputField::createWidget( QWidget *parent ) +TQWidget *EnumInputField::createWidget( TQWidget *parent ) { mInputWidget = new KComboBox( parent ); mInputWidget->insertStringList( mEnums ); mInputWidget->setCurrentItem( mEnums.findIndex( mValue ) ); - connect( mInputWidget, SIGNAL( activated( int ) ), - this, SLOT( inputChanged( int ) ) ); + connect( mInputWidget, TQT_SIGNAL( activated( int ) ), + this, TQT_SLOT( inputChanged( int ) ) ); return mInputWidget; } |