summaryrefslogtreecommitdiffstats
path: root/kode/kwsdl/kung/dateinputfield.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/dateinputfield.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/dateinputfield.cpp')
-rw-r--r--kode/kwsdl/kung/dateinputfield.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kode/kwsdl/kung/dateinputfield.cpp b/kode/kwsdl/kung/dateinputfield.cpp
index ff60da20f..b38d46b14 100644
--- a/kode/kwsdl/kung/dateinputfield.cpp
+++ b/kode/kwsdl/kung/dateinputfield.cpp
@@ -23,13 +23,13 @@
#include "dateinputfield.h"
-DateInputField::DateInputField( const QString &name, const Schema::SimpleType *type )
+DateInputField::DateInputField( const TQString &name, const Schema::SimpleType *type )
: SimpleInputField( name, type ),
- mValue( QDate::currentDate() )
+ mValue( TQDate::currentDate() )
{
}
-void DateInputField::setXMLData( const QDomElement &element )
+void DateInputField::setXMLData( const TQDomElement &element )
{
if ( mName != element.tagName() ) {
qDebug( "DateInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() );
@@ -39,39 +39,39 @@ void DateInputField::setXMLData( const QDomElement &element )
setData( element.text() );
}
-void DateInputField::xmlData( QDomDocument &document, QDomElement &parent )
+void DateInputField::xmlData( TQDomDocument &document, TQDomElement &parent )
{
- QDomElement element = document.createElement( mName );
+ TQDomElement element = document.createElement( mName );
element.setAttribute( "xsi:type", "xsd:date" );
- QDomText text = document.createTextNode( data() );
+ TQDomText text = document.createTextNode( data() );
element.appendChild( text );
parent.appendChild( element );
}
-void DateInputField::setData( const QString &data )
+void DateInputField::setData( const TQString &data )
{
- mValue = QDate::fromString( data, Qt::ISODate );
+ mValue = TQDate::fromString( data, Qt::ISODate );
}
-QString DateInputField::data() const
+TQString DateInputField::data() const
{
return mValue.toString( Qt::ISODate );
}
-QWidget *DateInputField::createWidget( QWidget *parent )
+TQWidget *DateInputField::createWidget( TQWidget *parent )
{
mInputWidget = new KDatePicker( parent );
mInputWidget->setDate( mValue );
- connect( mInputWidget, SIGNAL( dateChanged( QDate ) ),
- this, SLOT( inputChanged( QDate ) ) );
+ connect( mInputWidget, TQT_SIGNAL( dateChanged( TQDate ) ),
+ this, TQT_SLOT( inputChanged( TQDate ) ) );
return mInputWidget;
}
-void DateInputField::inputChanged( QDate date )
+void DateInputField::inputChanged( TQDate date )
{
mValue = date;