From 534b507907b05ec40df572943ebe27fd0a62a625 Mon Sep 17 00:00:00 2001 From: Shrief Gabr Date: Thu, 13 Mar 2025 12:35:09 +0000 Subject: [PATCH] QmlDesigner: Fix feedback popup behavior in Linux Fixes: QDS-14841 Change-Id: Ibbc4983a046684c0c72c577a1b8500c2f8e901a1 Reviewed-by: Ali Kianian --- src/plugins/qmldesigner/qmldesignerplugin.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/plugins/qmldesigner/qmldesignerplugin.cpp b/src/plugins/qmldesigner/qmldesignerplugin.cpp index 55be25b7c2a..8d665dd5788 100644 --- a/src/plugins/qmldesigner/qmldesignerplugin.cpp +++ b/src/plugins/qmldesigner/qmldesignerplugin.cpp @@ -848,6 +848,12 @@ void QmlDesignerPlugin::launchFeedbackPopupInternal(const QString &identifier) const QString qmlPath = Core::ICore::resourcePath("qmldesigner/feedback/FeedbackPopup.qml").toUrlishString(); m_feedbackWidget->setSource(QUrl::fromLocalFile(qmlPath)); + if (Utils::HostOsInfo::isLinuxHost()) { + QPoint pos = Core::ICore::dialogParent()->pos(); + int x = (Core::ICore::dialogParent()->width() - m_feedbackWidget->width()) / 2; + int y = (Core::ICore::dialogParent()->height() - m_feedbackWidget->height()) / 2; + m_feedbackWidget->move(pos.x() + x, pos.y() + y); + } if (!m_feedbackWidget->errors().isEmpty()) { qDebug() << qmlPath; qDebug() << m_feedbackWidget->errors().first().toString();