diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 330c33ab6f97b279737bf9527c9add7bb1475450 (patch) | |
tree | 85cb998d3077ae295d65944ebb4d0189fc660ead /parts/bookmarks | |
parent | 093de0db4fea89b3f94a2359c6981f353d035eb7 (diff) | |
download | tdevelop-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/bookmarks')
-rw-r--r-- | parts/bookmarks/bookmarks_part.cpp | 12 | ||||
-rw-r--r-- | parts/bookmarks/bookmarks_widget.cpp | 2 |
2 files changed, 7 insertions, 7 deletions
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<TQT_BASE_OBJECT_NAME*>( sender() )); KParts::ReadOnlyPart * ro_part = dynamic_cast<KParts::ReadOnlyPart *>( 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<int,TQString> > 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<KTextEditor::EditInterface *>( 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(); } diff --git a/parts/bookmarks/bookmarks_widget.cpp b/parts/bookmarks/bookmarks_widget.cpp index 9ae51f19..99e8715d 100644 --- a/parts/bookmarks/bookmarks_widget.cpp +++ b/parts/bookmarks/bookmarks_widget.cpp @@ -196,7 +196,7 @@ void BookmarksWidget::updateURL( EditorData * data ) { // kdDebug(0) << "BookmarksWidget::updateURL()" << endl; - // remove the node that tqcontains 'data' + // remove the node that contains 'data' removeURL( data->url ); // create it again with new data |