diff options
Diffstat (limited to 'kdgantt')
-rw-r--r-- | kdgantt/KDGanttMinimizeSplitter.cpp | 2 | ||||
-rw-r--r-- | kdgantt/KDGanttView.cpp | 2 | ||||
-rw-r--r-- | kdgantt/KDGanttViewItem.cpp | 10 | ||||
-rw-r--r-- | kdgantt/KDGanttViewItem.h | 2 | ||||
-rw-r--r-- | kdgantt/KDGanttViewTaskLink.cpp | 6 | ||||
-rw-r--r-- | kdgantt/KDGanttViewTaskLinkGroup.cpp | 10 | ||||
-rw-r--r-- | kdgantt/KDGanttViewTaskLinkGroup.h | 2 |
7 files changed, 17 insertions, 17 deletions
diff --git a/kdgantt/KDGanttMinimizeSplitter.cpp b/kdgantt/KDGanttMinimizeSplitter.cpp index 10ef33730..b863e4e6e 100644 --- a/kdgantt/KDGanttMinimizeSplitter.cpp +++ b/kdgantt/KDGanttMinimizeSplitter.cpp @@ -178,7 +178,7 @@ int KDGanttSplitterHandle::onButton( const TQPoint& p ) rect.setRight( rect.right() + 4); rect.setTop( rect.top()- 4 ); rect.setBottom( rect.bottom() + 4); - if ( rect.tqcontains( p ) ) { + if ( rect.contains( p ) ) { return index; } index++; diff --git a/kdgantt/KDGanttView.cpp b/kdgantt/KDGanttView.cpp index 6624a4c2a..749e53064 100644 --- a/kdgantt/KDGanttView.cpp +++ b/kdgantt/KDGanttView.cpp @@ -3727,7 +3727,7 @@ void KDGanttView::addTaskLinkGroup(KDGanttViewTaskLinkGroup* group) myTaskLinkGroupList.append(group); return; } - if (myTaskLinkGroupList.tqfind(group) == -1) + if (myTaskLinkGroupList.find(group) == -1) myTaskLinkGroupList.append(group); } diff --git a/kdgantt/KDGanttViewItem.cpp b/kdgantt/KDGanttViewItem.cpp index ba6ad3437..687618139 100644 --- a/kdgantt/KDGanttViewItem.cpp +++ b/kdgantt/KDGanttViewItem.cpp @@ -292,10 +292,10 @@ void KDGanttViewItem::generateAndInsertName( const TQString& name ) sItemDict.remove( _name ); TQString newName; - if ( name.isEmpty() || sItemDict.tqfind( name ) ) { + if ( name.isEmpty() || sItemDict.find( name ) ) { // create unique name newName.sprintf( "%p", (void* )this ); - while( sItemDict.tqfind( newName ) ) { + while( sItemDict.find( newName ) ) { newName += "_0"; } } else { @@ -325,11 +325,11 @@ TQString KDGanttViewItem::name() const with that name exists */ -KDGanttViewItem* KDGanttViewItem::tqfind( const TQString& name ) +KDGanttViewItem* KDGanttViewItem::find( const TQString& name ) { if (name.isEmpty()) // avoid error msg from TQDict return 0; - return sItemDict.tqfind( name ); + return sItemDict.find( name ); } @@ -2294,7 +2294,7 @@ void KDGanttViewItem::resetSubitemVisibility() In calendar mode, only those items can be opened which have subitems which have subitems. An item which has subitems which have no subitems is called a calendar. - I.e., an item that tqcontains + I.e., an item that contains multiple calendars can be opened, while a calendar item itself cannot. But if all calendars of an item do not have any subitem (e.g at startup), the program cannot detect automatically that it should be possible to open diff --git a/kdgantt/KDGanttViewItem.h b/kdgantt/KDGanttViewItem.h index 88713fb3a..e08630b87 100644 --- a/kdgantt/KDGanttViewItem.h +++ b/kdgantt/KDGanttViewItem.h @@ -171,7 +171,7 @@ public: KDGanttViewItem* itemBelow( bool includeDisabled = true ); KDGanttViewItem* getChildByName( const TQString& name ); TQString name() const; - static KDGanttViewItem* tqfind( const TQString& name ); + static KDGanttViewItem* find( const TQString& name ); void createNode( TQDomDocument& doc, TQDomElement& parentElement ); diff --git a/kdgantt/KDGanttViewTaskLink.cpp b/kdgantt/KDGanttViewTaskLink.cpp index 51ed43f58..bc6047fdf 100644 --- a/kdgantt/KDGanttViewTaskLink.cpp +++ b/kdgantt/KDGanttViewTaskLink.cpp @@ -870,13 +870,13 @@ KDGanttViewTaskLink* KDGanttViewTaskLink::createFromDomElement( TQDomElement& el TQPtrList<KDGanttViewItem> toItemList; for( TQStringList::const_iterator fromIt = fromList.begin(); fromIt != fromList.end(); ++fromIt ) { - KDGanttViewItem* item = KDGanttViewItem::tqfind( *fromIt ); + KDGanttViewItem* item = KDGanttViewItem::find( *fromIt ); if( item ) fromItemList.append( item ); } for( TQStringList::const_iterator toIt = toList.begin(); toIt != toList.end(); ++toIt ) { - KDGanttViewItem* item = KDGanttViewItem::tqfind( *toIt ); + KDGanttViewItem* item = KDGanttViewItem::find( *toIt ); if( item ) toItemList.append( item ); } @@ -898,7 +898,7 @@ KDGanttViewTaskLink* KDGanttViewTaskLink::createFromDomElement( TQDomElement& el tl->setHighlightColor( highlightColor ); tl->setTooltipText( tooltipText ); tl->setWhatsThisText( whatsThisText ); - KDGanttViewTaskLinkGroup* gr = KDGanttViewTaskLinkGroup::tqfind( group ); + KDGanttViewTaskLinkGroup* gr = KDGanttViewTaskLinkGroup::find( group ); if( gr ) tl->setGroup( gr ); diff --git a/kdgantt/KDGanttViewTaskLinkGroup.cpp b/kdgantt/KDGanttViewTaskLinkGroup.cpp index c6e56c0b8..34b5bb81e 100644 --- a/kdgantt/KDGanttViewTaskLinkGroup.cpp +++ b/kdgantt/KDGanttViewTaskLinkGroup.cpp @@ -70,7 +70,7 @@ KDGanttViewTaskLinkGroup::~KDGanttViewTaskLinkGroup() /*! Constructs an empty task link group and records it under the name \a name so that it can later be found again with - KDGanttViewTaskLinkGroup::tqfind(). + KDGanttViewTaskLinkGroup::find(). \param name the search name of this task link group */ @@ -268,11 +268,11 @@ void KDGanttViewTaskLinkGroup::removeItem (KDGanttViewTaskLink* link) \return the task link group with the specified name; 0 if no group with that name exists */ -KDGanttViewTaskLinkGroup* KDGanttViewTaskLinkGroup::tqfind( const TQString& name ) +KDGanttViewTaskLinkGroup* KDGanttViewTaskLinkGroup::find( const TQString& name ) { if (name.isEmpty()) // avoid error msg from TQDict return 0; - return sGroupDict.tqfind( name ); + return sGroupDict.find( name ); } @@ -371,10 +371,10 @@ void KDGanttViewTaskLinkGroup::generateAndInsertName( const TQString& name ) sGroupDict.remove( _name ); TQString newName; - if ( name.isEmpty() || sGroupDict.tqfind( name ) ) { + if ( name.isEmpty() || sGroupDict.find( name ) ) { // create unique name newName.sprintf( "%p", (void* )this ); - while( sGroupDict.tqfind( newName ) ) { + while( sGroupDict.find( newName ) ) { newName += "_0"; } } else { diff --git a/kdgantt/KDGanttViewTaskLinkGroup.h b/kdgantt/KDGanttViewTaskLinkGroup.h index e3959089f..b155b8b4d 100644 --- a/kdgantt/KDGanttViewTaskLinkGroup.h +++ b/kdgantt/KDGanttViewTaskLinkGroup.h @@ -62,7 +62,7 @@ public: void setHighlightColor( const TQColor& color ); TQColor highlightColor() const; - static KDGanttViewTaskLinkGroup* tqfind( const TQString& name ); + static KDGanttViewTaskLinkGroup* find( const TQString& name ); void createNode( TQDomDocument& doc, TQDomElement& parentElement ); |