diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-07-31 00:42:15 +0200 |
|---|---|---|
| committer | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-08-12 16:54:54 +0200 |
| commit | e2fb8fab2f695ee53ab0aa7a5ff2fe752c719ce8 (patch) | |
| tree | 7bf7daaedddc11b41e704c51792954845ebad924 /Source/Core/DolphinQt/QtUtils/ModalMessageBox.cpp | |
| parent | e8d23af0f2799337af0b0c69a34aa717bf88766e (diff) | |
DolphinQt: Set window decorations for all top-level QWidgets.
Diffstat (limited to 'Source/Core/DolphinQt/QtUtils/ModalMessageBox.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/QtUtils/ModalMessageBox.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/QtUtils/ModalMessageBox.cpp b/Source/Core/DolphinQt/QtUtils/ModalMessageBox.cpp index a12088326c..e80db0ad7e 100644 --- a/Source/Core/DolphinQt/QtUtils/ModalMessageBox.cpp +++ b/Source/Core/DolphinQt/QtUtils/ModalMessageBox.cpp @@ -5,6 +5,8 @@ #include <QApplication> +#include "DolphinQt/QtUtils/SetWindowDecorations.h" + ModalMessageBox::ModalMessageBox(QWidget* parent, Qt::WindowModality modality) : QMessageBox(parent != nullptr ? parent->window() : nullptr) { @@ -28,6 +30,7 @@ static inline int ExecMessageBox(ModalMessageBox::Icon icon, QWidget* parent, co msg.setStandardButtons(buttons); msg.setDefaultButton(default_button); + SetQWidgetWindowDecorations(&msg); return msg.exec(); } |
