dolphin/Source/Core/DolphinQt/QtUtils
cristian64 8a639bd13d DolphinQt: Center dialogs on top-level parent window.
The `QtUtils::AdjustSizeWithinScreen()` function now centers the
widget on their parent window after the widget's size is adjusted. This
is required in some desktop environments (generally on Linux systems) to
ensure that the just-resized widget remains aligned with its parent
window.

The creation of the **Cheats Manager** dialog is now deferred to first
show, as creating it within the main window's constructor prevents the
dialog from knowing the real position of its parent window, which is
only properly calculated on first show.

For the same reasons, the analytics prompt is now shown only when the
application is ready (i.e. when the main window has been shown).

| Before | After |
| ------ | ----- |
| <img width="1920" height="1080" alt="[Dolphin Emulator] Misplaced analytics prompt" title="[Dolphin Emulator] Misplaced analytics prompt" src="https://github.com/user-attachments/assets/c3e43b3b-cf79-4398-b531-7de6068c583e" /> | <img width="1920" height="1080" alt="[Dolphin Emulator] Centered analytics prompt" title="[Dolphin Emulator] Centered analytics prompt" src="https://github.com/user-attachments/assets/a10d06d9-7438-4032-b96c-dfcb48826349" /> |
| <img width="1920" height="1080" alt="[Dolphin Emulator] Misplaced Settings dialog" title="[Dolphin Emulator] Misplaced Settings dialog" src="https://github.com/user-attachments/assets/f35b10ee-4f07-48d4-86f9-2537ad5ca7ca" /> | <img width="1920" height="1080" alt="[Dolphin Emulator] Centered Settings dialog" title="[Dolphin Emulator] Centered Settings dialog" src="https://github.com/user-attachments/assets/33e37237-77a4-44f6-a0e2-b709f65b672b" /> |
| <img width="1920" height="1080" alt="[Dolphin Emulator] Misplaced Cheats Manager dialog" title="[Dolphin Emulator] Misplaced Cheats Manager dialog" src="https://github.com/user-attachments/assets/1fbd3836-5639-4d5a-b57e-e2e21f21c9db" /> | <img width="1920" height="1080" alt="[Dolphin Emulator] Centered Cheats Manager dialog" title="[Dolphin Emulator] Centered Cheats Manager dialog" src="https://github.com/user-attachments/assets/3f2b1b50-de16-49b7-bac4-c444c6cab0bc" /> |
2025-09-07 21:28:05 +01:00
..
AspectRatioWidget.cpp treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
AspectRatioWidget.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
BlockUserInputFilter.cpp DolphinQt: Make input mapping and output testing non-blocking. 2025-01-01 16:48:32 -06:00
BlockUserInputFilter.h DolphinQt: Make input mapping and output testing non-blocking. 2025-01-01 16:48:32 -06:00
ClearLayoutRecursively.cpp QtUtils/ClearLayoutRecursively: Fix potential crash 2024-07-21 17:36:05 -07:00
ClearLayoutRecursively.h DolphinQt: Move GraphicsModListWidget::ClearLayoutRecursively() to QtUtils. 2023-10-15 18:39:05 +02:00
ClickableStatusBar.h DolphinQt: JIT Widget Refresh 2024-10-19 02:30:44 -07:00
DolphinFileDialog.cpp Treewide: Adjust order of includes 2021-12-10 14:49:57 -08:00
DolphinFileDialog.h Add wrapper function to disable hotkeys for QFileDialog 2021-10-09 22:43:56 -04:00
DoubleClickEventFilter.cpp Treewide: Adjust order of includes 2021-12-10 14:49:57 -08:00
DoubleClickEventFilter.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
ElidedButton.cpp treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
ElidedButton.h Make overriding explicit and remove redundant virtual specifiers on overriding destructors - Core & UnitTests 2025-05-01 15:00:37 +02:00
FileOpenEventFilter.cpp Treewide: Adjust order of includes 2021-12-10 14:49:57 -08:00
FileOpenEventFilter.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
FromStdString.h PPCSymbolDB: GetDescription by std::string_view 2024-04-13 00:19:01 -07:00
ImageConverter.cpp QtUtils/ImageConverter: simplify 2025-06-07 23:06:07 +01:00
ImageConverter.h QtUtils/ImageConverter: simplify 2025-06-07 23:06:07 +01:00
ModalMessageBox.cpp DolphinQt: Replace widespread SetQWidgetWindowDecorations calls with an event filter. 2025-06-07 16:15:34 -05:00
ModalMessageBox.h Implement multiple saves import 2025-03-17 10:43:09 +01:00
NonAutodismissibleMenu.cpp DolphinQt: Use non-autodismissable menus in menu bar. 2025-05-03 20:29:21 +02:00
NonAutodismissibleMenu.h DolphinQt: Use non-autodismissable menus in menu bar. 2025-05-03 20:29:21 +02:00
NonDefaultQPushButton.cpp Add NonDefaultQPushButton to set autoDefault of buttons to false 2022-03-08 08:51:29 +01:00
NonDefaultQPushButton.h Add NonDefaultQPushButton to set autoDefault of buttons to false 2022-03-08 08:51:29 +01:00
ParallelProgressDialog.h DolphinQt: Remove redundant window hints 2025-06-06 19:35:13 -07:00
PartiallyClosableTabWidget.cpp DolphinQt: Rewrite cheat search GUI. 2021-09-15 19:05:49 +02:00
PartiallyClosableTabWidget.h DolphinQt: Rewrite cheat search GUI. 2021-09-15 19:05:49 +02:00
QtUtils.cpp DolphinQt: Center dialogs on top-level parent window. 2025-09-07 21:28:05 +01:00
QtUtils.h DolphinQt: Center dialogs on top-level parent window. 2025-09-07 21:28:05 +01:00
QueueOnObject.h DolphinQt: Reduce latency of TAS input's controller input passthrough 2021-09-19 17:08:10 +02:00
RunOnObject.h linter: Apply clang-format 19.1 formatting 2025-04-23 11:19:20 +02:00
SetWindowDecorations.cpp DolphinQt: Replace widespread SetQWidgetWindowDecorations calls with an event filter. 2025-06-07 16:15:34 -05:00
SetWindowDecorations.h DolphinQt: Replace widespread SetQWidgetWindowDecorations calls with an event filter. 2025-06-07 16:15:34 -05:00
SignalBlocking.h Qt/GeneralPane: Don't trigger config change events when populating GUI. 2022-02-27 17:56:35 +01:00
SignalDaemon.cpp DolphinQt: Fix a -Wunused-result in gcc 11 2021-11-02 13:50:21 +01:00
SignalDaemon.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
UTF8CodePointCountValidator.cpp treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
UTF8CodePointCountValidator.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
WindowActivationEventFilter.cpp Treewide: Adjust order of includes 2021-12-10 14:49:57 -08:00
WindowActivationEventFilter.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
WrapInScrollArea.cpp DolphinQt: Make WrapInScrollArea and GetWrappedWidget less hacky. 2025-05-26 20:58:48 -05:00
WrapInScrollArea.h DolphinQt: Make WrapInScrollArea and GetWrappedWidget less hacky. 2025-05-26 20:58:48 -05:00