summaryrefslogtreecommitdiffstats
path: root/src/configpluginspage.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/configpluginspage.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/configpluginspage.cpp')
-rwxr-xr-xsrc/configpluginspage.cpp66
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( "&amp;", "&" );
- line.tqreplace( "&auml;", "ä" );
- line.tqreplace( "&Auml;", "Ä" );
- line.tqreplace( "&ouml;", "ö" );
- line.tqreplace( "&Ouml;", "Ö" );
- line.tqreplace( "&uuml;", "ü" );
- line.tqreplace( "&Uuml;", "Ü" );
- line.tqreplace( "&szlig;", "ß" );
+ line.replace( "&amp;", "&" );
+ line.replace( "&auml;", "ä" );
+ line.replace( "&Auml;", "Ä" );
+ line.replace( "&ouml;", "ö" );
+ line.replace( "&Ouml;", "Ö" );
+ line.replace( "&uuml;", "ü" );
+ line.replace( "&Uuml;", "Ü" );
+ line.replace( "&szlig;", "ß" );
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( "&amp;", "&" );
- line.tqreplace( "&auml;", "ä" );
- line.tqreplace( "&Auml;", "Ä" );
- line.tqreplace( "&ouml;", "ö" );
- line.tqreplace( "&Ouml;", "Ö" );
- line.tqreplace( "&uuml;", "ü" );
- line.tqreplace( "&Uuml;", "Ü" );
- line.tqreplace( "&szlig;", "ß" );
+ line.replace( "&amp;", "&" );
+ line.replace( "&auml;", "ä" );
+ line.replace( "&Auml;", "Ä" );
+ line.replace( "&ouml;", "ö" );
+ line.replace( "&Ouml;", "Ö" );
+ line.replace( "&uuml;", "ü" );
+ line.replace( "&Uuml;", "Ü" );
+ line.replace( "&szlig;", "ß" );
add = true;
for( uint i=0; i<lPlugins->count(); i++ ) {
@@ -494,14 +494,14 @@ void ConfigPluginsPage::getOnlinePlugin()
}
}
- name.tqreplace( "&", "&amp;" );
- name.tqreplace( "ä", "&auml;" );
- name.tqreplace( "Ä", "&Auml;" );
- name.tqreplace( "ö", "&ouml;" );
- name.tqreplace( "Ö", "&Ouml;" );
- name.tqreplace( "ü", "&uuml;" );
- name.tqreplace( "Ü", "&Uuml;" );
- name.tqreplace( "ß", "&szlig;" );
+ name.replace( "&", "&amp;" );
+ name.replace( "ä", "&auml;" );
+ name.replace( "Ä", "&Auml;" );
+ name.replace( "ö", "&ouml;" );
+ name.replace( "Ö", "&Ouml;" );
+ name.replace( "ü", "&uuml;" );
+ name.replace( "Ü", "&Uuml;" );
+ name.replace( "ß", "&szlig;" );
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( "&", "&amp;" );
- name.tqreplace( "ä", "&auml;" );
- name.tqreplace( "Ä", "&Auml;" );
- name.tqreplace( "ö", "&ouml;" );
- name.tqreplace( "Ö", "&Ouml;" );
- name.tqreplace( "ü", "&uuml;" );
- name.tqreplace( "Ü", "&Uuml;" );
- name.tqreplace( "ß", "&szlig;" );
+ name.replace( "&", "&amp;" );
+ name.replace( "ä", "&auml;" );
+ name.replace( "Ä", "&Auml;" );
+ name.replace( "ö", "&ouml;" );
+ name.replace( "Ö", "&Ouml;" );
+ name.replace( "ü", "&uuml;" );
+ name.replace( "Ü", "&Uuml;" );
+ name.replace( "ß", "&szlig;" );
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 );