diff options
Diffstat (limited to 'src/optionsdetailed.cpp')
-rwxr-xr-x | src/optionsdetailed.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/optionsdetailed.cpp b/src/optionsdetailed.cpp index cd8163a..7f36a8f 100755 --- a/src/optionsdetailed.cpp +++ b/src/optionsdetailed.cpp @@ -363,14 +363,14 @@ void OptionsDetailed::saveProfile() profiles += i18n("Last used"); profiles += "Last used"; profiles += i18n("User defined"); - if( profiles.tqfindIndex(name) != -1 ) { + if( profiles.findIndex(name) != -1 ) { KMessageBox::error( this, i18n("You cannot overwrite the built-in profiles."), i18n("Profile already exists") ); return; } profiles = config->getAllProfiles(); - if( profiles.tqfindIndex(name) == -1 ) { + if( profiles.findIndex(name) == -1 ) { config->addProfile( name, getCurrentOptions() ); } else { @@ -387,22 +387,22 @@ void OptionsDetailed::saveProfile() int OptionsDetailed::formatIndex( const TQString &string ) { - return sFormat.tqfindIndex( string ); + return sFormat.findIndex( string ); } int OptionsDetailed::qualityModeIndex( const TQString &string ) { - return sQualityMode.tqfindIndex( string ); + return sQualityMode.findIndex( string ); } int OptionsDetailed::bitrateModeIndex( const TQString &string ) { - return sBitrateMode.tqfindIndex( string ); + return sBitrateMode.findIndex( string ); } int OptionsDetailed::channelsIndex( const TQString &string ) { - return sChannels.tqfindIndex( string ); + return sChannels.findIndex( string ); } void OptionsDetailed::refill() @@ -597,7 +597,7 @@ void OptionsDetailed::qualityModeChanged() if( plugin->enc.lossy.quality.help ) { TQString str = plugin->enc.lossy.quality.help; - str.tqreplace("\\n","<br>"); + str.replace("\\n","<br>"); TQWhatsThis::add( iQuality, "<p>"+str+"</p>" ); } } @@ -662,27 +662,27 @@ void OptionsDetailed::qualityChanged() if( plugin->enc.lossy.quality.step < 1 ) { if( plugin->enc.lossy.quality.range_max >= plugin->enc.lossy.quality.range_min) // t_float = ( (float)item->fileListItem->options.encodingOptions.iQuality * ( plugin->enc.lossy.quality.range_max - plugin->enc.lossy.quality.range_min ) / 100 ) + plugin->enc.lossy.quality.range_min; - quality.tqreplace( "%q", TQString::number( ( (float)qualityLevel * ( plugin->enc.lossy.quality.range_max - plugin->enc.lossy.quality.range_min ) / 100 ) + plugin->enc.lossy.quality.range_min ) ); + quality.replace( "%q", TQString::number( ( (float)qualityLevel * ( plugin->enc.lossy.quality.range_max - plugin->enc.lossy.quality.range_min ) / 100 ) + plugin->enc.lossy.quality.range_min ) ); else // t_float = ( (100.0f - (float)item->fileListItem->options.encodingOptions.iQuality) * ( plugin->enc.lossy.quality.range_min - plugin->enc.lossy.quality.range_max ) / 100 ) + plugin->enc.lossy.quality.range_max; - quality.tqreplace( "%q", TQString::number( ( (100.0f - qualityLevel) * ( plugin->enc.lossy.quality.range_min - plugin->enc.lossy.quality.range_max ) / 100 ) + plugin->enc.lossy.quality.range_max ) ); + quality.replace( "%q", TQString::number( ( (100.0f - qualityLevel) * ( plugin->enc.lossy.quality.range_min - plugin->enc.lossy.quality.range_max ) / 100 ) + plugin->enc.lossy.quality.range_max ) ); } else { if( plugin->enc.lossy.quality.range_max >= plugin->enc.lossy.quality.range_min) // t_int = ( item->fileListItem->options.encodingOptions.iQuality * (int)( plugin->enc.lossy.quality.range_max - plugin->enc.lossy.quality.range_min ) / 100) + (int)plugin->enc.lossy.quality.range_min; - quality.tqreplace( "%q", TQString::number( (qualityLevel * (int)( plugin->enc.lossy.quality.range_max - plugin->enc.lossy.quality.range_min ) / 100) + (int)plugin->enc.lossy.quality.range_min ) ); + quality.replace( "%q", TQString::number( (qualityLevel * (int)( plugin->enc.lossy.quality.range_max - plugin->enc.lossy.quality.range_min ) / 100) + (int)plugin->enc.lossy.quality.range_min ) ); else // t_int = ( (100 - item->fileListItem->options.encodingOptions.iQuality) * (int)( plugin->enc.lossy.quality.range_min - plugin->enc.lossy.quality.range_max ) / 100) + (int)plugin->enc.lossy.quality.range_max; - quality.tqreplace( "%q", TQString::number( ( (100 - qualityLevel) * (int)( plugin->enc.lossy.quality.range_min - plugin->enc.lossy.quality.range_max ) / 100) + (int)plugin->enc.lossy.quality.range_max ) ); + quality.replace( "%q", TQString::number( ( (100 - qualityLevel) * (int)( plugin->enc.lossy.quality.range_min - plugin->enc.lossy.quality.range_max ) / 100) + (int)plugin->enc.lossy.quality.range_max ) ); } - if( plugin->enc.bin == "oggenc" ) quality.tqreplace(TQChar('.'),KGlobal::locale()->decimalSymbol()); // HACK make oggenc usable with all langauges + if( plugin->enc.bin == "oggenc" ) quality.replace(TQChar('.'),KGlobal::locale()->decimalSymbol()); // HACK make oggenc usable with all langauges else if( plugin->enc.lossy.quality.separator != '.' ) { - quality.tqreplace( TQChar('.'), plugin->enc.lossy.quality.separator ); + quality.replace( TQChar('.'), plugin->enc.lossy.quality.separator ); } } else { TQStringList::Iterator it = plugin->enc.lossy.quality.profiles.at( rint(qualityLevel*plugin->enc.lossy.quality.range_max/100) ); - quality.tqreplace( "%q", *it ); + quality.replace( "%q", *it ); } } |