From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kode/kwsdl/kung/pageinputfield.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'kode/kwsdl/kung/pageinputfield.cpp') diff --git a/kode/kwsdl/kung/pageinputfield.cpp b/kode/kwsdl/kung/pageinputfield.cpp index 36a5b02da..956e54bfc 100644 --- a/kode/kwsdl/kung/pageinputfield.cpp +++ b/kode/kwsdl/kung/pageinputfield.cpp @@ -19,14 +19,14 @@ Boston, MA 02110-1301, USA. */ -#include -#include +#include +#include #include "inputfieldfactory.h" #include "pageinputfield.h" -PageInputField::PageInputField( const QString &name, const KWSDL::Message &message ) +PageInputField::PageInputField( const TQString &name, const KWSDL::Message &message ) : InputField( name ), mMessage( message ) { @@ -42,16 +42,16 @@ PageInputField::PageInputField( const QString &name, const KWSDL::Message &messa } } -void PageInputField::setXMLData( const QDomElement &element ) +void PageInputField::setXMLData( const TQDomElement &element ) { if ( mName != element.tagName() ) { qDebug( "PageInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); return; } - QDomNode node = element.firstChild(); + TQDomNode node = element.firstChild(); while ( !node.isNull() ) { - QDomElement child = node.toElement(); + TQDomElement child = node.toElement(); if ( !child.isNull() ) { InputField *field = childField( child.tagName() ); if ( !field ) { @@ -65,9 +65,9 @@ void PageInputField::setXMLData( const QDomElement &element ) } } -void PageInputField::xmlData( QDomDocument &document, QDomElement &parent ) +void PageInputField::xmlData( TQDomDocument &document, TQDomElement &parent ) { - QDomElement element = document.createElement( "ns1:" + mName ); + TQDomElement element = document.createElement( "ns1:" + mName ); InputField::List::Iterator it; for ( it = mFields.begin(); it != mFields.end(); ++it ) @@ -76,24 +76,24 @@ void PageInputField::xmlData( QDomDocument &document, QDomElement &parent ) parent.appendChild( element ); } -void PageInputField::setData( const QString& ) +void PageInputField::setData( const TQString& ) { } -QString PageInputField::data() const +TQString PageInputField::data() const { - return QString(); + return TQString(); } -QWidget *PageInputField::createWidget( QWidget *parent ) +TQWidget *PageInputField::createWidget( TQWidget *parent ) { - QWidget *mInputWidget = new QWidget( parent, "PageInputWidget" ); - QGridLayout *layout = new QGridLayout( mInputWidget, 2, 2, 11, 6 ); + TQWidget *mInputWidget = new TQWidget( parent, "PageInputWidget" ); + TQGridLayout *layout = new TQGridLayout( mInputWidget, 2, 2, 11, 6 ); InputField::List::Iterator it; int row = 0; for ( it = mFields.begin(); it != mFields.end(); ++it, ++row ) { - QLabel *label = new QLabel( (*it)->name(), mInputWidget ); + TQLabel *label = new TQLabel( (*it)->name(), mInputWidget ); label->setAlignment( Qt::AlignTop ); layout->addWidget( label, row, 0 ); layout->addWidget( (*it)->createWidget( mInputWidget ), row, 1 ); -- cgit v1.2.1