Commit fb488b0f authored by Daniel Teske's avatar Daniel Teske Committed by Eike Ziller
Browse files

DebuggingHelperBuildTask: Adjust to message manager api



Change-Id: I11e0c5c6811a4319536d92ce1289ba8c86143764
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent 2cc171a0
......@@ -62,8 +62,8 @@ DebuggingHelperBuildTask::DebuggingHelperBuildTask(const BaseQtVersion *version,
qRegisterMetaType<DebuggingHelperBuildTask::Tools>("DebuggingHelperBuildTask::Tools");
// Print result in application ouptut
connect(this, SIGNAL(logOutput(QString,bool)),
Core::MessageManager::instance(), SLOT(printToOutputPane(QString,bool)),
connect(this, SIGNAL(logOutput(QString,Core::MessageManager::Flag)),
Core::MessageManager::instance(), SLOT(printToOutputPane(QString,Core::MessageManager::Flag)),
Qt::QueuedConnection);
//
......@@ -264,5 +264,9 @@ void DebuggingHelperBuildTask::log(const QString &output, const QString &error)
logEntry.append(error);
m_log.append(logEntry);
emit logOutput(logEntry, m_showErrors && !error.isEmpty());
Core::MessageManager::PrintToOutputPaneFlag flag = Core::MessageManager::Silent;
if (m_showErrors && !error.isEmpty())
flag = Core::MessageManager::NoModeSwitch;
emit logOutput(logEntry, flag);
}
......@@ -33,6 +33,7 @@
#include "qtsupport_global.h"
#include <utils/environment.h>
#include <utils/fileutils.h>
#include <coreplugin/messagemanager.h>
#include <projectexplorer/toolchain.h>
#include <QObject>
......@@ -70,7 +71,7 @@ signals:
void finished(int qtVersionId, const QString &output, DebuggingHelperBuildTask::Tools tools);
// used internally
void logOutput(const QString &output, bool bringToForeground);
void logOutput(const QString &output, Core::MessageManager::PrintToOutputPaneFlag flags);
void updateQtVersions(const Utils::FileName &qmakeCommand);
private:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment