summaryrefslogtreecommitdiffstats
path: root/src/cuesheeteditor.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
commit3a2300ed7cee06b5b49c4bc71f38d5cee72171b5 (patch)
treeebc2fc901d7584145d9c40de18d9e4931283360a /src/cuesheeteditor.cpp
parent633d093981e9e04c06921459694cd095cdf85c23 (diff)
downloadsoundkonverter-3a2300ed7cee06b5b49c4bc71f38d5cee72171b5.tar.gz
soundkonverter-3a2300ed7cee06b5b49c4bc71f38d5cee72171b5.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/soundkonverter@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/cuesheeteditor.cpp')
-rwxr-xr-xsrc/cuesheeteditor.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/cuesheeteditor.cpp b/src/cuesheeteditor.cpp
index 56d88cf..ca1b7c5 100755
--- a/src/cuesheeteditor.cpp
+++ b/src/cuesheeteditor.cpp
@@ -126,17 +126,17 @@ void CuesheetEditor::generate()
while( index != -1 )
{
- index = text.tqfind( " - " );
+ index = text.find( " - " );
if( index == -1 )
break;
titleList.append( text.left(index) );
text.remove( 0, index + 3 );
- index=text.tqfind( " [" );
+ index=text.find( " [" );
if( index == -1 )
break;
performerList.append( text.left(index) );
text.remove( 0, index + 2 );
- index = text.tqfind( "]" );
+ index = text.find( "]" );
if( index == -1 )
break;
time = text.left( index );
@@ -189,12 +189,12 @@ void CuesheetEditor::convert()
while( index!=-1 )
{
- index=text.tqfind("\"");
+ index=text.find("\"");
if( index==-1 )
break;
newText+=text.left(index+1);
text.remove(0,index+1);
- index=text.tqfind("\"");
+ index=text.find("\"");
tmpText=text.left(index+1);
text.remove(0,index+1);
if( newText.right(6) == "FILE \"" )
@@ -256,19 +256,19 @@ void CuesheetEditor::shift() //move the title to "PERFORMER" and performer to "T
while( index !=- 1 )
{
- index = text.tqfind("\n");
+ index = text.find("\n");
if( index == -1 )
break;
line = text.left(index+1);
text.remove(0,index+1);
// TODO clean up
- if( line.tqfind( "TITLE" ) != -1 ) {
- line.tqreplace( "TITLE", "PERFORMER" );
+ if( line.find( "TITLE" ) != -1 ) {
+ line.replace( "TITLE", "PERFORMER" );
if( performer != "" ) newText += performer;
performer=line;
}
- else if( line.tqfind( "PERFORMER" ) != -1 ) {
- line.tqreplace( "PERFORMER", "TITLE" );
+ else if( line.find( "PERFORMER" ) != -1 ) {
+ line.replace( "PERFORMER", "TITLE" );
if( title != "" ) newText += title;
title = line;
}
@@ -302,17 +302,17 @@ void CuesheetEditor::shift() //replace title by performer and reverse
while( index!=-1 )
{
- index=text.tqfind("\n");
+ index=text.find("\n");
if( index==-1 )
break;
line=text.left(index+1);
text.remove(0,index+1);
- if( line.tqfind(" TITLE \"") != -1 ) {
- line.tqreplace(" TITLE \""," PERFORMER \"");
+ if( line.find(" TITLE \"") != -1 ) {
+ line.replace(" TITLE \""," PERFORMER \"");
newText+=line;
}
- else if( line.tqfind(" PERFORMER \"") != -1 ) {
- line.tqreplace(" PERFORMER \""," TITLE \"");
+ else if( line.find(" PERFORMER \"") != -1 ) {
+ line.replace(" PERFORMER \""," TITLE \"");
newText+=line;
}
else {