aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/locator/executefilter.cpp
diff options
context:
space:
mode:
authorhjk <qtc-committer@nokia.com>2012-01-24 15:36:40 +0100
committerhjk <qthjk@ovi.com>2012-01-24 18:48:47 +0100
commit4a21f0c3c8b30cd0bc5957110506e304c629a99b (patch)
tree3d2477e3f1485ccaa319557bb2229e3f34324867 /src/plugins/locator/executefilter.cpp
parentc14a4756a92586424f0f1a00c6134e441db50afd (diff)
Use new static ICore interface.
Change-Id: I9b690d9b150c8d162b15370f9f8986267c9128f1 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
Diffstat (limited to 'src/plugins/locator/executefilter.cpp')
-rw-r--r--src/plugins/locator/executefilter.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/plugins/locator/executefilter.cpp b/src/plugins/locator/executefilter.cpp
index 7196fe7e67..f3bc002ff9 100644
--- a/src/plugins/locator/executefilter.cpp
+++ b/src/plugins/locator/executefilter.cpp
@@ -127,9 +127,9 @@ void ExecuteFilter::finished(int exitCode, QProcess::ExitStatus status)
{
QString log = QLatin1Char('\'') + headCommand() + QLatin1String("' ");
if (status == QProcess::NormalExit && exitCode == 0)
- ICore::instance()->messageManager()->printToOutputPane(log + tr("finished"), true);
+ ICore::messageManager()->printToOutputPane(log + tr("finished"), true);
else
- ICore::instance()->messageManager()->printToOutputPane(log + tr("failed"), true);
+ ICore::messageManager()->printToOutputPane(log + tr("failed"), true);
m_taskQueue.dequeue();
if (!m_taskQueue.isEmpty())
@@ -138,14 +138,14 @@ void ExecuteFilter::finished(int exitCode, QProcess::ExitStatus status)
void ExecuteFilter::readStandardOutput()
{
- const QByteArray data = m_process->readAllStandardOutput();
- ICore::instance()->messageManager()->printToOutputPane(QString::fromLocal8Bit(data), true);
+ QByteArray data = m_process->readAllStandardOutput();
+ ICore::messageManager()->printToOutputPane(QString::fromLocal8Bit(data), true);
}
void ExecuteFilter::readStandardError()
{
- const QByteArray data = m_process->readAllStandardError();
- ICore::instance()->messageManager()->printToOutputPane(QString::fromLocal8Bit(data), true);
+ QByteArray data = m_process->readAllStandardError();
+ ICore::messageManager()->printToOutputPane(QString::fromLocal8Bit(data), true);
}
void ExecuteFilter::runHeadCommand()
@@ -155,13 +155,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::instance()->messageManager()->printToOutputPane(log, true);
+ ICore::messageManager()->printToOutputPane(log, true);
m_taskQueue.dequeue();
runHeadCommand();
return;
}
QString log(tr("Starting command '%1'").arg(headCommand()));
- ICore::instance()->messageManager()->printToOutputPane(log, true);
+ ICore::messageManager()->printToOutputPane(log, true);
m_process->setWorkingDirectory(d.workingDirectory);
m_process->setCommand(fullPath, d.arguments);
m_process->start();