summaryrefslogtreecommitdiffstats
path: root/kode/kwsdl/kung/listinputfield.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kode/kwsdl/kung/listinputfield.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-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/listinputfield.cpp')
-rw-r--r--kode/kwsdl/kung/listinputfield.cpp44
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();
}