forked from qt-creator/qt-creator
QML: Use new message manager API
That is more evocative. Also avoid some instances of popping up the general messages pane, which should preferably only happen on direct user interaction. Task-number: QTCREATORBUG-24430 Change-Id: I69bb49f84c1486fd32b2a048ca4d76dceb6a0b2b Reviewed-by: Knud Dollereder <knud.dollereder@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -196,11 +196,13 @@ void QmlPreviewConnectionManager::createPreviewClient()
|
||||
m_qmlPreviewClient->announceError(path);
|
||||
});
|
||||
|
||||
connect(m_qmlPreviewClient.data(), &QmlPreviewClient::errorReported,
|
||||
this, [](const QString &error) {
|
||||
Core::MessageManager::write("Error loading QML Live Preview:");
|
||||
Core::MessageManager::write(error);
|
||||
});
|
||||
connect(m_qmlPreviewClient.data(),
|
||||
&QmlPreviewClient::errorReported,
|
||||
this,
|
||||
[](const QString &error) {
|
||||
Core::MessageManager::writeDisrupting("Error loading QML Live Preview:");
|
||||
Core::MessageManager::writeSilently(error);
|
||||
});
|
||||
|
||||
connect(m_qmlPreviewClient.data(), &QmlPreviewClient::fpsReported,
|
||||
this, [this](const QmlPreviewClient::FpsInfo &frames) {
|
||||
|
||||
Reference in New Issue
Block a user