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/dndfactory.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'libkcal/dndfactory.cpp') diff --git a/libkcal/dndfactory.cpp b/libkcal/dndfactory.cpp index 7f4398194..913036d36 100644 --- a/libkcal/dndfactory.cpp +++ b/libkcal/dndfactory.cpp @@ -178,7 +178,7 @@ bool DndFactory::cutIncidences( const Incidence::List &incidences ) bool DndFactory::copyIncidences( const Incidence::List &incidences ) { - QClipboard *cb = TQApplication::clipboard(); + TQClipboard *cb = TQApplication::clipboard(); CalendarLocal cal( mCalendar->timeZoneId() ); Incidence::List::ConstIterator it; @@ -206,7 +206,7 @@ bool DndFactory::copyIncidence( Incidence *selectedInc ) Incidence::List DndFactory::pasteIncidences( const TQDate &newDate, const TQTime *newTime ) { CalendarLocal cal( mCalendar->timeZoneId() ); - QClipboard *cb = TQApplication::clipboard(); + TQClipboard *cb = TQApplication::clipboard(); Incidence::List list; if ( !ICalDrag::decode( cb->data(), &cal ) && @@ -216,7 +216,7 @@ Incidence::List DndFactory::pasteIncidences( const TQDate &newDate, const TQTime } // All pasted incidences get new uids, must keep track of old uids, - // so we can update child's parents + // so we can update child's tqparents TQMap oldUidToNewInc; Incidence::List::ConstIterator it; @@ -233,9 +233,9 @@ Incidence::List DndFactory::pasteIncidences( const TQDate &newDate, const TQTime for ( it = list.constBegin(); it != list.constEnd(); ++it ) { Incidence *inc = *it; if ( oldUidToNewInc.tqcontains( inc->relatedToUid() ) ) { - Incidence *parentInc = oldUidToNewInc[inc->relatedToUid()]; - inc->setRelatedToUid( parentInc->uid() ); - inc->setRelatedTo( parentInc ); + Incidence *tqparentInc = oldUidToNewInc[inc->relatedToUid()]; + inc->setRelatedToUid( tqparentInc->uid() ); + inc->setRelatedTo( tqparentInc ); } else { // not related to anything in the clipboard inc->setRelatedToUid( TQString() ); @@ -249,7 +249,7 @@ Incidence::List DndFactory::pasteIncidences( const TQDate &newDate, const TQTime Incidence *DndFactory::pasteIncidence( const TQDate &newDate, const TQTime *newTime ) { CalendarLocal cal( mCalendar->timeZoneId() ); - QClipboard *cb = TQApplication::clipboard(); + TQClipboard *cb = TQApplication::clipboard(); if ( !ICalDrag::decode( cb->data(), &cal ) && !VCalDrag::decode( cb->data(), &cal ) ) { -- cgit v1.2.1