mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-16 23:31:40 +00:00
DolphinQt: Set window decorations for all top-level QWidgets.
This commit is contained in:
parent
e8d23af0f2
commit
e2fb8fab2f
43 changed files with 187 additions and 13 deletions
|
@ -35,6 +35,7 @@
|
|||
#include "DolphinQt/MainWindow.h"
|
||||
#include "DolphinQt/QtUtils/ModalMessageBox.h"
|
||||
#include "DolphinQt/QtUtils/RunOnObject.h"
|
||||
#include "DolphinQt/QtUtils/SetWindowDecorations.h"
|
||||
#include "DolphinQt/Resources.h"
|
||||
#include "DolphinQt/Settings.h"
|
||||
#include "DolphinQt/Translation.h"
|
||||
|
@ -92,6 +93,7 @@ static bool QtMsgAlertHandler(const char* caption, const char* text, bool yes_no
|
|||
return QMessageBox::NoIcon;
|
||||
}());
|
||||
|
||||
SetQWidgetWindowDecorations(&message_box);
|
||||
const int button = message_box.exec();
|
||||
if (button == QMessageBox::Yes)
|
||||
return true;
|
||||
|
@ -284,6 +286,7 @@ int main(int argc, char* argv[])
|
|||
"This authorization can be revoked at any time through Dolphin's "
|
||||
"settings."));
|
||||
|
||||
SetQWidgetWindowDecorations(&analytics_prompt);
|
||||
const int answer = analytics_prompt.exec();
|
||||
|
||||
Config::SetBase(Config::MAIN_ANALYTICS_PERMISSION_ASKED, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue