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/stringinputfield.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/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; |