From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libkpimexchange/core/utils.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'libkpimexchange/core/utils.cpp') diff --git a/libkpimexchange/core/utils.cpp b/libkpimexchange/core/utils.cpp index 1d90cfcca..61847dbdd 100644 --- a/libkpimexchange/core/utils.cpp +++ b/libkpimexchange/core/utils.cpp @@ -18,7 +18,7 @@ Boston, MA 02110-1301, USA. */ -#include +#include extern "C" { #include @@ -28,9 +28,9 @@ extern "C" { /** In a document doc with node node, add an element with name ns and tagname tag. Return the new element */ -QDomElement addElement( QDomDocument& doc, QDomNode& node, const QString& ns, const QString& tag ) +TQDomElement addElement( TQDomDocument& doc, TQDomNode& node, const TQString& ns, const TQString& tag ) { - QDomElement el = doc.createElementNS( ns, tag ); + TQDomElement el = doc.createElementNS( ns, tag ); node.appendChild( el ); return el; } @@ -39,10 +39,10 @@ QDomElement addElement( QDomDocument& doc, QDomNode& node, const QString& ns, co In a document doc with node node, add an element with namespace ns and tagname tag. Add a textnode in the element with text contents text. Return the new element. */ -QDomElement addElement( QDomDocument& doc, QDomNode& node, const QString& ns, const QString& tag, const QString& text ) +TQDomElement addElement( TQDomDocument& doc, TQDomNode& node, const TQString& ns, const TQString& tag, const TQString& text ) { - QDomElement el = doc.createElementNS( ns, tag ); - QDomText textnode = doc.createTextNode( text ); + TQDomElement el = doc.createElementNS( ns, tag ); + TQDomText textnode = doc.createTextNode( text ); el.appendChild( textnode ); node.appendChild( el ); return el; @@ -50,10 +50,10 @@ QDomElement addElement( QDomDocument& doc, QDomNode& node, const QString& ns, co //TODO: should not call libical functions directly -- better to make // a new libkcal abstraction method. -QDateTime utcAsZone( const QDateTime& utc, const QString& timeZoneId ) +TQDateTime utcAsZone( const TQDateTime& utc, const TQString& timeZoneId ) { int daylight; - QDateTime epoch; + TQDateTime epoch; epoch.setTime_t( 0 ); time_t v = epoch.secsTo( utc ); struct icaltimetype tt = icaltime_from_timet( v, 0 ); // 0: is_date=false @@ -66,10 +66,10 @@ QDateTime utcAsZone( const QDateTime& utc, const QString& timeZoneId ) //TODO: should not call libical functions directly -- better to make // a new libkcal abstraction method. -QDateTime zoneAsUtc( const QDateTime& zone, const QString& timeZoneId ) +TQDateTime zoneAsUtc( const TQDateTime& zone, const TQString& timeZoneId ) { int daylight; - QDateTime epoch; + TQDateTime epoch; epoch.setTime_t( 0 ); time_t v = epoch.secsTo( zone ); struct icaltimetype tt = icaltime_from_timet( v, 0 ); // 0: is_date=false -- cgit v1.2.1