diff options
Diffstat (limited to 'kode/kwsdl/kung/complexbaseinputfield.cpp')
-rw-r--r-- | kode/kwsdl/kung/complexbaseinputfield.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/kode/kwsdl/kung/complexbaseinputfield.cpp b/kode/kwsdl/kung/complexbaseinputfield.cpp index 26434940a..80f755817 100644 --- a/kode/kwsdl/kung/complexbaseinputfield.cpp +++ b/kode/kwsdl/kung/complexbaseinputfield.cpp @@ -19,9 +19,9 @@ Boston, MA 02110-1301, USA. */ -#include <qgroupbox.h> -#include <qlabel.h> -#include <qlayout.h> +#include <tqgroupbox.h> +#include <tqlabel.h> +#include <tqlayout.h> #include <schema/complextype.h> @@ -29,7 +29,7 @@ #include "complexbaseinputfield.h" -ComplexBaseInputField::ComplexBaseInputField( const QString &name, const Schema::ComplexType *type ) +ComplexBaseInputField::ComplexBaseInputField( const TQString &name, const Schema::ComplexType *type ) : ComplexInputField( name, type ) { Schema::Element::List elements = type->elements(); @@ -56,7 +56,7 @@ ComplexBaseInputField::ComplexBaseInputField( const QString &name, const Schema: } } -void ComplexBaseInputField::setXMLData( const QDomElement &element ) +void ComplexBaseInputField::setXMLData( const TQDomElement &element ) { if ( mName != element.tagName() ) { qDebug( "ComplexBaseInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); @@ -68,9 +68,9 @@ void ComplexBaseInputField::setXMLData( const QDomElement &element ) InputField *field = childField( "item" ); field->setXMLData( element ); } else { - 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 ) { @@ -85,10 +85,10 @@ void ComplexBaseInputField::setXMLData( const QDomElement &element ) } // attributes - QDomNamedNodeMap nodes = element.attributes(); + TQDomNamedNodeMap nodes = element.attributes(); for ( uint i = 0; i < nodes.count(); ++i ) { - QDomNode node = nodes.item( i ); - QDomAttr attr = node.toAttr(); + TQDomNode node = nodes.item( i ); + TQDomAttr attr = node.toAttr(); InputField *field = childField( attr.name() ); if ( !field ) { @@ -99,9 +99,9 @@ void ComplexBaseInputField::setXMLData( const QDomElement &element ) } } -void ComplexBaseInputField::xmlData( QDomDocument &document, QDomElement &parent ) +void ComplexBaseInputField::xmlData( TQDomDocument &document, TQDomElement &parent ) { - QDomElement element = document.createElement( mName ); + TQDomElement element = document.createElement( mName ); Schema::Element::List elements = mType->elements(); Schema::Element::List::ConstIterator elemIt; @@ -128,25 +128,25 @@ void ComplexBaseInputField::xmlData( QDomDocument &document, QDomElement &parent parent.appendChild( element ); } -void ComplexBaseInputField::setData( const QString& ) +void ComplexBaseInputField::setData( const TQString& ) { } -QString ComplexBaseInputField::data() const +TQString ComplexBaseInputField::data() const { - return QString(); + return TQString(); } -QWidget *ComplexBaseInputField::createWidget( QWidget *parent ) +TQWidget *ComplexBaseInputField::createWidget( TQWidget *parent ) { - QGroupBox *inputWidget = new QGroupBox( mName, parent ); + TQGroupBox *inputWidget = new TQGroupBox( mName, parent ); inputWidget->setColumnLayout( 0, Qt::Horizontal ); - QGridLayout *layout = new QGridLayout( inputWidget->layout(), 2, 2, 6 ); + TQGridLayout *layout = new TQGridLayout( inputWidget->layout(), 2, 2, 6 ); InputField::List::Iterator it; int row = 0; for ( it = mFields.begin(); it != mFields.end(); ++it, ++row ) { - QLabel *label = new QLabel( (*it)->name(), inputWidget ); + TQLabel *label = new TQLabel( (*it)->name(), inputWidget ); layout->addWidget( label, row, 0 ); layout->addWidget( (*it)->createWidget( inputWidget ), row, 1 ); } |