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 | b6edfe41c9395f2e20784cbf0e630af6426950a3 (patch) | |
tree | 56ed9b871d4296e6c15949c24e16420be1b28697 /lib/kofficeui/KoTabBar.cpp | |
parent | ef39e8e4178a8f98cf5f154916ba0f03e4855206 (diff) | |
download | koffice-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 'lib/kofficeui/KoTabBar.cpp')
-rw-r--r-- | lib/kofficeui/KoTabBar.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/kofficeui/KoTabBar.cpp b/lib/kofficeui/KoTabBar.cpp index b2e7c94b..7c0beeeb 100644 --- a/lib/kofficeui/KoTabBar.cpp +++ b/lib/kofficeui/KoTabBar.cpp @@ -245,7 +245,7 @@ int KoTabBarPrivate::tabAt( const TQPoint& pos ) { TQRect rect = tabRects[ i ]; if( rect.isNull() ) continue; - if( rect.tqcontains( pos ) ) return i; + if( rect.contains( pos ) ) return i; } return -1; // not found @@ -396,7 +396,7 @@ void KoTabBar::addTab( const TQString& text ) // removes a tab void KoTabBar::removeTab( const TQString& text ) { - int i = d->tabs.tqfindIndex( text ); + int i = d->tabs.findIndex( text ); if ( i == -1 ) return; if ( d->activeTab == i + 1 ) @@ -457,7 +457,7 @@ void KoTabBar::setTabs( const TQStringList& list ) if( !left.isNull() ) { - d->firstTab = d->tabs.tqfindIndex( left ) + 1; + d->firstTab = d->tabs.findIndex( left ) + 1; if( d->firstTab > (int)d->tabs.count() ) d->firstTab = 1; if( d->firstTab <= 0 ) @@ -572,7 +572,7 @@ void KoTabBar::scrollLast() void KoTabBar::ensureVisible( const TQString& tab ) { - int i = d->tabs.tqfindIndex( tab ); + int i = d->tabs.findIndex( tab ); if ( i == -1 ) return; i++; @@ -612,7 +612,7 @@ void KoTabBar::moveTab( unsigned tab, unsigned target ) void KoTabBar::setActiveTab( const TQString& text ) { - int i = d->tabs.tqfindIndex( text ); + int i = d->tabs.findIndex( text ); if ( i == -1 ) return; @@ -729,7 +729,7 @@ TQSize KoTabBar::tqsizeHint() const void KoTabBar::renameTab( const TQString& old_name, const TQString& new_name ) { - TQStringList::Iterator it = d->tabs.tqfind( old_name ); + TQStringList::Iterator it = d->tabs.find( old_name ); (*it) = new_name; update(); |