summaryrefslogtreecommitdiffstats
path: root/libkcal/dndfactory.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /libkcal/dndfactory.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
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
Diffstat (limited to 'libkcal/dndfactory.cpp')
-rw-r--r--libkcal/dndfactory.cpp14
1 files changed, 7 insertions, 7 deletions
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<TQString,Incidence*> 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 ) ) {