diff options
Diffstat (limited to 'kode/kwsdl/kung/listinputfield.cpp')
-rw-r--r-- | kode/kwsdl/kung/listinputfield.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/kode/kwsdl/kung/listinputfield.cpp b/kode/kwsdl/kung/listinputfield.cpp index a812df6a9..6bc1d8240 100644 --- a/kode/kwsdl/kung/listinputfield.cpp +++ b/kode/kwsdl/kung/listinputfield.cpp @@ -19,9 +19,9 @@ Boston, MA 02110-1301, USA. */ -#include <qlayout.h> -#include <qlistbox.h> -#include <qpushbutton.h> +#include <tqlayout.h> +#include <tqlistbox.h> +#include <tqpushbutton.h> #include <klocale.h> @@ -33,12 +33,12 @@ #include "listinputfield.h" -ListInputField::ListInputField( const QString &name, const QString &typeName, const Schema::SimpleType *type ) +ListInputField::ListInputField( const TQString &name, const TQString &typeName, const Schema::SimpleType *type ) : SimpleInputField( name, type ), mTypeName( typeName ) { } -void ListInputField::setXMLData( const QDomElement &element ) +void ListInputField::setXMLData( const TQDomElement &element ) { InputField::List::Iterator it; for ( it = mFields.begin(); it != mFields.end(); ++it ) { @@ -46,9 +46,9 @@ void ListInputField::setXMLData( const QDomElement &element ) } mFields.clear(); - QDomNode node = element.firstChild(); + TQDomNode node = element.firstChild(); while ( !node.isNull() ) { - QDomElement child = node.toElement(); + TQDomElement child = node.toElement(); if ( !child.isNull() ) { InputField *field = InputFieldFactory::self()->createField( name(), mTypeName ); if ( field ) { @@ -62,7 +62,7 @@ void ListInputField::setXMLData( const QDomElement &element ) } } -void ListInputField::xmlData( QDomDocument &document, QDomElement &parent ) +void ListInputField::xmlData( TQDomDocument &document, TQDomElement &parent ) { InputField::List::Iterator it; for ( it = mFields.begin(); it != mFields.end(); ++it ) { @@ -70,16 +70,16 @@ void ListInputField::xmlData( QDomDocument &document, QDomElement &parent ) } } -void ListInputField::setData( const QString& ) +void ListInputField::setData( const TQString& ) { } -QString ListInputField::data() const +TQString ListInputField::data() const { - return QString(); + return TQString(); } -QWidget *ListInputField::createWidget( QWidget *parent ) +TQWidget *ListInputField::createWidget( TQWidget *parent ) { mInputWidget = new ListWidget( this, name(), mTypeName, parent ); @@ -87,27 +87,27 @@ QWidget *ListInputField::createWidget( QWidget *parent ) } -ListWidget::ListWidget( InputField *parentField, const QString &name, const QString &type, QWidget *parent ) - : QWidget( parent ), +ListWidget::ListWidget( InputField *parentField, const TQString &name, const TQString &type, TQWidget *parent ) + : TQWidget( parent ), mParentField( parentField ), mName( name ), mType( type ) { - QGridLayout *layout = new QGridLayout( this, 4, 2, 11, 6 ); + TQGridLayout *layout = new TQGridLayout( this, 4, 2, 11, 6 ); - mView = new QListBox( this ); + mView = new TQListBox( this ); layout->addMultiCellWidget( mView, 0, 3, 0, 0 ); - mAddButton = new QPushButton( i18n( "Add" ), this ); + mAddButton = new TQPushButton( i18n( "Add" ), this ); layout->addWidget( mAddButton, 0, 1 ); - mEditButton = new QPushButton( i18n( "Edit..." ), this ); + mEditButton = new TQPushButton( i18n( "Edit..." ), this ); layout->addWidget( mEditButton, 1, 1 ); - mRemoveButton = new QPushButton( i18n( "Remove" ), this ); + mRemoveButton = new TQPushButton( i18n( "Remove" ), this ); layout->addWidget( mRemoveButton, 2, 1 ); - connect( mAddButton, SIGNAL( clicked() ), SLOT( add() ) ); - connect( mEditButton, SIGNAL( clicked() ), SLOT( edit() ) ); - connect( mRemoveButton, SIGNAL( clicked() ), SLOT( remove() ) ); + connect( mAddButton, TQT_SIGNAL( clicked() ), TQT_SLOT( add() ) ); + connect( mEditButton, TQT_SIGNAL( clicked() ), TQT_SLOT( edit() ) ); + connect( mRemoveButton, TQT_SIGNAL( clicked() ), TQT_SLOT( remove() ) ); update(); } |