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 | 3a2300ed7cee06b5b49c4bc71f38d5cee72171b5 (patch) | |
tree | ebc2fc901d7584145d9c40de18d9e4931283360a /src/configpluginspage.cpp | |
parent | 633d093981e9e04c06921459694cd095cdf85c23 (diff) | |
download | soundkonverter-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/configpluginspage.cpp')
-rwxr-xr-x | src/configpluginspage.cpp | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/src/configpluginspage.cpp b/src/configpluginspage.cpp index a79f852..99eb7b1 100755 --- a/src/configpluginspage.cpp +++ b/src/configpluginspage.cpp @@ -124,14 +124,14 @@ ConfigPluginsPage::ConfigPluginsPage( Config* _config, TQWidget* tqparent, const TQTextStream stream( &file ); while( !stream.atEnd() ) { line = stream.readLine(); // line of text excluding '\n' - line.tqreplace( "&", "&" ); - line.tqreplace( "ä", "ä" ); - line.tqreplace( "Ä", "Ä" ); - line.tqreplace( "ö", "ö" ); - line.tqreplace( "Ö", "Ö" ); - line.tqreplace( "ü", "ü" ); - line.tqreplace( "Ü", "Ü" ); - line.tqreplace( "ß", "ß" ); + line.replace( "&", "&" ); + line.replace( "ä", "ä" ); + line.replace( "Ä", "Ä" ); + line.replace( "ö", "ö" ); + line.replace( "Ö", "Ö" ); + line.replace( "ü", "ü" ); + line.replace( "Ü", "Ü" ); + line.replace( "ß", "ß" ); add = true; for( uint i=0; i<lPlugins->count(); i++ ) { @@ -228,7 +228,7 @@ void ConfigPluginsPage::getPlugin() TQString url = KFileDialog::getOpenFileName( TQDir::homeDirPath(), i18n("*.soundkonverter.xml|Plugins (*.soundkonverter.xml)"), this, i18n("Choose a plugin to add!") ); if( !url.isEmpty() ) { TQString filePathName = KURL::decode_string( url ); - TQString fileName = filePathName.right( filePathName.length() - filePathName.tqfindRev("/") ); + TQString fileName = filePathName.right( filePathName.length() - filePathName.findRev("/") ); getPluginFilePathName = locateLocal("data","soundkonverter/plugins/") + fileName; getPluginJob = KIO::file_copy( url, getPluginFilePathName, -1, true, false, false ); connect( getPluginJob, TQT_SIGNAL(result(KIO::Job*)), @@ -447,14 +447,14 @@ void ConfigPluginsPage::refreshOnlinePluginsFinished( KIO::Job* job ) TQTextStream stream( &file ); while( !stream.atEnd() ) { line = stream.readLine(); // line of text excluding '\n' - line.tqreplace( "&", "&" ); - line.tqreplace( "ä", "ä" ); - line.tqreplace( "Ä", "Ä" ); - line.tqreplace( "ö", "ö" ); - line.tqreplace( "Ö", "Ö" ); - line.tqreplace( "ü", "ü" ); - line.tqreplace( "Ü", "Ü" ); - line.tqreplace( "ß", "ß" ); + line.replace( "&", "&" ); + line.replace( "ä", "ä" ); + line.replace( "Ä", "Ä" ); + line.replace( "ö", "ö" ); + line.replace( "Ö", "Ö" ); + line.replace( "ü", "ü" ); + line.replace( "Ü", "Ü" ); + line.replace( "ß", "ß" ); add = true; for( uint i=0; i<lPlugins->count(); i++ ) { @@ -494,14 +494,14 @@ void ConfigPluginsPage::getOnlinePlugin() } } - name.tqreplace( "&", "&" ); - name.tqreplace( "ä", "ä" ); - name.tqreplace( "Ä", "Ä" ); - name.tqreplace( "ö", "ö" ); - name.tqreplace( "Ö", "Ö" ); - name.tqreplace( "ü", "ü" ); - name.tqreplace( "Ü", "Ü" ); - name.tqreplace( "ß", "ß" ); + name.replace( "&", "&" ); + name.replace( "ä", "ä" ); + name.replace( "Ä", "Ä" ); + name.replace( "ö", "ö" ); + name.replace( "Ö", "Ö" ); + name.replace( "ü", "ü" ); + name.replace( "Ü", "Ü" ); + name.replace( "ß", "ß" ); KURL::encode_string( name ); getOnlinePluginJob = KIO::file_copy( "http://kaligames.de/downloads/soundkonverter/plugins/getfile.php?version=" + TQString::number(config->data.app.configVersion) + "&file=" + name, locateLocal("data","soundkonverter/plugins/newplugin.xml"), -1, true, false, false ); @@ -593,14 +593,14 @@ void ConfigPluginsPage::aboutOnlinePlugin() pAboutOnlinePlugin->setEnabled( false ); TQString name = lOnlinePlugins->currentText(); - name.tqreplace( "&", "&" ); - name.tqreplace( "ä", "ä" ); - name.tqreplace( "Ä", "Ä" ); - name.tqreplace( "ö", "ö" ); - name.tqreplace( "Ö", "Ö" ); - name.tqreplace( "ü", "ü" ); - name.tqreplace( "Ü", "Ü" ); - name.tqreplace( "ß", "ß" ); + name.replace( "&", "&" ); + name.replace( "ä", "ä" ); + name.replace( "Ä", "Ä" ); + name.replace( "ö", "ö" ); + name.replace( "Ö", "Ö" ); + name.replace( "ü", "ü" ); + name.replace( "Ü", "Ü" ); + name.replace( "ß", "ß" ); KURL::encode_string( name ); aboutOnlinePluginJob = KIO::file_copy( "http://kaligames.de/downloads/soundkonverter/plugins/info.php?file=" + name + "&lang=" + TQLocale::languageToString(TQLocale::system().language()), locateLocal("data","soundkonverter/plugin_info.txt"), -1, true, false, false ); |