diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
commit | 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch) | |
tree | 5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /karm/plannerparser.cpp | |
parent | 2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff) | |
download | tdepim-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 'karm/plannerparser.cpp')
-rw-r--r-- | karm/plannerparser.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
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 <task>s within <tasks> increased level, so only decrease for <task>s within <tasks> 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; |