diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-09 02:23:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-09 02:23:29 +0000 |
commit | 7c71ab86d1f7e387fc3df63b48df07231f111862 (patch) | |
tree | 30ba2d2f840ff5fd458b6113e9c3f2e8a71d510d /kplato/kptganttview.cc | |
parent | afbfdc507bfaafc8824a9808311d57a9ece87510 (diff) | |
download | koffice-7c71ab86d1f7e387fc3df63b48df07231f111862.tar.gz koffice-7c71ab86d1f7e387fc3df63b48df07231f111862.zip |
Remove the tq in front of these incorrectly TQt4-converted methods/data members:
tqrepaint[...]
tqinvalidate[...]
tqparent[...]
tqmask[...]
tqlayout[...]
tqalignment[...]
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1240522 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kplato/kptganttview.cc')
-rw-r--r-- | kplato/kptganttview.cc | 80 |
1 files changed, 40 insertions, 40 deletions
diff --git a/kplato/kptganttview.cc b/kplato/kptganttview.cc index 1e32a092..37695320 100644 --- a/kplato/kptganttview.cc +++ b/kplato/kptganttview.cc @@ -239,7 +239,7 @@ void GanttView::drawOnPainter(TQPainter* painter, const TQRect rect) // m_taskView->setSizes(sizes); // } // else -// kdWarning() << "Aptqparently the task view splitter contains less than 2 parts!" << endl; +// kdWarning() << "Apparently the task view splitter contains less than 2 parts!" << endl; // bool showlistview = m_gantt->showListView(); // int listviewwidth = m_gantt->listViewWidth(); @@ -401,10 +401,10 @@ KDGanttViewItem *GanttView::correctParent(KDGanttViewItem *item, Node *node) return newItem; } -void GanttView::updateChildren(Node *tqparentNode) +void GanttView::updateChildren(Node *parentNode) { //kdDebug()<<k_funcinfo<<endl; - TQPtrListIterator<Node> nit(tqparentNode->childNodeIterator()); + TQPtrListIterator<Node> nit(parentNode->childNodeIterator()); for (; nit.current(); ++nit ) { updateNode(nit.current()); @@ -728,33 +728,33 @@ void GanttView::modifyMilestone(KDGanttViewItem *item, Task *task) setDrawn(item, true); } -KDGanttViewItem *GanttView::addNode( KDGanttViewItem *tqparentItem, Node *node, KDGanttViewItem *after) +KDGanttViewItem *GanttView::addNode( KDGanttViewItem *parentItem, Node *node, KDGanttViewItem *after) { //kdDebug()<<k_funcinfo<<endl; if (node->type() == Node::Type_Project) { - return addProject(tqparentItem, node, after); + return addProject(parentItem, node, after); } if (node->type() == Node::Type_Subproject) { - return addSubProject(tqparentItem, node, after); + return addSubProject(parentItem, node, after); } if (node->type() == Node::Type_Summarytask) { - return addSummaryTask(tqparentItem, static_cast<Task *>(node), after); + return addSummaryTask(parentItem, static_cast<Task *>(node), after); } if (node->type() == Node::Type_Task) { - return addTask(tqparentItem, static_cast<Task *>(node), after); + return addTask(parentItem, static_cast<Task *>(node), after); } if (node->type() == Node::Type_Milestone) { - return addMilestone(tqparentItem, static_cast<Task *>(node), after); + return addMilestone(parentItem, static_cast<Task *>(node), after); } return 0; } -KDGanttViewItem *GanttView::addProject(KDGanttViewItem *tqparentItem, Node *node, KDGanttViewItem *after) +KDGanttViewItem *GanttView::addProject(KDGanttViewItem *parentItem, Node *node, KDGanttViewItem *after) { //kdDebug()<<k_funcinfo<<endl; GanttViewSummaryItem *item; - if ( tqparentItem) { - item = new GanttViewSummaryItem(tqparentItem, node); + if ( parentItem) { + item = new GanttViewSummaryItem(parentItem, node); } else { // we are on the top level item = new GanttViewSummaryItem(m_gantt, node); @@ -765,19 +765,19 @@ KDGanttViewItem *GanttView::addProject(KDGanttViewItem *tqparentItem, Node *node return item; } -KDGanttViewItem *GanttView::addSubProject(KDGanttViewItem *tqparentItem, Node *node, KDGanttViewItem *after) +KDGanttViewItem *GanttView::addSubProject(KDGanttViewItem *parentItem, Node *node, KDGanttViewItem *after) { //kdDebug()<<k_funcinfo<<endl; - return addProject(tqparentItem, node, after); + return addProject(parentItem, node, after); } -KDGanttViewItem *GanttView::addSummaryTask(KDGanttViewItem *tqparentItem, Task *task, KDGanttViewItem *after) +KDGanttViewItem *GanttView::addSummaryTask(KDGanttViewItem *parentItem, Task *task, KDGanttViewItem *after) { //kdDebug()<<k_funcinfo<<endl; // display summary item GanttViewSummaryItem *item; - if ( tqparentItem) { - item = new GanttViewSummaryItem(tqparentItem, task); + if ( parentItem) { + item = new GanttViewSummaryItem(parentItem, task); } else { // we are on the top level item = new GanttViewSummaryItem(m_gantt, task); @@ -788,13 +788,13 @@ KDGanttViewItem *GanttView::addSummaryTask(KDGanttViewItem *tqparentItem, Task * return item; } -KDGanttViewItem *GanttView::addTask(KDGanttViewItem *tqparentItem, Task *task, KDGanttViewItem *after) +KDGanttViewItem *GanttView::addTask(KDGanttViewItem *parentItem, Task *task, KDGanttViewItem *after) { //kdDebug()<<k_funcinfo<<endl; // display task item GanttViewTaskItem *item; - if ( tqparentItem ) { - item = new GanttViewTaskItem(tqparentItem, task); + if ( parentItem ) { + item = new GanttViewTaskItem(parentItem, task); } else { // we are on the top level @@ -806,12 +806,12 @@ KDGanttViewItem *GanttView::addTask(KDGanttViewItem *tqparentItem, Task *task, K return item; } -KDGanttViewItem *GanttView::addMilestone(KDGanttViewItem *tqparentItem, Task *task, KDGanttViewItem *after) +KDGanttViewItem *GanttView::addMilestone(KDGanttViewItem *parentItem, Task *task, KDGanttViewItem *after) { //kdDebug()<<k_funcinfo<<endl; GanttViewEventItem *item; - if ( tqparentItem ) { - item = new GanttViewEventItem(tqparentItem, task); + if ( parentItem ) { + item = new GanttViewEventItem(parentItem, task); } else { // we are on the top level item = new GanttViewEventItem(m_gantt, task); @@ -822,26 +822,26 @@ KDGanttViewItem *GanttView::addMilestone(KDGanttViewItem *tqparentItem, Task *ta return item; } -void GanttView::drawChildren(KDGanttViewItem *tqparentItem, Node &tqparentNode) +void GanttView::drawChildren(KDGanttViewItem *parentItem, Node &parentNode) { //kdDebug()<<k_funcinfo<<endl; - TQPtrListIterator<Node> nit(tqparentNode.childNodeIterator()); + TQPtrListIterator<Node> nit(parentNode.childNodeIterator()); for ( nit.toLast(); nit.current(); --nit ) { Node *n = nit.current(); if (n->type() == Node::Type_Project) - drawProject(tqparentItem, n); + drawProject(parentItem, n); else if (n->type() == Node::Type_Subproject) - drawSubProject(tqparentItem, n); + drawSubProject(parentItem, n); else if (n->type() == Node::Type_Summarytask) { Task *t = dynamic_cast<Task *>(n); - drawSummaryTask(tqparentItem, t); + drawSummaryTask(parentItem, t); } else if (n->type() == Node::Type_Task) { Task *t = dynamic_cast<Task *>(n); - drawTask(tqparentItem, t); + drawTask(parentItem, t); } else if (n->type() == Node::Type_Milestone) { Task *t = dynamic_cast<Task *>(n); - drawMilestone(tqparentItem, t); + drawMilestone(parentItem, t); } else kdDebug()<<k_funcinfo<<"Node type "<<n->type()<<" not implemented yet"<<endl; @@ -850,37 +850,37 @@ void GanttView::drawChildren(KDGanttViewItem *tqparentItem, Node &tqparentNode) } -void GanttView::drawProject(KDGanttViewItem *tqparentItem, Node *node) +void GanttView::drawProject(KDGanttViewItem *parentItem, Node *node) { //kdDebug()<<k_funcinfo<<endl; - GanttViewSummaryItem *item = dynamic_cast<GanttViewSummaryItem*>(addProject(tqparentItem, node)); + GanttViewSummaryItem *item = dynamic_cast<GanttViewSummaryItem*>(addProject(parentItem, node)); drawChildren(item, *node); } -void GanttView::drawSubProject(KDGanttViewItem *tqparentItem, Node *node) +void GanttView::drawSubProject(KDGanttViewItem *parentItem, Node *node) { //kdDebug()<<k_funcinfo<<endl; - GanttViewSummaryItem *item = dynamic_cast<GanttViewSummaryItem*>(addSubProject(tqparentItem, node)); + GanttViewSummaryItem *item = dynamic_cast<GanttViewSummaryItem*>(addSubProject(parentItem, node)); drawChildren(item, *node); } -void GanttView::drawSummaryTask(KDGanttViewItem *tqparentItem, Task *task) +void GanttView::drawSummaryTask(KDGanttViewItem *parentItem, Task *task) { //kdDebug()<<k_funcinfo<<endl; - GanttViewSummaryItem *item = dynamic_cast<GanttViewSummaryItem*>(addSummaryTask(tqparentItem, task)); + GanttViewSummaryItem *item = dynamic_cast<GanttViewSummaryItem*>(addSummaryTask(parentItem, task)); drawChildren(item, *task); } -void GanttView::drawTask(KDGanttViewItem *tqparentItem, Task *task) +void GanttView::drawTask(KDGanttViewItem *parentItem, Task *task) { //kdDebug()<<k_funcinfo<<endl; - addTask(tqparentItem, task); + addTask(parentItem, task); } -void GanttView::drawMilestone(KDGanttViewItem *tqparentItem, Task *task) +void GanttView::drawMilestone(KDGanttViewItem *parentItem, Task *task) { //kdDebug()<<k_funcinfo<<endl; - addMilestone(tqparentItem, task); + addMilestone(parentItem, task); } void GanttView::addTaskLink(KDGanttViewTaskLink *link) { |