From a08aff328d4393031d5ba7d622c2b05705a89d73 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Wed, 04 Jul 2007 11:23:42 +0000 Subject: initial public commit of qt4 port --- (limited to 'kabc/field.cpp') diff --git a/kabc/field.cpp b/kabc/field.cpp index 7c6d7a9..203f696 100644 --- a/kabc/field.cpp +++ b/kabc/field.cpp @@ -33,6 +33,8 @@ $Id$ #include "field.h" #include "resource.h" +//Added by qt3to4: +#include using namespace KABC; @@ -377,7 +379,7 @@ bool Field::setValue( KABC::Addressee &a, const QString &value ) // But Qt::IsoDate and QDate::fromString was not specified. Do I have the wrong QT version ? { QDate dt = KGlobal::locale()->readDate( value, "%Y-%m-%d"); // = Qt::ISODate - a.setBirthday(dt); + a.setBirthday((QDateTime)dt); } return true; case FieldImpl::CustomField: @@ -493,7 +495,7 @@ void Field::saveFields( const QString &identifier, void Field::saveFields( KConfig *cfg, const QString &identifier, const Field::List &fields ) { - QValueList fieldIds; + Q3ValueList fieldIds; //US // qDebug("Field::saveFields to %s %s", cfg->getFileName().latin1(), identifier.latin1()); @@ -533,14 +535,14 @@ Field::List Field::restoreFields( const QString &identifier ) Field::List Field::restoreFields( KConfig *cfg, const QString &identifier ) { - QValueList fieldIds = cfg->readIntListEntry( identifier); + Q3ValueList fieldIds = cfg->readIntListEntry( identifier); //US // qDebug("Field::restoreFields from %s, identifier: %s", cfg->getFileName().latin1(), identifier.latin1()); Field::List fields; int custom = 0; - QValueList::ConstIterator it; + Q3ValueList::ConstIterator it; for( it = fieldIds.begin(); it != fieldIds.end(); ++it ) { FieldImpl *f = 0; if ( (*it) == FieldImpl::CustomField ) { -- cgit v0.9.0.2