From 9c2244f40eaa0b6076eea1fd2385b24c82764c8b Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 1 Dec 2024 14:27:19 +1000 Subject: [PATCH] Qt: CustomizeWindowHint should be set for no-close-button --- src/duckstation-qt/logwindow.cpp | 1 + src/duckstation-qt/qtprogresscallback.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/duckstation-qt/logwindow.cpp b/src/duckstation-qt/logwindow.cpp index 0291ee7f2..25e220a35 100644 --- a/src/duckstation-qt/logwindow.cpp +++ b/src/duckstation-qt/logwindow.cpp @@ -111,6 +111,7 @@ void LogWindow::createUi() QIcon icon; icon.addFile(QString::fromUtf8(":/icons/duck.png"), QSize(), QIcon::Normal, QIcon::Off); setWindowIcon(icon); + setWindowFlag(Qt::CustomizeWindowHint, true); setWindowFlag(Qt::WindowCloseButtonHint, false); updateWindowTitle(); diff --git a/src/duckstation-qt/qtprogresscallback.cpp b/src/duckstation-qt/qtprogresscallback.cpp index 18a0ce524..e23a5e951 100644 --- a/src/duckstation-qt/qtprogresscallback.cpp +++ b/src/duckstation-qt/qtprogresscallback.cpp @@ -19,6 +19,7 @@ QtModalProgressCallback::QtModalProgressCallback(QWidget* parent_widget, float s m_dialog.setModal(parent_widget != nullptr); m_dialog.setAutoClose(false); m_dialog.setAutoReset(false); + m_dialog.setWindowFlag(Qt::CustomizeWindowHint, true); m_dialog.setWindowFlag(Qt::WindowCloseButtonHint, false); connect(&m_dialog, &QProgressDialog::canceled, this, &QtModalProgressCallback::dialogCancelled); checkForDelayedShow();