Commit 527046ac authored by hjk's avatar hjk

MessageManager: General cleanup.

Apply 'static' pattern, rename 'printToOutputPane' to 'write'

Change-Id: I6f31f1a8c914661e2a2182c0b6256b41ead28de7
Reviewed-by: default avatarDavid Schulz <david.schulz@digia.com>
parent aadb6f16
......@@ -53,6 +53,7 @@
#define ASSERT_STATE(state) ASSERT_STATE_GENERIC(State, state, m_state)
using namespace Core;
using namespace ProjectExplorer;
using namespace Qt4ProjectManager;
......@@ -62,7 +63,7 @@ namespace Internal {
static const char USE_LOCAL_QT_KEY[] = "Qt4ProjectManager.AndroidDeployStep.UseLocalQtLibs";
static const char DEPLOY_ACTION_KEY[] = "Qt4ProjectManager.AndroidDeployStep.DeployAction";
const Core::Id AndroidDeployStep::Id("Qt4ProjectManager.AndroidDeployStep");
const Id AndroidDeployStep::Id("Qt4ProjectManager.AndroidDeployStep");
AndroidDeployStep::AndroidDeployStep(ProjectExplorer::BuildStepList *parent)
: BuildStep(parent, Id)
......@@ -216,13 +217,13 @@ void AndroidDeployStep::cleanLibsOnDevice()
QString avdName = AndroidConfigurations::instance().findAvd(&deviceAPILevel, targetArch);
if (avdName.isEmpty()) {
// No avd found, don't create one just error out
Core::MessageManager::instance()->printToOutputPane(tr("Could not find a device."), Core::MessageManager::NoModeSwitch);
MessageManager::write(tr("Could not find a device."));
return;
}
deviceSerialNumber = AndroidConfigurations::instance().startAVD(avdName, deviceAPILevel, targetArch);
}
if (!deviceSerialNumber.length()) {
Core::MessageManager::instance()->printToOutputPane(tr("Could not run adb. No device found."), Core::MessageManager::NoModeSwitch);
MessageManager::write(tr("Could not run adb. No device found."));
return;
}
QProcess *process = new QProcess(this);
......@@ -230,9 +231,7 @@ void AndroidDeployStep::cleanLibsOnDevice()
arguments << QLatin1String("shell") << QLatin1String("rm") << QLatin1String("-r") << QLatin1String("/data/local/tmp/qt");
connect(process, SIGNAL(finished(int)), this, SLOT(processFinished()));
const QString adb = AndroidConfigurations::instance().adbToolPath().toString();
Core::MessageManager::instance()->printToOutputPane(adb + QLatin1String(" ")
+ arguments.join(QLatin1String(" ")),
Core::MessageManager::NoModeSwitch);
MessageManager::write(adb + QLatin1Char(' ') + arguments.join(QLatin1Char(' ')));
process->start(adb, arguments);
if (!process->waitForStarted(500))
delete process;
......@@ -242,9 +241,8 @@ void AndroidDeployStep::processFinished()
{
QProcess *process = qobject_cast<QProcess *>(sender());
QTC_ASSERT(process, return);
Core::MessageManager::instance()->printToOutputPane(QString::fromLocal8Bit(process->readAll()), Core::MessageManager::NoModeSwitch);
Core::MessageManager::instance()->printToOutputPane(tr("adb finished with exit code %1.").arg(process->exitCode()),
Core::MessageManager::NoModeSwitch);
MessageManager::write(QString::fromLocal8Bit(process->readAll()));
MessageManager::write(tr("adb finished with exit code %1.").arg(process->exitCode()));
process->deleteLater();
}
......@@ -274,14 +272,13 @@ void AndroidDeployStep::installQASIPackage(const QString &packagePath)
if (deviceSerialNumber.isEmpty()) {
QString avdName = AndroidConfigurations::instance().findAvd(&deviceAPILevel, targetArch);
if (avdName.isEmpty()) {
Core::MessageManager::instance()->printToOutputPane(tr("No device found."),
Core::MessageManager::NoModeSwitch);
MessageManager::write(tr("No device found."));
return;
}
deviceSerialNumber = AndroidConfigurations::instance().startAVD(avdName, deviceAPILevel, targetArch);
}
if (!deviceSerialNumber.length()) {
Core::MessageManager::instance()->printToOutputPane(tr("Could not run adb. No device found."), Core::MessageManager::NoModeSwitch);
MessageManager::write(tr("Could not run adb. No device found."));
return;
}
......@@ -291,9 +288,7 @@ void AndroidDeployStep::installQASIPackage(const QString &packagePath)
connect(process, SIGNAL(finished(int)), this, SLOT(processFinished()));
const QString adb = AndroidConfigurations::instance().adbToolPath().toString();
Core::MessageManager::instance()->printToOutputPane(adb + QLatin1String(" ")
+ arguments.join(QLatin1String(" ")),
Core::MessageManager::NoModeSwitch);
MessageManager::write(adb + QLatin1Char(' ') + arguments.join(QLatin1Char(' ')));
process->start(adb, arguments);
if (!process->waitForFinished(500))
delete process;
......
......@@ -610,7 +610,7 @@ void ExternalToolRunner::run()
if (!m_resolvedWorkingDirectory.isEmpty())
m_process->setWorkingDirectory(m_resolvedWorkingDirectory);
m_process->setCommand(m_resolvedExecutable, m_resolvedArguments);
MessageManager::instance()->printToOutputPane(
MessageManager::write(
tr("Starting external tool '%1' %2").arg(m_resolvedExecutable, m_resolvedArguments), MessageManager::Silent);
m_process->start();
}
......@@ -632,7 +632,7 @@ void ExternalToolRunner::finished(int exitCode, QProcess::ExitStatus status)
if (m_tool->modifiesCurrentDocument())
DocumentManager::unexpectFileChange(m_expectedFileName);
}
MessageManager::instance()->printToOutputPane(
MessageManager::write(
tr("'%1' finished").arg(m_resolvedExecutable), MessageManager::Silent);
deleteLater();
}
......@@ -653,7 +653,7 @@ void ExternalToolRunner::readStandardOutput()
QByteArray data = m_process->readAllStandardOutput();
QString output = m_outputCodec->toUnicode(data.constData(), data.length(), &m_outputCodecState);
if (m_tool->outputHandling() == ExternalTool::ShowInPane)
MessageManager::instance()->printToOutputPane(output, MessageManager::NoModeSwitch);
MessageManager::write(output);
else if (m_tool->outputHandling() == ExternalTool::ReplaceSelection)
m_processOutput.append(output);
}
......@@ -665,7 +665,7 @@ void ExternalToolRunner::readStandardError()
QByteArray data = m_process->readAllStandardError();
QString output = m_outputCodec->toUnicode(data.constData(), data.length(), &m_errorCodecState);
if (m_tool->errorHandling() == ExternalTool::ShowInPane)
MessageManager::instance()->printToOutputPane(output, MessageManager::NoModeSwitch);
MessageManager::write(output);
else if (m_tool->errorHandling() == ExternalTool::ReplaceSelection)
m_processOutput.append(output);
}
......@@ -767,7 +767,7 @@ void ExternalToolManager::menuActivated()
QTC_ASSERT(tool, return);
ExternalToolRunner *runner = new ExternalToolRunner(tool);
if (runner->hasError())
MessageManager::instance()->printToOutputPane(runner->errorString(), MessageManager::NoModeSwitch);
MessageManager::write(runner->errorString());
}
QMap<QString, QList<Internal::ExternalTool *> > ExternalToolManager::toolsByCategory() const
......
......@@ -332,7 +332,7 @@ bool MainWindow::init(QString *errorMessage)
m_outputView->setWidget(OutputPaneManager::instance()->buttonsWidget());
m_outputView->setPosition(Core::StatusBarWidget::Second);
ExtensionSystem::PluginManager::addObject(m_outputView);
m_messageManager->init();
MessageManager::init();
return true;
}
......
......@@ -35,12 +35,17 @@
using namespace Core;
static MessageManager *m_instance = 0;
MessageManager *MessageManager::instance() { return m_instance; }
Internal::MessageOutputWindow *m_messageOutputWindow = 0;
QObject *MessageManager::instance()
{
return m_instance;
}
MessageManager::MessageManager()
: m_messageOutputWindow(0)
{
m_instance = this;
m_messageOutputWindow = 0;
qRegisterMetaType<Core::MessageManager::PrintToOutputPaneFlags>();
}
......@@ -50,7 +55,6 @@ MessageManager::~MessageManager()
ExtensionSystem::PluginManager::removeObject(m_messageOutputWindow);
delete m_messageOutputWindow;
}
m_instance = 0;
}
......@@ -66,7 +70,12 @@ void MessageManager::showOutputPane()
m_messageOutputWindow->popup(IOutputPane::ModeSwitch);
}
void MessageManager::printToOutputPane(const QString &text, PrintToOutputPaneFlags flags)
void MessageManager::write(const QString &text)
{
write(text, NoModeSwitch);
}
void MessageManager::write(const QString &text, PrintToOutputPaneFlags flags)
{
if (!m_messageOutputWindow)
return;
......
......@@ -38,39 +38,37 @@
namespace Core {
namespace Internal {
class MessageOutputWindow;
class MainWindow;
}
namespace Internal { class MainWindow; }
class CORE_EXPORT MessageManager : public QObject
{
Q_OBJECT
public:
static MessageManager *instance();
static QObject *instance();
static void showOutputPane();
void showOutputPane();
enum PrintToOutputPaneFlag {
NoModeSwitch = Core::IOutputPane::NoModeSwitch,
ModeSwitch = Core::IOutputPane::ModeSwitch,
WithFocus = Core::IOutputPane::WithFocus,
EnsureSizeHint = Core::IOutputPane::EnsureSizeHint,
Silent = 256,
Flash = 512 };
NoModeSwitch = IOutputPane::NoModeSwitch,
ModeSwitch = IOutputPane::ModeSwitch,
WithFocus = IOutputPane::WithFocus,
EnsureSizeHint = IOutputPane::EnsureSizeHint,
Silent = 256,
Flash = 51
};
Q_DECLARE_FLAGS(PrintToOutputPaneFlags, PrintToOutputPaneFlag)
static void write(const QString &text); // imply NoModeSwitch
public slots:
void printToOutputPane(const QString &text, Core::MessageManager::PrintToOutputPaneFlags flags);
static void write(const QString &text, Core::MessageManager::PrintToOutputPaneFlags flags);
private:
MessageManager();
~MessageManager();
void init();
Internal::MessageOutputWindow *m_messageOutputWindow;
static void init();
friend class Core::Internal::MainWindow;
};
......
......@@ -306,7 +306,7 @@ void CodepasterPlugin::finishPost(const QString &link)
{
if (m_settings->copyToClipboard)
QApplication::clipboard()->setText(link);
MessageManager::instance()->printToOutputPane(link, m_settings->displayOutput ? Core::MessageManager::ModeSwitch : Core::MessageManager::Silent);
MessageManager::write(link, m_settings->displayOutput ? Core::MessageManager::ModeSwitch : Core::MessageManager::Silent);
}
// Extract the characters that can be used for a file name from a title
......@@ -346,14 +346,13 @@ void CodepasterPlugin::finishFetch(const QString &titleDescription,
const QString &content,
bool error)
{
Core::MessageManager *messageManager = MessageManager::instance();
// Failure?
if (error) {
messageManager->printToOutputPane(content, Core::MessageManager::NoModeSwitch);
MessageManager::write(content);
return;
}
if (content.isEmpty()) {
messageManager->printToOutputPane(tr("Empty snippet received for \"%1\".").arg(titleDescription), Core::MessageManager::NoModeSwitch);
MessageManager::write(tr("Empty snippet received for \"%1\".").arg(titleDescription));
return;
}
// If the mime type has a preferred suffix (cpp/h/patch...), use that for
......@@ -363,7 +362,7 @@ void CodepasterPlugin::finishFetch(const QString &titleDescription,
// Default to "txt".
QByteArray byteContent = content.toUtf8();
QString suffix;
if (const Core::MimeType mimeType = Core::MimeDatabase::findByData(byteContent))
if (const MimeType mimeType = MimeDatabase::findByData(byteContent))
suffix = mimeType.preferredSuffix();
if (suffix.isEmpty())
suffix = QLatin1String("txt");
......@@ -372,7 +371,7 @@ void CodepasterPlugin::finishFetch(const QString &titleDescription,
saver.setAutoRemove(false);
saver.write(byteContent);
if (!saver.finalize()) {
messageManager->printToOutputPane(saver.errorString(), Core::MessageManager::NoModeSwitch);
MessageManager::write(saver.errorString());
return;
}
const QString fileName = saver.fileName();
......
......@@ -205,11 +205,10 @@ void FileShareProtocol::paste(const QString &text,
saver.setResult(&writer);
}
if (!saver.finalize()) {
Core::MessageManager::instance()->printToOutputPane(saver.errorString(), Core::MessageManager::NoModeSwitch);
Core::MessageManager::write(saver.errorString());
return;
}
const QString msg = tr("Pasted: %1").arg(saver.fileName());
Core::MessageManager::instance()->printToOutputPane(msg, Core::MessageManager::NoModeSwitch);
Core::MessageManager::write(tr("Pasted: %1").arg(saver.fileName()));
}
} // namespace CodePaster
......@@ -1479,7 +1479,7 @@ void DebuggerPluginPrivate::parseCommandLineArguments()
errorMessage = tr("Error evaluating command line arguments: %1")
.arg(errorMessage);
qWarning("%s\n", qPrintable(errorMessage));
Core::MessageManager::instance()->printToOutputPane(errorMessage, Core::MessageManager::NoModeSwitch);
MessageManager::write(errorMessage);
}
if (!m_scheduledStarts.isEmpty())
QTimer::singleShot(0, this, SLOT(runScheduled()));
......
......@@ -126,9 +126,9 @@ void ExecuteFilter::finished(int exitCode, QProcess::ExitStatus status)
{
QString log = QLatin1Char('\'') + headCommand() + QLatin1String("' ");
if (status == QProcess::NormalExit && exitCode == 0)
MessageManager::instance()->printToOutputPane(log + tr("finished"), MessageManager::NoModeSwitch);
MessageManager::write(log + tr("finished"));
else
MessageManager::instance()->printToOutputPane(log + tr("failed"), MessageManager::NoModeSwitch);
MessageManager::write(log + tr("failed"));
m_taskQueue.dequeue();
if (!m_taskQueue.isEmpty())
......@@ -138,13 +138,13 @@ void ExecuteFilter::finished(int exitCode, QProcess::ExitStatus status)
void ExecuteFilter::readStandardOutput()
{
QByteArray data = m_process->readAllStandardOutput();
MessageManager::instance()->printToOutputPane(QString::fromLocal8Bit(data), MessageManager::NoModeSwitch);
MessageManager::write(QString::fromLocal8Bit(data));
}
void ExecuteFilter::readStandardError()
{
QByteArray data = m_process->readAllStandardError();
MessageManager::instance()->printToOutputPane(QString::fromLocal8Bit(data), MessageManager::NoModeSwitch);
MessageManager::write(QString::fromLocal8Bit(data));
}
void ExecuteFilter::runHeadCommand()
......@@ -153,14 +153,12 @@ void ExecuteFilter::runHeadCommand()
const ExecuteData &d = m_taskQueue.head();
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);
MessageManager::instance()->printToOutputPane(log, MessageManager::NoModeSwitch);
MessageManager::write(tr("Could not find executable for '%1'").arg(d.executable));
m_taskQueue.dequeue();
runHeadCommand();
return;
}
QString log(tr("Starting command '%1'").arg(headCommand()));
MessageManager::instance()->printToOutputPane(log, MessageManager::NoModeSwitch);
MessageManager::write(tr("Starting command '%1'").arg(headCommand()));
m_process->setWorkingDirectory(d.workingDirectory);
m_process->setCommand(fullPath, d.arguments);
m_process->start();
......
......@@ -495,7 +495,7 @@ QList<CustomWizard*> CustomWizard::createWizards()
if (CustomWizardPrivate::verbose) { // Print to output pane for Windows.
verboseLog += listWizards();
qWarning("%s", qPrintable(verboseLog));
Core::MessageManager::instance()->printToOutputPane(verboseLog, Core::MessageManager::ModeSwitch);
Core::MessageManager::write(verboseLog, Core::MessageManager::ModeSwitch);
}
return rc;
}
......
......@@ -63,9 +63,8 @@ void QbsLogSink::sendMessages()
m_messages.clear();
}
Core::MessageManager *mm = Core::MessageManager::instance();
foreach (const QString &msg, toSend)
mm->printToOutputPane(msg, Core::MessageManager::NoModeSwitch);
Core::MessageManager::write(msg);
}
void QbsLogSink::doPrintWarning(const qbs::ErrorInfo &warning)
......
......@@ -313,11 +313,10 @@ void ModelManager::loadQmlTypeDescriptions(const QString &resourcePath)
CppQmlTypesLoader::defaultLibraryObjects.unite(
CppQmlTypesLoader::loadQmlTypes(qmlTypesFiles, &errors, &warnings));
MessageManager *messageManager = MessageManager::instance();
foreach (const QString &error, errors)
messageManager->printToOutputPane(error, MessageManager::Flash);
MessageManager::write(error, MessageManager::Flash);
foreach (const QString &warning, warnings)
messageManager->printToOutputPane(warning, MessageManager::Flash);
MessageManager::write(warning, MessageManager::Flash);
}
ModelManagerInterface::WorkingCopy ModelManager::workingCopy() const
......
......@@ -253,8 +253,7 @@ static QString qmldumpFailedMessage(const QString &libraryPath, const QString &e
static void printParseWarnings(const QString &libraryPath, const QString &warning)
{
Core::MessageManager *messageManager = Core::MessageManager::instance();
messageManager->printToOutputPane(
Core::MessageManager::write(
PluginDumper::tr("Warnings while parsing qmltypes information of %1:\n"
"%2").arg(libraryPath, warning),
Core::MessageManager::Flash);
......@@ -314,9 +313,8 @@ void PluginDumper::qmlPluginTypeDumpDone(int exitCode)
LibraryInfo libraryInfo = snapshot.libraryInfo(libraryPath);
if (exitCode != 0) {
Core::MessageManager *messageManager = Core::MessageManager::instance();
const QString errorMessages = qmlPluginDumpErrorMessage(process);
messageManager->printToOutputPane(qmldumpErrorMessage(libraryPath, errorMessages),
Core::MessageManager::write(qmldumpErrorMessage(libraryPath, errorMessages),
Core::MessageManager::Flash);
libraryInfo.setPluginTypeInfoStatus(LibraryInfo::DumpError, qmldumpFailedMessage(libraryPath, errorMessages));
}
......@@ -356,9 +354,8 @@ void PluginDumper::qmlPluginTypeDumpError(QProcess::ProcessError)
if (libraryPath.isEmpty())
return;
Core::MessageManager *messageManager = Core::MessageManager::instance();
const QString errorMessages = qmlPluginDumpErrorMessage(process);
messageManager->printToOutputPane(qmldumpErrorMessage(libraryPath, errorMessages),
Core::MessageManager::write(qmldumpErrorMessage(libraryPath, errorMessages),
Core::MessageManager::Flash);
if (!libraryPath.isEmpty()) {
const Snapshot snapshot = m_modelManager->snapshot();
......
......@@ -468,14 +468,12 @@ void QmlProfilerTool::startTool(StartMode mode)
void QmlProfilerTool::logStatus(const QString &msg)
{
MessageManager *messageManager = MessageManager::instance();
messageManager->printToOutputPane(msg, Core::MessageManager::Flash);
MessageManager::write(msg, Core::MessageManager::Flash);
}
void QmlProfilerTool::logError(const QString &msg)
{
MessageManager *messageManager = MessageManager::instance();
messageManager->printToOutputPane(msg, Core::MessageManager::NoModeSwitch);
MessageManager::write(msg);
}
void QmlProfilerTool::showErrorDialog(const QString &error)
......
......@@ -49,12 +49,11 @@
#include <QDebug>
namespace QmlProjectManager {
using namespace Core;
namespace QmlProjectManager {
namespace Internal {
class QmlProjectKitMatcher : public ProjectExplorer::KitMatcher
{
public:
......@@ -110,8 +109,8 @@ QmlProject::QmlProject(Internal::Manager *manager, const QString &fileName)
m_defaultImport(UnknownImport),
m_modelManager(QmlJS::ModelManagerInterface::instance())
{
setProjectContext(Core::Context(QmlProjectManager::Constants::PROJECTCONTEXT));
setProjectLanguages(Core::Context(ProjectExplorer::Constants::LANG_QMLJS));
setProjectContext(Context(QmlProjectManager::Constants::PROJECTCONTEXT));
setProjectLanguages(Context(ProjectExplorer::Constants::LANG_QMLJS));
QFileInfo fileInfo(m_fileName);
m_projectName = fileInfo.completeBaseName();
......@@ -119,7 +118,7 @@ QmlProject::QmlProject(Internal::Manager *manager, const QString &fileName)
m_file = new Internal::QmlProjectFile(this, fileName);
m_rootNode = new Internal::QmlProjectNode(this, m_file);
Core::DocumentManager::addDocument(m_file, true);
DocumentManager::addDocument(m_file, true);
m_manager->registerProject(this);
}
......@@ -128,7 +127,7 @@ QmlProject::~QmlProject()
{
m_manager->unregisterProject(this);
Core::DocumentManager::removeDocument(m_file);
DocumentManager::removeDocument(m_file);
delete m_projectItem.data();
delete m_rootNode;
......@@ -179,7 +178,6 @@ static QmlProject::QmlImport detectImport(const QString &qml) {
void QmlProject::parseProject(RefreshOptions options)
{
Core::MessageManager *messageManager = Core::MessageManager::instance();
if (options & Files) {
if (options & ProjectFile)
delete m_projectItem.data();
......@@ -191,8 +189,8 @@ void QmlProject::parseProject(RefreshOptions options)
this, SLOT(refreshFiles(QSet<QString>,QSet<QString>)));
} else {
messageManager->printToOutputPane(tr("Error while loading project file %1.").arg(m_fileName), Core::MessageManager::NoModeSwitch);
messageManager->printToOutputPane(errorMessage, Core::MessageManager::NoModeSwitch);
MessageManager::write(tr("Error while loading project file %1.").arg(m_fileName), MessageManager::NoModeSwitch);
MessageManager::write(errorMessage);
}
}
if (m_projectItem) {
......@@ -205,10 +203,8 @@ void QmlProject::parseProject(RefreshOptions options)
Utils::FileReader reader;
QString errorMessage;
if (!reader.fetch(mainFilePath, &errorMessage)) {
messageManager->printToOutputPane(
tr("Warning while loading project file %1.").arg(m_fileName),
Core::MessageManager::NoModeSwitch);
messageManager->printToOutputPane(errorMessage, Core::MessageManager::NoModeSwitch);
MessageManager::write(tr("Warning while loading project file %1.").arg(m_fileName));
MessageManager::write(errorMessage);
} else {
m_defaultImport = detectImport(QString::fromUtf8(reader.data()));
}
......@@ -314,12 +310,12 @@ QString QmlProject::displayName() const
return m_projectName;
}
Core::Id QmlProject::id() const
Id QmlProject::id() const
{
return "QmlProjectManager.QmlProject";
}
Core::IDocument *QmlProject::document() const
IDocument *QmlProject::document() const
{
return m_file;
}
......@@ -331,7 +327,7 @@ ProjectExplorer::IProjectManager *QmlProject::projectManager() const
bool QmlProject::supportsKit(ProjectExplorer::Kit *k, QString *errorMessage) const
{
Core::Id deviceType = ProjectExplorer::DeviceTypeKitInformation::deviceTypeId(k);
Id deviceType = ProjectExplorer::DeviceTypeKitInformation::deviceTypeId(k);
if (deviceType != ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE) {
if (errorMessage)
*errorMessage = tr("Device type is not desktop.");
......
......@@ -966,7 +966,7 @@ QString Qt4Project::generatedUiHeader(const QString &formFile) const
void Qt4Project::proFileParseError(const QString &errorMessage)
{
Core::MessageManager::instance()->printToOutputPane(errorMessage, Core::MessageManager::NoModeSwitch);
Core::MessageManager::write(errorMessage);
}
QtSupport::ProFileReader *Qt4Project::createProFileReader(const Qt4ProFileNode *qt4ProFileNode, Qt4BuildConfiguration *bc)
......
......@@ -59,7 +59,7 @@ DebuggingHelperBuildTask::DebuggingHelperBuildTask(const BaseQtVersion *version,
// Print result in application ouptut
connect(this, SIGNAL(logOutput(QString,Core::MessageManager::PrintToOutputPaneFlags)),
Core::MessageManager::instance(), SLOT(printToOutputPane(QString,Core::MessageManager::PrintToOutputPaneFlags)),
Core::MessageManager::instance(), SLOT(write(QString,Core::MessageManager::PrintToOutputPaneFlags)),
Qt::QueuedConnection);
//
......
......@@ -49,7 +49,7 @@ ProMessageHandler::ProMessageHandler(bool verbose)
: m_verbose(verbose)
{
QObject::connect(this, SIGNAL(errorFound(QString,Core::MessageManager::PrintToOutputPaneFlags)),
Core::MessageManager::instance(), SLOT(printToOutputPane(QString,Core::MessageManager::PrintToOutputPaneFlags)),
Core::MessageManager::instance(), SLOT(write(QString,Core::MessageManager::PrintToOutputPaneFlags)),
Qt::QueuedConnection);
}
......
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