summaryrefslogtreecommitdiffstats
path: root/kode/kwsdl/kung/complexbaseinputfield.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/complexbaseinputfield.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/complexbaseinputfield.cpp')
-rw-r--r--kode/kwsdl/kung/complexbaseinputfield.cpp38
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 );
}