From 330c33ab6f97b279737bf9527c9add7bb1475450 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 06:08:18 +0000 Subject: 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 --- parts/bookmarks/bookmarks_part.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'parts/bookmarks/bookmarks_part.cpp') diff --git a/parts/bookmarks/bookmarks_part.cpp b/parts/bookmarks/bookmarks_part.cpp index 7646cc76..5edfa5a3 100644 --- a/parts/bookmarks/bookmarks_part.cpp +++ b/parts/bookmarks/bookmarks_part.cpp @@ -105,7 +105,7 @@ void BookmarksPart::partAdded( KParts::Part * part ) if ( setBookmarksForURL( ro_part ) ) { updateContextStringForURL( ro_part ); - if ( EditorData * data = _editorMap.tqfind( ro_part->url().path() ) ) + if ( EditorData * data = _editorMap.find( ro_part->url().path() ) ) { _widget->updateURL( data ); } @@ -143,7 +143,7 @@ void BookmarksPart::marksEvent() TQObject * senderobj = TQT_TQOBJECT(const_cast( sender() )); KParts::ReadOnlyPart * ro_part = dynamic_cast( senderobj ); - if ( partIsSane( ro_part ) && !_dirtyParts.tqcontains( ro_part ) ) + if ( partIsSane( ro_part ) && !_dirtyParts.contains( ro_part ) ) { _dirtyParts.push_back( ro_part ); _marksChangeTimer->start( 1000, true ); @@ -273,7 +273,7 @@ void BookmarksPart::removeBookmarkForURL( KURL const & url, int line ) { //kdDebug(0) << "BookmarksPart::removeBookmarkForURL()" << endl; - if ( EditorData * data = _editorMap.tqfind( url.path() ) ) + if ( EditorData * data = _editorMap.find( url.path() ) ) { TQValueListIterator< TQPair > it = data->marks.begin(); while ( it != data->marks.end() ) @@ -305,7 +305,7 @@ void BookmarksPart::updateContextStringForURL( KParts::ReadOnlyPart * ro_part ) KTextEditor::EditInterface * ed = dynamic_cast( ro_part ); - EditorData * data = _editorMap.tqfind( ro_part->url().path() ); + EditorData * data = _editorMap.find( ro_part->url().path() ); if ( ! ( data && ed ) ) return; @@ -343,7 +343,7 @@ bool BookmarksPart::setBookmarksForURL( KParts::ReadOnlyPart * ro_part ) _settingMarks = true; - if ( EditorData * data = _editorMap.tqfind( ro_part->url().path() ) ) + if ( EditorData * data = _editorMap.find( ro_part->url().path() ) ) { // we've seen this one before, apply stored bookmarks @@ -479,7 +479,7 @@ KParts::ReadOnlyPart * BookmarksPart::partForURL( KURL const & url ) bool BookmarksPart::partIsSane( KParts::ReadOnlyPart * ro_part ) { return ( ro_part != 0 ) && - partController()->parts()->tqcontains( ro_part) && + partController()->parts()->contains( ro_part) && !ro_part->url().path().isEmpty(); } -- cgit v1.2.1