diff options
Diffstat (limited to 'kdgantt/KDGanttViewTaskItem.cpp')
-rw-r--r-- | kdgantt/KDGanttViewTaskItem.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kdgantt/KDGanttViewTaskItem.cpp b/kdgantt/KDGanttViewTaskItem.cpp index f2ba122c1..b7cc8a9dd 100644 --- a/kdgantt/KDGanttViewTaskItem.cpp +++ b/kdgantt/KDGanttViewTaskItem.cpp @@ -27,8 +27,8 @@ ** licensing are not clear to you. ** ** As a special exception, permission is given to link this program - ** with any edition of Qt, and distribute the resulting executable, - ** without including the source code for Qt in the source distribution. + ** with any edition of TQt, and distribute the resulting executable, + ** without including the source code for TQt in the source distribution. ** **********************************************************************/ @@ -79,15 +79,15 @@ KDGanttViewTaskItem::KDGanttViewTaskItem( KDGanttView* view, /*! Constructs an empty Gantt item of type event. - \param parent a parent item under which this one goes + \param tqparent a tqparent 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* parent, +KDGanttViewTaskItem::KDGanttViewTaskItem( KDGanttViewItem* tqparent, const TQString& lvtext, const TQString& name ) : - KDGanttViewItem( Task, parent, lvtext, name ) + KDGanttViewItem( Task, tqparent, lvtext, name ) { initItem(); } @@ -115,17 +115,17 @@ KDGanttViewTaskItem::KDGanttViewTaskItem( KDGanttView* view, /*! Constructs an empty Gantt item of type event. - \param parent a parent item under which this one goes + \param tqparent a tqparent 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* parent, +KDGanttViewTaskItem::KDGanttViewTaskItem( KDGanttViewItem* tqparent, KDGanttViewItem* after, const TQString& lvtext, const TQString& name ) : - KDGanttViewItem( Task, parent, after, lvtext, name ) + KDGanttViewItem( Task, tqparent, 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() && !parent() && !isOpen() ) { + if ( displaySubitemsAsGroup() && !tqparent() && !isOpen() ) { hideMe(); return; } @@ -242,9 +242,9 @@ void KDGanttViewTaskItem::showItem(bool show, int coordY) } int hei = height(); if ( ! isVisible() ) { - KDGanttViewItem * par = parent(); + KDGanttViewItem * par = tqparent(); while ( par != 0 && !par->isVisible() ) - par = par->parent(); + par = par->tqparent(); if ( par ) hei = par->height(); } @@ -356,9 +356,9 @@ void KDGanttViewTaskItem::initItem() { isVisibleInGanttView = false; - if ( myGanttView->calendarMode() && parent() ) { + if ( myGanttView->calendarMode() && tqparent() ) { setVisible( false ); - parent()->setVisible( true ); + tqparent()->setVisible( true ); } else showItem(true); //qDebug("initItem %s %s", listViewText().latin1(),startShape->brush().color().name().latin1() ); |