diff options
Diffstat (limited to 'kdgantt/KDGanttViewTaskItem.cpp')
-rw-r--r-- | kdgantt/KDGanttViewTaskItem.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kdgantt/KDGanttViewTaskItem.cpp b/kdgantt/KDGanttViewTaskItem.cpp index 8154216bf..a89f23603 100644 --- a/kdgantt/KDGanttViewTaskItem.cpp +++ b/kdgantt/KDGanttViewTaskItem.cpp @@ -79,15 +79,15 @@ KDGanttViewTaskItem::KDGanttViewTaskItem( KDGanttView* view, /*! Constructs an empty Gantt item of type event. - \param tqparent a tqparent item under which this one goes + \param parent a parent item under which this one goes \param lvtext the text to show in the list view \param name the name by which the item can be identified. If no name is specified, a unique name will be generated */ -KDGanttViewTaskItem::KDGanttViewTaskItem( KDGanttViewItem* tqparent, +KDGanttViewTaskItem::KDGanttViewTaskItem( KDGanttViewItem* parent, const TQString& lvtext, const TQString& name ) : - KDGanttViewItem( Task, tqparent, lvtext, name ) + KDGanttViewItem( Task, parent, lvtext, name ) { initItem(); } @@ -115,17 +115,17 @@ KDGanttViewTaskItem::KDGanttViewTaskItem( KDGanttView* view, /*! Constructs an empty Gantt item of type event. - \param tqparent a tqparent item under which this one goes + \param parent a parent item under which this one goes \param after another item at the same level behind which this one should go \param lvtext the text to show in the listview \param name the name by which the item can be identified. If no name is specified, a unique name will be generated */ -KDGanttViewTaskItem::KDGanttViewTaskItem( KDGanttViewItem* tqparent, +KDGanttViewTaskItem::KDGanttViewTaskItem( KDGanttViewItem* parent, KDGanttViewItem* after, const TQString& lvtext, const TQString& name ) : - KDGanttViewItem( Task, tqparent, after, lvtext, name ) + KDGanttViewItem( Task, parent, after, lvtext, name ) { initItem(); } @@ -216,7 +216,7 @@ void KDGanttViewTaskItem::showItem(bool show, int coordY) floatEndShape->setZ(startShape->z()+0.003); // less than textCanvas floatEndShape->hide(); textCanvas->setZ( prio + 0.005 ); - if ( displaySubitemsAsGroup() && !tqparent() && !isOpen() ) { + if ( displaySubitemsAsGroup() && !parent() && !isOpen() ) { hideMe(); return; } @@ -242,9 +242,9 @@ void KDGanttViewTaskItem::showItem(bool show, int coordY) } int hei = height(); if ( ! isVisible() ) { - KDGanttViewItem * par = tqparent(); + KDGanttViewItem * par = parent(); while ( par != 0 && !par->isVisible() ) - par = par->tqparent(); + par = par->parent(); if ( par ) hei = par->height(); } @@ -356,9 +356,9 @@ void KDGanttViewTaskItem::initItem() { isVisibleInGanttView = false; - if ( myGanttView->calendarMode() && tqparent() ) { + if ( myGanttView->calendarMode() && parent() ) { setVisible( false ); - tqparent()->setVisible( true ); + parent()->setVisible( true ); } else showItem(true); //qDebug("initItem %s %s", listViewText().latin1(),startShape->brush().color().name().latin1() ); |