summaryrefslogtreecommitdiffstats
path: root/parts/fileview
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
commit330c33ab6f97b279737bf9527c9add7bb1475450 (patch)
tree85cb998d3077ae295d65944ebb4d0189fc660ead /parts/fileview
parent093de0db4fea89b3f94a2359c6981f353d035eb7 (diff)
downloadtdevelop-330c33ab6f97b279737bf9527c9add7bb1475450.tar.gz
tdevelop-330c33ab6f97b279737bf9527c9add7bb1475450.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'parts/fileview')
-rw-r--r--parts/fileview/filegroupswidget.cpp4
-rw-r--r--parts/fileview/filetreewidget.cpp6
-rw-r--r--parts/fileview/vcsfiletreewidgetimpl.cpp4
3 files changed, 7 insertions, 7 deletions
diff --git a/parts/fileview/filegroupswidget.cpp b/parts/fileview/filegroupswidget.cpp
index 7093ead9..40c2b752 100644
--- a/parts/fileview/filegroupswidget.cpp
+++ b/parts/fileview/filegroupswidget.cpp
@@ -97,7 +97,7 @@ FileViewFolderItem::FileViewFolderItem(TQListView *tqparent, const TQString &nam
TQString pattern = *ci;
TQString tail = pattern.right( pattern.length() - 1 );
- if ( (tail).tqcontains('*') || pattern.tqcontains('?') || pattern.tqcontains('[') || pattern.tqcontains(']') )
+ if ( (tail).contains('*') || pattern.contains('?') || pattern.contains('[') || pattern.contains(']') )
{
m_patterns.append( new RegExpComparator( pattern ) );
}
@@ -371,7 +371,7 @@ void FileGroupsWidget::addFile(const TQString &fileName)
if (fvgitem->matches(fileName))
{
TQString f = fileName;
- if (fileName.tqcontains(m_part->project()->projectDirectory()))
+ if (fileName.contains(m_part->project()->projectDirectory()))
f = fileName.mid(m_part->project()->projectDirectory().length()+1);
(void) new FileGroupsFileItem(fvgitem, f);
// fvgitem->sortChildItems(0, true);
diff --git a/parts/fileview/filetreewidget.cpp b/parts/fileview/filetreewidget.cpp
index a21ba427..958e756e 100644
--- a/parts/fileview/filetreewidget.cpp
+++ b/parts/fileview/filetreewidget.cpp
@@ -234,7 +234,7 @@ TQString FileTreeWidget::projectDirectory()
*/
bool FileTreeWidget::isInProject(const TQString &fileName) const
{
- return m_projectFiles.tqcontains(fileName);
+ return m_projectFiles.contains(fileName);
}
///////////////////////////////////////////////////////////////////////////////
@@ -262,7 +262,7 @@ void FileTreeWidget::addProjectFiles( TQStringList const & fileList, bool constr
continue;
kdDebug(9017) << "adding file: " << *it << endl;
const TQString file = projectDirectory() + "/" + ( *it );
- if ( !m_projectFiles.tqcontains( file ) )
+ if ( !m_projectFiles.contains( file ) )
{
// We got a new file to add to this project.
// Ensure all the tqparent directories are part of the project set, too.
@@ -276,7 +276,7 @@ void FileTreeWidget::addProjectFiles( TQStringList const & fileList, bool constr
// we may stop adding, because its tqparent directories were already added -
// in some previous addition.
TQString joinedPaths = paths.join("/");
- if( m_projectFiles.tqcontains( joinedPaths ) )
+ if( m_projectFiles.contains( joinedPaths ) )
break;
m_projectFiles.insert( projectDirectory() + "/" + joinedPaths, true );
paths.pop_back();
diff --git a/parts/fileview/vcsfiletreewidgetimpl.cpp b/parts/fileview/vcsfiletreewidgetimpl.cpp
index a513a1ae..6aebce29 100644
--- a/parts/fileview/vcsfiletreewidgetimpl.cpp
+++ b/parts/fileview/vcsfiletreewidgetimpl.cpp
@@ -155,7 +155,7 @@ KFileTreeViewItem* VCSFileTreeBranchItem::createTreeViewItem( KFileTreeViewItem*
// const VCSFileInfoMap &vcsFiles = *m_vcsInfoProvider->status( dirName );
// kdDebug(9017) << "Dir has " << vcsFiles.count() << " registered files!" << endl;
-// if (vcsFiles.tqcontains( fileName ))
+// if (vcsFiles.contains( fileName ))
// newItem->setVCSInfo( vcsFiles[ fileName ] );
// else
// kdDebug(9017) << "!!!No VCS info for this file!!!" << endl;
@@ -308,7 +308,7 @@ void VCSFileTreeWidgetImpl::vcsDirStatusReady( const VCSFileInfoMap &modifiedFil
{
const TQString fileName = item->fileName();
kdDebug(9017) << "Widget item filename is: " << fileName << endl;
- if (modifiedFiles.tqcontains( fileName ))
+ if (modifiedFiles.contains( fileName ))
{
const VCSFileInfo &vcsInfo = modifiedFiles[ fileName ];
kdDebug(9017) << "Nice! Found info for this file: " << vcsInfo.toString() << endl;