qmldesigner: use Core::ICore::dialogParent() instead of mainWindow

According to a change in master from Eike this keeps window stack
order.

Change-Id: If9cb615cfa2fa3cf71f86f10711897418e3cf93b
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Tim Jenssen
2020-06-05 16:38:20 +02:00
parent 3db68b4aab
commit d5b2a90bc0

View File

@@ -117,7 +117,7 @@ void QmlPreviewConnectionManager::createDebugTranslationClient()
}); });
QObject::connect(m_qmlDebugTranslationClient.data(), &QmlDebugTranslationClient::debugServiceUnavailable, QObject::connect(m_qmlDebugTranslationClient.data(), &QmlDebugTranslationClient::debugServiceUnavailable,
this, []() { this, []() {
QMessageBox::warning(Core::ICore::mainWindow(), "Error connect to QML DebugTranslation service", QMessageBox::warning(Core::ICore::dialogParent(), "Error connect to QML DebugTranslation service",
"QML DebugTranslation feature is not available for this version of Qt."); "QML DebugTranslation feature is not available for this version of Qt.");
}, Qt::QueuedConnection); // Queue it, so that it interfere with the connection timer }, Qt::QueuedConnection); // Queue it, so that it interfere with the connection timer
} }
@@ -209,7 +209,7 @@ void QmlPreviewConnectionManager::createPreviewClient()
QObject::connect(m_qmlPreviewClient.data(), &QmlPreviewClient::debugServiceUnavailable, QObject::connect(m_qmlPreviewClient.data(), &QmlPreviewClient::debugServiceUnavailable,
this, []() { this, []() {
QMessageBox::warning(Core::ICore::mainWindow(), "Error loading QML Live Preview", QMessageBox::warning(Core::ICore::dialogParent(), "Error loading QML Live Preview",
"QML Live Preview is not available for this version of Qt."); "QML Live Preview is not available for this version of Qt.");
}, Qt::QueuedConnection); // Queue it, so that it interfere with the connection timer }, Qt::QueuedConnection); // Queue it, so that it interfere with the connection timer