summaryrefslogtreecommitdiffstats
path: root/tdeabc
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-08-08 12:21:34 +0900
committerMichele Calgaro <[email protected]>2023-08-08 19:33:18 +0900
commitc0b74ba868682f39c41a9f70ae11297425b711e1 (patch)
tree011b3da15bd49b62893629154ba84d87afa54f3e /tdeabc
parent29b84bd0b10724c3fd1dc1ea0bcdedf5221ebd3f (diff)
downloadtdelibs-c0b74ba868682f39c41a9f70ae11297425b711e1.tar.gz
tdelibs-c0b74ba868682f39c41a9f70ae11297425b711e1.zip
Drop TQT_TQ*_OBJECT defines
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'tdeabc')
-rw-r--r--tdeabc/ldifconverter.cpp2
-rw-r--r--tdeabc/scripts/field.src.cpp4
-rw-r--r--tdeabc/vcardformatimpl.cpp4
-rw-r--r--tdeabc/vcardtool.cpp4
4 files changed, 7 insertions, 7 deletions
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()) );