summaryrefslogtreecommitdiffstats
path: root/amarok/src/playlistbrowser.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
commit1dbf3ff1cbb6d82a451bc319301bf38816c2c232 (patch)
tree3b5b9c88a3b91163735d364681b930369e039e69 /amarok/src/playlistbrowser.cpp
parent54e817557b3e95bc4b93fd7daa26b808c021515e (diff)
downloadamarok-1dbf3ff1cbb6d82a451bc319301bf38816c2c232.tar.gz
amarok-1dbf3ff1cbb6d82a451bc319301bf38816c2c232.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/amarok@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'amarok/src/playlistbrowser.cpp')
-rw-r--r--amarok/src/playlistbrowser.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/amarok/src/playlistbrowser.cpp b/amarok/src/playlistbrowser.cpp
index 36b2a7db..8f424f18 100644
--- a/amarok/src/playlistbrowser.cpp
+++ b/amarok/src/playlistbrowser.cpp
@@ -79,7 +79,7 @@ namespace Amarok {
foreach( path ) {
item = prox;
TQString text( *it );
- text.tqreplace( escaped, sep );
+ text.replace( escaped, sep );
for ( ; item; item = item->nextSibling() ) {
if ( text == item->text(0) ) {
@@ -101,7 +101,7 @@ namespace Amarok {
const static TQChar sep( '/' );
int bOffset = 0, sOffset = 0;
- int pos = path.tqfind( sep, bOffset );
+ int pos = path.find( sep, bOffset );
while ( pos != -1 ) {
if ( pos > sOffset && pos <= (int)path.length() ) {
@@ -111,7 +111,7 @@ namespace Amarok {
}
}
bOffset = pos + 1;
- pos = path.tqfind( sep, bOffset );
+ pos = path.find( sep, bOffset );
}
int length = path.length() - 1;
@@ -602,13 +602,13 @@ void PlaylistBrowser::addLastFmCustomRadio( TQListViewItem *tqparent )
{
TQString token = LastFm::Controller::createCustomStation();
if( token.isEmpty() ) return;
- token.tqreplace( "/", "%252" );
+ token.replace( "/", "%252" );
const TQString text = "lastfm://artistnames/" + token;
const KURL url( text );
TQString name = LastFm::Controller::stationDescription( text );
- name.tqreplace( "%252", "/" );
+ name.replace( "%252", "/" );
new LastFmEntry( tqparent, 0, url, name );
saveLastFm();
}
@@ -770,9 +770,9 @@ void PlaylistBrowser::updateSmartPlaylistElement( TQDomElement& query )
TQDomText text = child.toText();
TQString sql = text.data();
if ( selectFromSearch.search( sql ) != -1 )
- sql.tqreplace( selectFromSearch, "SELECT (*ListOfFields*) FROM" );
+ sql.replace( selectFromSearch, "SELECT (*ListOfFields*) FROM" );
if ( limitSearch.search( sql ) != -1 )
- sql.tqreplace( limitSearch,
+ sql.replace( limitSearch,
TQString( "LIMIT %1 OFFSET %2").tqarg( limitSearch.capturedTexts()[2].toInt() ).tqarg( limitSearch.capturedTexts()[1].toInt() ) );
text.setData( sql );
@@ -1043,7 +1043,7 @@ PlaylistBrowser::fixDynamicPlaylistPath( TQListViewItem *item )
TQString
PlaylistBrowser::guessPathFromPlaylistName( TQString name )
{
- TQListViewItem *item = m_listview->tqfindItem( name, 0, TQt::ExactMatch );
+ TQListViewItem *item = m_listview->findItem( name, 0, TQt::ExactMatch );
PlaylistBrowserEntry *entry = dynamic_cast<PlaylistBrowserEntry*>( item );
if ( entry )
return entry->name();
@@ -1173,7 +1173,7 @@ DEBUG_BLOCK
{
PlaylistCategory *tqparent = p;
const int parentId = (*it).parentId();
- if( parentId > 0 && folderMap.tqfind( parentId ) != folderMap.end() )
+ if( parentId > 0 && folderMap.find( parentId ) != folderMap.end() )
tqparent = folderMap[parentId];
channel = new PodcastChannel( tqparent, channel, *it );
@@ -1210,7 +1210,7 @@ DEBUG_BLOCK
const bool isOpen = ( (*++it) == CollectionDB::instance()->boolT() ? true : false );
PlaylistCategory *tqparent = p;
- if( parentId > 0 && folderMap.tqfind( parentId ) != folderMap.end() )
+ if( parentId > 0 && folderMap.find( parentId ) != folderMap.end() )
tqparent = folderMap[parentId];
folder = new PlaylistCategory( tqparent, folder, t, id );
@@ -1927,7 +1927,7 @@ void PlaylistBrowser::savePlaylist( PlaylistEntry *item )
PlaylistBrowserEntry *
PlaylistBrowser::findItem( TQString &t, int c ) const
{
- return static_cast<PlaylistBrowserEntry *>( m_listview->tqfindItem( t, c, TQt::ExactMatch ) );
+ return static_cast<PlaylistBrowserEntry *>( m_listview->findItem( t, c, TQt::ExactMatch ) );
}
bool PlaylistBrowser::createPlaylist( TQListViewItem *tqparent, bool current, TQString title )
@@ -2778,7 +2778,7 @@ void PlaylistBrowserView::mousePressed( int button, TQListViewItem *item, const
TQRect itemrect = tqitemRect( item );
TQRect expandRect = TQRect( 4, itemrect.y() + (item->height()/2) - 5, 15, 15 );
- if( expandRect.tqcontains( p ) ) { //expand symbol clicked
+ if( expandRect.contains( p ) ) { //expand symbol clicked
setOpen( item, !item->isOpen() );
return;
}
@@ -3226,7 +3226,7 @@ InfoPane::setInfo( const TQString &title, const TQString &info )
toggle( !(info.isEmpty() && title.isEmpty()) );
TQString info_ = info;
- info_.tqreplace( "\n", "<br/>" );
+ info_.replace( "\n", "<br/>" );
m_infoBrowser->set(
m_enable ?