summaryrefslogtreecommitdiffstats
path: root/kode/kwsdl/kung/pageinputfield.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/pageinputfield.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/pageinputfield.cpp')
-rw-r--r--kode/kwsdl/kung/pageinputfield.cpp30
1 files changed, 15 insertions, 15 deletions
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 <qlabel.h>
-#include <qlayout.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
#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 );