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 | da4be7880ff1de6415ab6256afd2514e64f5fa2e (patch) | |
tree | 0862c14883af0435b012f6f592221fc167ed7d91 /kmrml/kmrml/lib | |
parent | d0a269b9b0361bf71c5dd5787be0839f9dcace8c (diff) | |
download | tdegraphics-da4be7880ff1de6415ab6256afd2514e64f5fa2e.tar.gz tdegraphics-da4be7880ff1de6415ab6256afd2514e64f5fa2e.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmrml/kmrml/lib')
-rw-r--r-- | kmrml/kmrml/lib/kmrml_config.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kmrml/kmrml/lib/kmrml_config.cpp b/kmrml/kmrml/lib/kmrml_config.cpp index 6d779860..2167448b 100644 --- a/kmrml/kmrml/lib/kmrml_config.cpp +++ b/kmrml/kmrml/lib/kmrml_config.cpp @@ -137,7 +137,7 @@ ServerSettings Config::settingsForHost( const TQString& host ) const void Config::addSettings( const ServerSettings& settings ) { TQString host = settings.host; - if ( m_hostList.tqfind( host ) == m_hostList.end() ) + if ( m_hostList.find( host ) == m_hostList.end() ) m_hostList.append( host ); m_config->setGroup( CONFIG_GROUP ); @@ -181,13 +181,13 @@ TQString Config::addCollectionCommandLine() const m_config->setGroup( CONFIG_GROUP ); TQString cmd = m_config->readEntry( "AddCollection Commandline", DEFAULT_ADDCOLLECTION_CMD ); - int index = cmd.tqfind( "%h" ); + int index = cmd.find( "%h" ); if ( index != -1 ) - cmd.tqreplace( index, 2, TQUOTE( mrmldDataDir() ) ); + cmd.replace( index, 2, TQUOTE( mrmldDataDir() ) ); - index = cmd.tqfind( "%e" ); + index = cmd.find( "%e" ); if ( index != -1 ) - cmd.tqreplace( index, 2, TQTextCodec::codecForLocale()->mimeName() ); + cmd.replace( index, 2, TQTextCodec::codecForLocale()->mimeName() ); return cmd; } @@ -203,13 +203,13 @@ TQString Config::removeCollectionCommandLine() const m_config->setGroup( CONFIG_GROUP ); TQString cmd = m_config->readEntry( "RemoveCollection Commandline", DEFAULT_REMOVECOLLECTION_CMD ); - int index = cmd.tqfind( "%h" ); + int index = cmd.find( "%h" ); if ( index != -1 ) - cmd.tqreplace( index, 2, TQUOTE( mrmldDataDir() ) ); + cmd.replace( index, 2, TQUOTE( mrmldDataDir() ) ); - index = cmd.tqfind( "%e" ); + index = cmd.find( "%e" ); if ( index != -1 ) - cmd.tqreplace( index, 2, TQTextCodec::codecForLocale()->mimeName() ); + cmd.replace( index, 2, TQTextCodec::codecForLocale()->mimeName() ); return cmd; } @@ -231,17 +231,17 @@ TQString Config::mrmldCommandline() const DEFAULT_MRMLD_CMD ); // add data directory and port to the commandline - int index = cmd.tqfind( "%p" ); + int index = cmd.find( "%p" ); if ( index != -1 ) { TQString port = settings.autoPort ? TQString() : TQString::number( settings.configuredPort ); - cmd.tqreplace( index, 2, port ); + cmd.replace( index, 2, port ); } - index = cmd.tqfind( "%d" ); + index = cmd.find( "%d" ); if ( index != -1 ) { - cmd.tqreplace( index, 2, TQUOTE( mrmldDataDir() ) ); + cmd.replace( index, 2, TQUOTE( mrmldDataDir() ) ); } qDebug("***** commandline: %s", cmd.latin1()); |