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

QmlJsTools: Adjust to MessageManager api change



Change-Id: I68e662ea30b9c219e3a21e4f48a83c1ad24e2c58
Reviewed-by: default avatarFawzi Mohamed <fawzi.mohamed@digia.com>
parent e72d41cb
......@@ -321,9 +321,9 @@ void ModelManager::loadQmlTypeDescriptions(const QString &resourcePath)
Core::MessageManager *messageManager = Core::MessageManager::instance();
foreach (const QString &error, errors)
messageManager->printToOutputPane(error);
messageManager->printToOutputPane(error, Core::MessageManager::Flash);
foreach (const QString &warning, warnings)
messageManager->printToOutputPane(warning);
messageManager->printToOutputPane(warning, Core::MessageManager::Flash);
}
ModelManagerInterface::WorkingCopy ModelManager::workingCopy() const
......
......@@ -258,7 +258,8 @@ static void printParseWarnings(const QString &libraryPath, const QString &warnin
Core::MessageManager *messageManager = Core::MessageManager::instance();
messageManager->printToOutputPane(
PluginDumper::tr("Warnings while parsing qmltypes information of %1:\n"
"%2").arg(libraryPath, warning));
"%2").arg(libraryPath, warning),
Core::MessageManager::Flash);
}
static QString qmlPluginDumpErrorMessage(QProcess *process)
......@@ -317,7 +318,8 @@ void PluginDumper::qmlPluginTypeDumpDone(int exitCode)
if (exitCode != 0) {
Core::MessageManager *messageManager = Core::MessageManager::instance();
const QString errorMessages = qmlPluginDumpErrorMessage(process);
messageManager->printToOutputPane(qmldumpErrorMessage(libraryPath, errorMessages));
messageManager->printToOutputPane(qmldumpErrorMessage(libraryPath, errorMessages),
Core::MessageManager::Flash);
libraryInfo.setPluginTypeInfoStatus(LibraryInfo::DumpError, qmldumpFailedMessage(libraryPath, errorMessages));
}
......@@ -357,8 +359,8 @@ void PluginDumper::qmlPluginTypeDumpError(QProcess::ProcessError)
Core::MessageManager *messageManager = Core::MessageManager::instance();
const QString errorMessages = qmlPluginDumpErrorMessage(process);
messageManager->printToOutputPane(qmldumpErrorMessage(libraryPath, errorMessages));
messageManager->printToOutputPane(qmldumpErrorMessage(libraryPath, errorMessages),
Core::MessageManager::Flash);
if (!libraryPath.isEmpty()) {
const Snapshot snapshot = m_modelManager->snapshot();
LibraryInfo libraryInfo = snapshot.libraryInfo(libraryPath);
......
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