From 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 13 Apr 2011 00:46:47 +0000 Subject: Initial conversion of kdepim to TQt This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libkcal/resourcecached.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'libkcal/resourcecached.cpp') diff --git a/libkcal/resourcecached.cpp b/libkcal/resourcecached.cpp index a6365979b..0e2d8d56d 100644 --- a/libkcal/resourcecached.cpp +++ b/libkcal/resourcecached.cpp @@ -485,7 +485,7 @@ void ResourceCached::calendarIncidenceAdded( Incidence *i ) #endif TQMap::ConstIterator it; - it = mAddedIncidences.find( i ); + it = mAddedIncidences.tqfind( i ); if ( it == mAddedIncidences.end() ) { mAddedIncidences.insert( i, true ); } @@ -501,7 +501,7 @@ void ResourceCached::calendarIncidenceChanged( Incidence *i ) #endif TQMap::ConstIterator it; - it = mChangedIncidences.find( i ); + it = mChangedIncidences.tqfind( i ); // FIXME: If you modify an added incidence, there's no need to add it to mChangedIncidences! if ( it == mChangedIncidences.end() ) { mChangedIncidences.insert( i, true ); @@ -518,19 +518,19 @@ void ResourceCached::calendarIncidenceDeleted( Incidence *i ) #endif if (i->hasRecurrenceID()) { - // This incidence has a parent; notify the parent of the child's death and do not destroy the parent! - // Get the parent + // This incidence has a tqparent; notify the tqparent of the child's death and do not destroy the tqparent! + // Get the tqparent IncidenceList il = i->childIncidences(); IncidenceListIterator it; it = il.begin(); - Incidence *parentIncidence; - parentIncidence = this->incidence(*it); + Incidence *tqparentIncidence; + tqparentIncidence = this->incidence(*it); // Remove the child - calendarIncidenceChanged(parentIncidence); + calendarIncidenceChanged(tqparentIncidence); } else { TQMap::ConstIterator it; - it = mDeletedIncidences.find( i ); + it = mDeletedIncidences.tqfind( i ); if ( it == mDeletedIncidences.end() ) { mDeletedIncidences.insert( i, true ); } -- cgit v1.2.1