diff options
author | Daniel Teske <daniel.teske@digia.com> | 2013-03-12 16:44:09 +0100 |
---|---|---|
committer | Daniel Teske <daniel.teske@digia.com> | 2013-03-22 13:48:56 +0100 |
commit | 7ce0dfc9915b18c19b42b6bd5b77979c37fb2f5b (patch) | |
tree | 26ea3d565ffd12e146d62dc0d384b0fec2edfcb9 /src/plugins/locator/executefilter.cpp | |
parent | 459655b42b14fa1e012e16989637e957c5913b23 (diff) |
Locator ExecuteFilter: Adjust to MessageManager API change
Change-Id: Id4e6bb3ea953d28d39f1ceae21c977334de3b949
Reviewed-by: Yuchen Deng <loaden@gmail.com>
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Diffstat (limited to 'src/plugins/locator/executefilter.cpp')
-rw-r--r-- | src/plugins/locator/executefilter.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/locator/executefilter.cpp b/src/plugins/locator/executefilter.cpp index 1db4954502..c34f7f5f27 100644 --- a/src/plugins/locator/executefilter.cpp +++ b/src/plugins/locator/executefilter.cpp @@ -125,9 +125,9 @@ void ExecuteFilter::finished(int exitCode, QProcess::ExitStatus status) { QString log = QLatin1Char('\'') + headCommand() + QLatin1String("' "); if (status == QProcess::NormalExit && exitCode == 0) - ICore::messageManager()->printToOutputPane(log + tr("finished"), true); + ICore::messageManager()->printToOutputPane(log + tr("finished"), MessageManager::NoModeSwitch); else - ICore::messageManager()->printToOutputPane(log + tr("failed"), true); + ICore::messageManager()->printToOutputPane(log + tr("failed"), MessageManager::NoModeSwitch); m_taskQueue.dequeue(); if (!m_taskQueue.isEmpty()) @@ -137,13 +137,13 @@ void ExecuteFilter::finished(int exitCode, QProcess::ExitStatus status) void ExecuteFilter::readStandardOutput() { QByteArray data = m_process->readAllStandardOutput(); - ICore::messageManager()->printToOutputPane(QString::fromLocal8Bit(data), true); + ICore::messageManager()->printToOutputPane(QString::fromLocal8Bit(data), MessageManager::NoModeSwitch); } void ExecuteFilter::readStandardError() { QByteArray data = m_process->readAllStandardError(); - ICore::messageManager()->printToOutputPane(QString::fromLocal8Bit(data), true); + ICore::messageManager()->printToOutputPane(QString::fromLocal8Bit(data), MessageManager::NoModeSwitch); } void ExecuteFilter::runHeadCommand() @@ -153,13 +153,13 @@ void ExecuteFilter::runHeadCommand() const QString fullPath = Utils::Environment::systemEnvironment().searchInPath(d.executable); if (fullPath.isEmpty()) { const QString log = tr("Could not find executable for '%1'").arg(d.executable); - ICore::messageManager()->printToOutputPane(log, true); + ICore::messageManager()->printToOutputPane(log, MessageManager::NoModeSwitch); m_taskQueue.dequeue(); runHeadCommand(); return; } QString log(tr("Starting command '%1'").arg(headCommand())); - ICore::messageManager()->printToOutputPane(log, true); + ICore::messageManager()->printToOutputPane(log, MessageManager::NoModeSwitch); m_process->setWorkingDirectory(d.workingDirectory); m_process->setCommand(fullPath, d.arguments); m_process->start(); |