summaryrefslogtreecommitdiffstats
path: root/kdgantt
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commitb6edfe41c9395f2e20784cbf0e630af6426950a3 (patch)
tree56ed9b871d4296e6c15949c24e16420be1b28697 /kdgantt
parentef39e8e4178a8f98cf5f154916ba0f03e4855206 (diff)
downloadkoffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.tar.gz
koffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdgantt')
-rw-r--r--kdgantt/KDGanttMinimizeSplitter.cpp2
-rw-r--r--kdgantt/KDGanttView.cpp2
-rw-r--r--kdgantt/KDGanttViewItem.cpp10
-rw-r--r--kdgantt/KDGanttViewItem.h2
-rw-r--r--kdgantt/KDGanttViewTaskLink.cpp6
-rw-r--r--kdgantt/KDGanttViewTaskLinkGroup.cpp10
-rw-r--r--kdgantt/KDGanttViewTaskLinkGroup.h2
7 files changed, 17 insertions, 17 deletions
diff --git a/kdgantt/KDGanttMinimizeSplitter.cpp b/kdgantt/KDGanttMinimizeSplitter.cpp
index 9b226637..90cdc18e 100644
--- a/kdgantt/KDGanttMinimizeSplitter.cpp
+++ b/kdgantt/KDGanttMinimizeSplitter.cpp
@@ -179,7 +179,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 9191faaf..7f7e1983 100644
--- a/kdgantt/KDGanttView.cpp
+++ b/kdgantt/KDGanttView.cpp
@@ -3724,7 +3724,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 f9928c51..90aff68a 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 );
}
@@ -2292,7 +2292,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 369153cf..c69f77c4 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 3e891ef5..13872900 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 2abee1df..2082629a 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 b415ab11..120281d4 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 );