From c0b74ba868682f39c41a9f70ae11297425b711e1 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 8 Aug 2023 12:21:34 +0900 Subject: Drop TQT_TQ*_OBJECT defines Signed-off-by: Michele Calgaro --- tdeabc/ldifconverter.cpp | 2 +- tdeabc/scripts/field.src.cpp | 4 ++-- tdeabc/vcardformatimpl.cpp | 4 ++-- tdeabc/vcardtool.cpp | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'tdeabc') diff --git a/tdeabc/ldifconverter.cpp b/tdeabc/ldifconverter.cpp index 1527b4893..7c4a72025 100644 --- a/tdeabc/ldifconverter.cpp +++ b/tdeabc/ldifconverter.cpp @@ -152,7 +152,7 @@ bool LDIFConverter::addresseeToLDIF( const Addressee &addr, TQString &str ) ldif_out( t, "homeurl", addr.url().prettyURL() ); ldif_out( t, "description", addr.note() ); if (addr.revision().isValid()) - ldif_out(t, "modifytimestamp", dateToVCardString( TQT_TQDATETIME_OBJECT(addr.revision())) ); + ldif_out(t, "modifytimestamp", dateToVCardString( addr.revision()) ); t << "objectclass: top\n"; t << "objectclass: person\n"; diff --git a/tdeabc/scripts/field.src.cpp b/tdeabc/scripts/field.src.cpp index f8f126b83..b3d5a4bf9 100644 --- a/tdeabc/scripts/field.src.cpp +++ b/tdeabc/scripts/field.src.cpp @@ -362,7 +362,7 @@ bool Field::setValue( TDEABC::Addressee &a, const TQString &value ) return true; } case FieldImpl::Birthday: - a.setBirthday( TQT_TQDATE_OBJECT(TQDate::fromString( value, Qt::ISODate )) ); + a.setBirthday( TQDate::fromString( value, Qt::ISODate ) ); return true; case FieldImpl::CustomField: a.insertCustom( mImpl->app(), mImpl->key(), value ); @@ -378,7 +378,7 @@ TQString Field::sortKey( const TDEABC::Addressee &a ) --CASEVALUE-- case FieldImpl::Birthday: if ( a.birthday().isValid() ) { - TQDate date = TQT_TQDATE_OBJECT(a.birthday().date()); + TQDate date = a.birthday().date(); TQString key; key.sprintf( "%02d-%02d", date.month(), date.day() ); return key; diff --git a/tdeabc/vcardformatimpl.cpp b/tdeabc/vcardformatimpl.cpp index 3a0883edc..4f2ea6809 100644 --- a/tdeabc/vcardformatimpl.cpp +++ b/tdeabc/vcardformatimpl.cpp @@ -331,8 +331,8 @@ void VCardFormatImpl::saveAddressee( const Addressee &addressee, VCARD::VCard *v addTextValue( v, EntityCategories, addressee.categories().join(",") ); - addDateValue( v, EntityBirthday, TQT_TQDATE_OBJECT(addressee.birthday().date()) ); - addDateTimeValue( v, EntityRevision, TQT_TQDATETIME_OBJECT(addressee.revision()) ); + addDateValue( v, EntityBirthday, addressee.birthday().date() ); + addDateTimeValue( v, EntityRevision, addressee.revision() ); addGeoValue( v, addressee.geo() ); addUTCValue( v, addressee.timeZone() ); diff --git a/tdeabc/vcardtool.cpp b/tdeabc/vcardtool.cpp index c1e793e77..423bfad19 100644 --- a/tdeabc/vcardtool.cpp +++ b/tdeabc/vcardtool.cpp @@ -139,7 +139,7 @@ TQString VCardTool::createVCards( Addressee::List list, VCard::Version version ) card.addLine( createAgent( version, (*addrIt).agent() ) ); // BDAY - card.addLine( VCardLine( "BDAY", createDateTime( TQT_TQDATETIME_OBJECT((*addrIt).birthday()) ) ) ); + card.addLine( VCardLine( "BDAY", createDateTime( (*addrIt).birthday()) ) ) ); // CATEGORIES if ( version == VCard::v3_0 ) { @@ -262,7 +262,7 @@ TQString VCardTool::createVCards( Addressee::List list, VCard::Version version ) card.addLine( VCardLine( "PRODID", TQString((*addrIt).productId()) ) ); // REV - card.addLine( VCardLine( "REV", createDateTime( TQT_TQDATETIME_OBJECT((*addrIt).revision()) ) ) ); + card.addLine( VCardLine( "REV", createDateTime( (*addrIt).revision()) ) ) ); // ROLE VCardLine roleLine( "ROLE", TQString((*addrIt).role()) ); -- cgit v1.2.1