diff options
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 ); } |