diff options
Diffstat (limited to 'src/makefrontend.cpp')
-rw-r--r-- | src/makefrontend.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/makefrontend.cpp b/src/makefrontend.cpp index 80ea9b8..2977d8f 100644 --- a/src/makefrontend.cpp +++ b/src/makefrontend.cpp @@ -25,7 +25,7 @@ * ***************************************************************************/ -#include <qregexp.h> +#include <ntqregexp.h> #include "makefrontend.h" // TODO: @@ -68,10 +68,10 @@ MakeFrontend::~MakeFrontend() * @param bBlock (Optional) true to block, false otherwise * @return true if the process was executed successfully, false otherwise */ -bool MakeFrontend::run(const QString& sName, const QStringList& slArgs, - const QString& sWorkDir, bool bBlock) +bool MakeFrontend::run(const TQString& sName, const TQStringList& slArgs, + const TQString& sWorkDir, bool bBlock) { - QStringList slShellArgs; + TQStringList slShellArgs; // Store the current build directory m_slPathStack.push_back(sWorkDir); @@ -89,14 +89,14 @@ bool MakeFrontend::run(const QString& sName, const QStringList& slArgs, * Parses lines of output produced by the make command. * @param sToken A single line of output */ -Frontend::ParseResult MakeFrontend::parseStdout(QString& sToken, ParserDelim) +Frontend::ParseResult MakeFrontend::parseStdout(TQString& sToken, ParserDelim) { - static QRegExp reErrWarn(RE_FILE_LINE); - static QRegExp reEntDir(RE_ENTER_DIR); - static QRegExp reExtDir(RE_EXIT_DIR); - QString sRep; + static TQRegExp reErrWarn(RE_FILE_LINE); + static TQRegExp reEntDir(RE_ENTER_DIR); + static TQRegExp reExtDir(RE_EXIT_DIR); + TQString sRep; int nPos; - QString sFile, sLine, sText; + TQString sFile, sLine, sText; if ((nPos = reErrWarn.search(sToken)) >= 0) { // An error/warning message @@ -112,18 +112,18 @@ Frontend::ParseResult MakeFrontend::parseStdout(QString& sToken, ParserDelim) sText = reErrWarn.capturedTexts()[4]; emit error(sFile, sLine, sText); - sRep = QString("<a href=\"") + sFile + "&\\2\">\\1:\\2</a>\\3: \\4"; + sRep = TQString("<a href=\"") + sFile + "&\\2\">\\1:\\2</a>\\3: \\4"; sToken.replace(reErrWarn, sRep); } else if ((nPos = reEntDir.search(sToken)) >= 0) { // Recursing into a directory m_slPathStack.push_back(reEntDir.capturedTexts()[1]); - sToken = QString("<b>Entering directory</b> ") + + sToken = TQString("<b>Entering directory</b> ") + m_slPathStack.last(); } else if ((nPos = reExtDir.search(sToken)) >= 0) { // Leaving a directory - sToken = QString("<b>Leaving directory</b> ") + + sToken = TQString("<b>Leaving directory</b> ") + m_slPathStack.last(); m_slPathStack.pop_back(); } |