diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
commit | d6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch) | |
tree | d109539636691d7b03036ca1c0ed29dbae6577cf /parts/outputviews/compileerrorfilter.cpp | |
parent | 3331a47a9cad24795c7440ee8107143ce444ef34 (diff) | |
download | tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'parts/outputviews/compileerrorfilter.cpp')
-rw-r--r-- | parts/outputviews/compileerrorfilter.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/parts/outputviews/compileerrorfilter.cpp b/parts/outputviews/compileerrorfilter.cpp index f8246346..9d48f1c8 100644 --- a/parts/outputviews/compileerrorfilter.cpp +++ b/parts/outputviews/compileerrorfilter.cpp @@ -23,7 +23,7 @@ CompileErrorFilter::ErrorFormat::ErrorFormat( const char * regExp, int file, int { } -CompileErrorFilter::ErrorFormat::ErrorFormat( const char * regExp, int file, int line, int text, QString comp ) +CompileErrorFilter::ErrorFormat::ErrorFormat( const char * regExp, int file, int line, int text, TQString comp ) : expression( regExp ) , fileGroup( file ) , lineGroup( line ) @@ -75,13 +75,13 @@ CompileErrorFilter::ErrorFormat* CompileErrorFilter::errorFormats() } -void CompileErrorFilter::processLine( const QString& line ) +void CompileErrorFilter::processLine( const TQString& line ) { bool hasmatch = false; - QString file; + TQString file; int lineNum = 0; - QString text; - QString compiler; + TQString text; + TQString compiler; int i = 0; bool isWarning = false; bool isInstantiationInfo = false; @@ -89,7 +89,7 @@ void CompileErrorFilter::processLine( const QString& line ) ErrorFormat* format = &errFormats[i]; while( !format->expression.isEmpty() ) { - QRegExp& regExp = format->expression; + TQRegExp& regExp = format->expression; if ( regExp.search( line ) != -1 ) { hasmatch = true; @@ -97,7 +97,7 @@ void CompileErrorFilter::processLine( const QString& line ) lineNum = regExp.cap( format->lineGroup ).toInt() - 1; text = regExp.cap( format->textGroup ); compiler = format->compiler; - QString cap = regExp.cap(3); + TQString cap = regExp.cap(3); if (cap.contains("warning:", false) || cap.contains("Warnung:", false)) isWarning = true; if (regExp.cap(3).contains("instantiated from", false)) { @@ -112,8 +112,8 @@ void CompileErrorFilter::processLine( const QString& line ) if( hasmatch ) { // Add hacks for error strings you want excluded here - if( text.find( QString::fromLatin1("(Each undeclared identifier is reported only once") ) >= 0 - || text.find( QString::fromLatin1("for each function it appears in.)") ) >= 0 ) + if( text.find( TQString::fromLatin1("(Each undeclared identifier is reported only once") ) >= 0 + || text.find( TQString::fromLatin1("for each function it appears in.)") ) >= 0 ) hasmatch = false; } |