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) {
|
||||
|
||||
@@ -119,7 +119,7 @@ static bool defaultFileClassifier(const QString &filename)
|
||||
|
||||
static void defaultFpsHandler(quint16 frames[8])
|
||||
{
|
||||
Core::MessageManager::write(QString::fromLatin1("QML preview: %1 fps").arg(frames[0]));
|
||||
Core::MessageManager::writeSilently(QString::fromLatin1("QML preview: %1 fps").arg(frames[0]));
|
||||
}
|
||||
|
||||
class QmlPreviewPluginPrivate : public QObject
|
||||
|
||||
Reference in New Issue
Block a user