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 --- karm/plannerparser.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'karm/plannerparser.cpp') diff --git a/karm/plannerparser.cpp b/karm/plannerparser.cpp index 7ac13a5e3..a1f83eb2a 100644 --- a/karm/plannerparser.cpp +++ b/karm/plannerparser.cpp @@ -35,9 +35,9 @@ test cases: kdDebug() << "entering constructor to import planner tasks" << endl; _taskView=tv; level=0; - if (_taskView->current_item()) if (_taskView->current_item()->parent()) + if (_taskView->current_item()) if (_taskView->current_item()->tqparent()) { - task = _taskView->current_item()->parent(); + task = _taskView->current_item()->tqparent(); level=1; } } @@ -67,13 +67,13 @@ test cases: } // at the moment, task is still the old task or the old father task (if an endElement occurred) or not existing (if the - // new task is a top-level-task). Make task the parenttask, if existing. + // new task is a top-level-task). Make task the tqparenttask, if existing. DesktopList dl; if (level++>0) { - parentTask=task; - task = new Task(taskName, 0, 0, dl, parentTask); - task->setUid(_taskView->storage()->addTask(task, parentTask)); + tqparentTask=task; + task = new Task(taskName, 0, 0, dl, tqparentTask); + task->setUid(_taskView->storage()->addTask(task, tqparentTask)); } else { @@ -92,7 +92,7 @@ test cases: // only s within increased level, so only decrease for s within if (withInTasks) { - if (qName=="task") if (level-->=0) task=task->parent(); + if (qName=="task") if (level-->=0) task=task->tqparent(); if (qName=="tasks") withInTasks=false; } return true; -- cgit v1.2.1