summaryrefslogtreecommitdiffstats
path: root/src/partcontroller.cpp
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 /src/partcontroller.cpp
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 'src/partcontroller.cpp')
-rw-r--r--src/partcontroller.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/partcontroller.cpp b/src/partcontroller.cpp
index a14417eb..4c9c6c6f 100644
--- a/src/partcontroller.cpp
+++ b/src/partcontroller.cpp
@@ -210,7 +210,7 @@ KURL PartController::findURLInProject(const KURL& url)
{
TQStringList fileList = API::getInstance()->project()->allFiles();
- bool filenameOnly = (url.url().tqfind('/') == -1);
+ bool filenameOnly = (url.url().find('/') == -1);
TQString filename = filenameOnly ? "/" : "";
filename += url.url();
@@ -442,7 +442,7 @@ void PartController::editDocumentInternal( const KURL & inputUrl, int lineNum,
config->setGroup("General");
TQStringList texttypeslist = config->readListEntry( "TextTypes" );
- if ( texttypeslist.tqcontains( MimeType->name() ) )
+ if ( texttypeslist.contains( MimeType->name() ) )
{
m_openNextAsText = true;
}
@@ -830,7 +830,7 @@ void PartController::updatePartURL( KParts::ReadOnlyPart * ro_part )
bool PartController::partURLHasChanged( KParts::ReadOnlyPart * ro_part )
{
- if ( _partURLMap.tqcontains( ro_part ) && !ro_part->url().isEmpty() )
+ if ( _partURLMap.contains( ro_part ) && !ro_part->url().isEmpty() )
{
if ( _partURLMap[ ro_part ] != ro_part->url() )
{
@@ -842,7 +842,7 @@ bool PartController::partURLHasChanged( KParts::ReadOnlyPart * ro_part )
KURL PartController::storedURLForPart( KParts::ReadOnlyPart * ro_part )
{
- if ( _partURLMap.tqcontains( ro_part ) )
+ if ( _partURLMap.contains( ro_part ) )
{
return _partURLMap[ ro_part ];
}
@@ -1216,7 +1216,7 @@ bool PartController::closeFilesDialog( KURL::List const & ignoreList )
while ( KParts::Part* part = it.current() )
{
KParts::ReadOnlyPart * ro_part = dynamic_cast<KParts::ReadOnlyPart*>( part );
- if ( ro_part && !ignoreList.tqcontains( ro_part->url() ) || !ro_part )
+ if ( ro_part && !ignoreList.contains( ro_part->url() ) || !ro_part )
{
closePart( part );
}
@@ -1426,7 +1426,7 @@ void PartController::slotDocumentDirtyStepTwo( void * payload )
if ( reason > 0 )
{
- if ( !_dirtyDocuments.tqcontains( doc ) )
+ if ( !_dirtyDocuments.contains( doc ) )
{
_dirtyDocuments.append( doc );
}
@@ -1455,7 +1455,7 @@ void PartController::slotDocumentDirtyStepTwo( void * payload )
bool PartController::isDirty( KURL const & url )
{
- return _dirtyDocuments.tqcontains( static_cast<KTextEditor::Document*>( partForURL( url ) ) );
+ return _dirtyDocuments.contains( static_cast<KTextEditor::Document*>( partForURL( url ) ) );
}
bool PartController::reactToDirty( KURL const & url, unsigned char reason )