forked from qt-creator/qt-creator
analyzer: merge valgrind related settings
This mainly reduces the number of tabs in the settings dialog. Change-Id: I62ba5c74585648c8f495602cd4d676d0628de9b5 Reviewed-on: http://codereview.qt.nokia.com/1575 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
@@ -95,7 +95,7 @@ void ValgrindEngine::start()
|
||||
|
||||
const AnalyzerStartParameters &sp = startParameters();
|
||||
runner()->setWorkingDirectory(sp.workingDirectory);
|
||||
QString valgrindExe = m_settings->subConfig<ValgrindSettings>()->valgrindExecutable();
|
||||
QString valgrindExe = m_settings->subConfig<ValgrindBaseSettings>()->valgrindExecutable();
|
||||
if (!sp.analyzerCmdPrefix.isEmpty())
|
||||
valgrindExe = sp.analyzerCmdPrefix + ' ' + valgrindExe;
|
||||
runner()->setValgrindExecutable(valgrindExe);
|
||||
@@ -159,7 +159,7 @@ void ValgrindEngine::receiveProcessOutput(const QByteArray &b, Utils::OutputForm
|
||||
void ValgrindEngine::receiveProcessError(const QString &error, QProcess::ProcessError e)
|
||||
{
|
||||
if (e == QProcess::FailedToStart) {
|
||||
const QString &valgrind = m_settings->subConfig<ValgrindSettings>()->valgrindExecutable();
|
||||
const QString &valgrind = m_settings->subConfig<ValgrindBaseSettings>()->valgrindExecutable();
|
||||
if (!valgrind.isEmpty()) {
|
||||
emit outputReceived(tr("** Error: \"%1\" could not be started: %2 **\n").arg(valgrind).arg(error), Utils::ErrorMessageFormat);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user