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 | e05894553004a47b1e2f276bedcf5963b57a3932 (patch) | |
tree | 2c12af14a609c053131e3a463068fa7589e6ac6a /src/languages/picprogrammer.cpp | |
parent | 60cba8acf96454af45641d6190a3f2ac9f9ff9b0 (diff) | |
download | ktechlab-e05894553004a47b1e2f276bedcf5963b57a3932.tar.gz ktechlab-e05894553004a47b1e2f276bedcf5963b57a3932.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktechlab@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/languages/picprogrammer.cpp')
-rw-r--r-- | src/languages/picprogrammer.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/languages/picprogrammer.cpp b/src/languages/picprogrammer.cpp index 882622e..3c4e38d 100644 --- a/src/languages/picprogrammer.cpp +++ b/src/languages/picprogrammer.cpp @@ -375,7 +375,7 @@ void PicProgrammer::processInput( ProcessOptions options ) settings.load( kapp->config() ); TQString program = options.m_program; - if ( !settings.configNames( true ).tqcontains( program.lower() ) ) + if ( !settings.configNames( true ).contains( program.lower() ) ) { kdError() << k_funcinfo << "Invalid program" << endl; finish( false ); @@ -385,9 +385,9 @@ void PicProgrammer::processInput( ProcessOptions options ) ProgrammerConfig config = settings.config( program ); TQString command = config.writeCommand; - command.tqreplace( "%port", options.m_port ); - command.tqreplace( "%device", TQString( options.m_picID ).remove("P") ); - command.tqreplace( "%file", KProcess::quote( options.inputFiles().first() ) ); + command.replace( "%port", options.m_port ); + command.replace( "%device", TQString( options.m_picID ).remove("P") ); + command.replace( "%file", KProcess::quote( options.inputFiles().first() ) ); m_languageProcess->setUseShell( true ); *m_languageProcess << command; @@ -403,13 +403,13 @@ void PicProgrammer::processInput( ProcessOptions options ) bool PicProgrammer::isError( const TQString &message ) const { - return message.tqcontains( "Error", false ); + return message.contains( "Error", false ); } bool PicProgrammer::isWarning( const TQString &message ) const { - return message.tqcontains( "Warning", false ); + return message.contains( "Warning", false ); } |