summaryrefslogtreecommitdiffstats
path: root/kode/kwsdl/kung/boolinputfield.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kode/kwsdl/kung/boolinputfield.cpp')
-rw-r--r--kode/kwsdl/kung/boolinputfield.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kode/kwsdl/kung/boolinputfield.cpp b/kode/kwsdl/kung/boolinputfield.cpp
index 69e0e8e04..e3eb3eef1 100644
--- a/kode/kwsdl/kung/boolinputfield.cpp
+++ b/kode/kwsdl/kung/boolinputfield.cpp
@@ -19,17 +19,17 @@
Boston, MA 02110-1301, USA.
*/
-#include <qcheckbox.h>
+#include <tqcheckbox.h>
#include "boolinputfield.h"
-BoolInputField::BoolInputField( const QString &name, const Schema::SimpleType *type )
+BoolInputField::BoolInputField( const TQString &name, const Schema::SimpleType *type )
: SimpleInputField( name, type ),
mValue( false )
{
}
-void BoolInputField::setXMLData( const QDomElement &element )
+void BoolInputField::setXMLData( const TQDomElement &element )
{
if ( mName != element.tagName() ) {
qDebug( "BoolInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() );
@@ -39,34 +39,34 @@ void BoolInputField::setXMLData( const QDomElement &element )
setData( element.text() );
}
-void BoolInputField::xmlData( QDomDocument &document, QDomElement &parent )
+void BoolInputField::xmlData( TQDomDocument &document, TQDomElement &parent )
{
- QDomElement element = document.createElement( mName );
+ TQDomElement element = document.createElement( mName );
element.setAttribute( "xsi:type", "xsd:boolean" );
- QDomText text = document.createTextNode( data() );
+ TQDomText text = document.createTextNode( data() );
element.appendChild( text );
parent.appendChild( element );
}
-void BoolInputField::setData( const QString &data )
+void BoolInputField::setData( const TQString &data )
{
mValue = ( data.lower() == "true" );
}
-QString BoolInputField::data() const
+TQString BoolInputField::data() const
{
return ( mValue ? "true" : "false" );
}
-QWidget *BoolInputField::createWidget( QWidget *parent )
+TQWidget *BoolInputField::createWidget( TQWidget *parent )
{
- mInputWidget = new QCheckBox( parent );
+ mInputWidget = new TQCheckBox( parent );
mInputWidget->setChecked( mValue );
- connect( mInputWidget, SIGNAL( toggled( bool ) ),
- this, SLOT( inputChanged( bool ) ) );
+ connect( mInputWidget, TQT_SIGNAL( toggled( bool ) ),
+ this, TQT_SLOT( inputChanged( bool ) ) );
return mInputWidget;
}