diff options
Diffstat (limited to 'kode/kwsdl/kung/stringinputfield.cpp')
-rw-r--r-- | kode/kwsdl/kung/stringinputfield.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/kode/kwsdl/kung/stringinputfield.cpp b/kode/kwsdl/kung/stringinputfield.cpp index e0dc10ccc..390c5bc1b 100644 --- a/kode/kwsdl/kung/stringinputfield.cpp +++ b/kode/kwsdl/kung/stringinputfield.cpp @@ -19,20 +19,20 @@ Boston, MA 02110-1301, USA. */ -#include <qlineedit.h> -#include <qvalidator.h> +#include <tqlineedit.h> +#include <tqvalidator.h> #include <schema/simpletype.h> #include "stringinputfield.h" -StringInputField::StringInputField( const QString &name, const QString &typeName, const Schema::SimpleType *type ) +StringInputField::StringInputField( const TQString &name, const TQString &typeName, const Schema::SimpleType *type ) : SimpleInputField( name, type ), mTypeName( typeName ) { } -void StringInputField::setXMLData( const QDomElement &element ) +void StringInputField::setXMLData( const TQDomElement &element ) { if ( mName != element.tagName() ) { qDebug( "StringInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); @@ -42,36 +42,36 @@ void StringInputField::setXMLData( const QDomElement &element ) setData( element.text() ); } -void StringInputField::xmlData( QDomDocument &document, QDomElement &parent ) +void StringInputField::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 StringInputField::setData( const QString &data ) +void StringInputField::setData( const TQString &data ) { mValue = data; } -QString StringInputField::data() const +TQString StringInputField::data() const { return mValue; } -QWidget *StringInputField::createWidget( QWidget *parent ) +TQWidget *StringInputField::createWidget( TQWidget *parent ) { - mInputWidget = new QLineEdit( parent ); + mInputWidget = new TQLineEdit( parent ); if ( mType ) { - if ( mType->facetType() & Schema::SimpleType::LENGTH ) // TODO: using QValidator here? + if ( mType->facetType() & Schema::SimpleType::LENGTH ) // TODO: using TQValidator here? mInputWidget->setMaxLength( mType->facetLength() ); if ( mType->facetType() & Schema::SimpleType::MINLEN ) { - // TODO: using QValidator here? + // TODO: using TQValidator here? // mInputWidget->setMaxLength( type->facetMinimumLength() ); } @@ -79,18 +79,18 @@ QWidget *StringInputField::createWidget( QWidget *parent ) mInputWidget->setMaxLength( mType->facetMaximumLength() ); if ( mType->facetType() & Schema::SimpleType::PATTERN ) - mInputWidget->setValidator( new QRegExpValidator( mType->facetPattern(), mInputWidget ) ); + mInputWidget->setValidator( new TQRegExpValidator( mType->facetPattern(), mInputWidget ) ); } mInputWidget->setText( mValue ); - connect( mInputWidget, SIGNAL( textChanged( const QString& ) ), - this, SLOT( inputChanged( const QString& ) ) ); + connect( mInputWidget, TQT_SIGNAL( textChanged( const TQString& ) ), + this, TQT_SLOT( inputChanged( const TQString& ) ) ); return mInputWidget; } -void StringInputField::inputChanged( const QString &text ) +void StringInputField::inputChanged( const TQString &text ) { mValue = text; |