summaryrefslogtreecommitdiffstats
path: root/kode/kwsdl/kung/enuminputfield.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kode/kwsdl/kung/enuminputfield.cpp')
-rw-r--r--kode/kwsdl/kung/enuminputfield.cpp20
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;
}