From 1c93fca14d9ce37499bcfdf994c660186a0b6f17 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 14 Apr 2011 20:16:30 +0000 Subject: Enable kdepim compilation under Qt4 This will likely break Qt3 compilation temporarily, which is an unintended side effect. A third and final kdepim commit will repair Qt3 compilation shortly. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227946 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kresources/scalix/kabc/contact.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'kresources/scalix/kabc') diff --git a/kresources/scalix/kabc/contact.cpp b/kresources/scalix/kabc/contact.cpp index b8abb42aa..f9a02d448 100644 --- a/kresources/scalix/kabc/contact.cpp +++ b/kresources/scalix/kabc/contact.cpp @@ -71,7 +71,7 @@ TQString Contact::toXml( const KABC::Addressee &addr ) xml += "" + custom( "reminder_set", addr, "false" ) + "\n"; xml += "" + custom( "send_rich_info", addr, "false" ) + "\n"; xml += "" + addr.formattedName() + "\n"; - xml += "" + addr.revision().toString( TQt::ISODate ) + "\n"; + xml += "" + addr.revision().toString( Qt::ISODate ) + "\n"; xml += "" + addr.prefix() + "\n"; xml += "" + addr.givenName() + "\n"; @@ -103,19 +103,19 @@ TQString Contact::toXml( const KABC::Addressee &addr ) comment = addr.formattedName(); display = emails[ i ]; } else { - comment = custom( TQString( "email%1_address_with_comment" ).arg( i + 1 ), addr ); - display = custom( TQString( "email%1_display_name" ).arg( i + 1 ), addr ); + comment = custom( TQString( "email%1_address_with_comment" ).tqarg( i + 1 ), addr ); + display = custom( TQString( "email%1_display_name" ).tqarg( i + 1 ), addr ); } } - xml += TQString( "" ).arg( i + 1 ) + type + - TQString( "" ).arg( i + 1 ) +"\n"; - xml += TQString( "" ).arg( i + 1 ) + address + - TQString( "" ).arg( i + 1 ) +"\n"; - xml += TQString( "" ).arg( i + 1 ) + comment + - TQString( "" ).arg( i + 1 ) + "\n"; - xml += TQString( "" ).arg( i + 1 ) + display + - TQString( "" ).arg( i + 1 ) + "\n"; + xml += TQString( "" ).tqarg( i + 1 ) + type + + TQString( "" ).tqarg( i + 1 ) +"\n"; + xml += TQString( "" ).tqarg( i + 1 ) + address + + TQString( "" ).tqarg( i + 1 ) +"\n"; + xml += TQString( "" ).tqarg( i + 1 ) + comment + + TQString( "" ).tqarg( i + 1 ) + "\n"; + xml += TQString( "" ).tqarg( i + 1 ) + display + + TQString( "" ).tqarg( i + 1 ) + "\n"; } KABC::PhoneNumber phone = addr.phoneNumber( KABC::PhoneNumber::Home ); @@ -166,7 +166,7 @@ TQString Contact::toXml( const KABC::Addressee &addr ) xml += "" + addr.custom( "KADDRESSBOOK", "X-Office" ) + "\n"; xml += "" + addr.custom( "KADDRESSBOOK", "X-SpousesName" ) + "\n"; - xml += "" + addr.birthday().toString( TQt::ISODate ) + "\n"; + xml += "" + addr.birthday().toString( Qt::ISODate ) + "\n"; xml += "" + addr.custom( "KADDRESSBOOK", "X-Anniversary" ) + "\n"; xml += "" + custom( "mapi_charset", addr, "UTF8" ) + ""; @@ -235,7 +235,7 @@ KABC::Addressee Contact::fromXml( const TQString &xml ) else if ( element.tagName() == "send_rich_info" ) setCustom( "send_rich_info", element.text(), addr ); else if ( element.tagName() == "last_modification_time" ) - addr.setRevision( TQDateTime::fromString( element.text(), TQt::ISODate ) ); + addr.setRevision( TQDateTime::fromString( element.text(), Qt::ISODate ) ); // name else if ( element.tagName() == "display_name_prefix" ) @@ -352,7 +352,7 @@ KABC::Addressee Contact::fromXml( const TQString &xml ) addr.insertCustom( "KADDRESSBOOK", "X-SpousesName", element.text() ); else if ( element.tagName() == "bday" ) - addr.setBirthday( TQDateTime::fromString( element.text(), TQt::ISODate ) ); + addr.setBirthday( TQDateTime::fromString( element.text(), Qt::ISODate ) ); else if ( element.tagName() == "anniversary" ) addr.insertCustom( "KADDRESSBOOK", "X-Anniversary", element.text() ); else -- cgit v1.2.1