dolphin/Source/Core/DolphinQt
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
..
Achievements DolphinQt: Remove redundant window hints 2025-06-06 19:35:13 -07:00
Config DolphinQt: Make GameConfigHighlighter better handle large files. 2025-08-08 23:49:24 -05:00
Debugger MemoryWidget: Fix build breakage from conflicting PRs 2025-08-01 15:31:38 -07:00
EmulatedUSB HotkeyManager: Add HK_TOGGLE_WII_SPEAK_MUTE 2025-05-07 21:27:50 +04:00
FIFO FIFOAnalyzer: fix command description updates 2025-08-22 02:02:28 +01:00
GameList GameList: Use List View's sorting for Grid View 2025-08-27 15:35:38 -07:00
InfinityBase Source: Remove redundant lambda parameter lists 2025-06-14 10:19:31 +02:00
NetPlay Merge pull request #13794 from Sintendo/doouble-lookup 2025-08-01 21:43:12 +02:00
QtUtils DolphinQt: Center dialogs on top-level parent window. 2025-09-07 21:28:05 +01:00
Settings Qt: Prevent Sliders from resizing due to text changing in their label. 2025-08-22 14:46:33 -07:00
SkylanderPortal Source: Remove redundant lambda parameter lists 2025-06-14 10:19:31 +02:00
Styles/Dark DolphinQt/Styles/Dark: Adjust progress bar 2025-08-31 22:02:00 +02:00
TAS DolphinQt: Replace widespread SetQWidgetWindowDecorations calls with an event filter. 2025-06-07 16:15:34 -05:00
AboutDialog.cpp DolphinQt: Remove redundant window hints 2025-06-06 19:35:13 -07:00
AboutDialog.h
CheatSearchFactoryWidget.cpp DolphinQt: Make WrapInScrollArea and GetWrappedWidget less hacky. 2025-05-26 20:58:48 -05:00
CheatSearchFactoryWidget.h DolphinQt: Make WrapInScrollArea and GetWrappedWidget less hacky. 2025-05-26 20:58:48 -05:00
CheatSearchWidget.cpp Fix various warnings 2025-07-12 12:47:30 +02:00
CheatSearchWidget.h DolphinQt: Make WrapInScrollArea and GetWrappedWidget less hacky. 2025-05-26 20:58:48 -05:00
CheatsManager.cpp DolphinQt: Remove redundant window hints 2025-06-06 19:35:13 -07:00
CheatsManager.h Make overriding explicit and remove redundant virtual specifiers on overriding destructors - Core & UnitTests 2025-05-01 15:00:37 +02:00
CMakeLists.txt Translation: Remove deprecated --sorted-output/-s option 2025-07-16 23:54:29 +02:00
ConvertDialog.cpp DolphinQt: Replace widespread SetQWidgetWindowDecorations calls with an event filter. 2025-06-07 16:15:34 -05:00
ConvertDialog.h
DiscordHandler.cpp DolphinQt: Replace widespread SetQWidgetWindowDecorations calls with an event filter. 2025-06-07 16:15:34 -05:00
DiscordHandler.h Make overriding explicit and remove redundant virtual specifiers on overriding destructors - Core & UnitTests 2025-05-01 15:00:37 +02:00
DiscordJoinRequestDialog.cpp DolphinQt: Remove redundant window hints 2025-06-06 19:35:13 -07:00
DiscordJoinRequestDialog.h
DolphinEmu.entitlements DolphinQt: Remove entitlements for Steam overlay 2024-08-15 12:42:15 -04:00
DolphinEmuDebug.entitlements DolphinQt: Remove entitlements for Steam overlay 2024-08-15 12:42:15 -04:00
DolphinQt.manifest
DolphinQt.rc
DolphinQt.vcxproj Merge pull request #13753 from JoshuaVandaele/netplay-hoverblur 2025-07-07 20:07:11 -05:00
DolphinQt.vcxproj.user
GBAHost.cpp
GBAHost.h Make overriding explicit and remove redundant virtual specifiers on overriding destructors - Core & UnitTests 2025-05-01 15:00:37 +02:00
GBAWidget.cpp Source: Remove redundant lambda parameter lists 2025-06-14 10:19:31 +02:00
GBAWidget.h GBAWidget: Add missing override specifiers 2023-12-13 10:12:18 -05:00
GCMemcardCreateNewDialog.cpp DolphinQt: Remove redundant window hints 2025-06-06 19:35:13 -07:00
GCMemcardCreateNewDialog.h Make overriding explicit and remove redundant virtual specifiers on overriding destructors - Core & UnitTests 2025-05-01 15:00:37 +02:00
GCMemcardManager.cpp DolphinQt: Replace widespread SetQWidgetWindowDecorations calls with an event filter. 2025-06-07 16:15:34 -05:00
GCMemcardManager.h Make overriding explicit and remove redundant virtual specifiers on overriding destructors - Core & UnitTests 2025-05-01 15:00:37 +02:00
Host.cpp Host: Remove outdated comment 2025-08-03 13:24:50 -07:00
Host.h Make overriding explicit and remove redundant virtual specifiers on overriding destructors - Core & UnitTests 2025-05-01 15:00:37 +02:00
HotkeyScheduler.cpp Source: Remove redundant lambda parameter lists 2025-06-14 10:19:31 +02:00
HotkeyScheduler.h Make overriding explicit and remove redundant virtual specifiers on overriding destructors - Core & UnitTests 2025-05-01 15:00:37 +02:00
Info.plist.in Adding support for detecting .bin images 2025-04-21 22:05:24 +10:00
Main.cpp DolphinQt: Center dialogs on top-level parent window. 2025-09-07 21:28:05 +01:00
MainWindow.cpp DolphinQt: Center dialogs on top-level parent window. 2025-09-07 21:28:05 +01:00
MainWindow.h DolphinQt: Center dialogs on top-level parent window. 2025-09-07 21:28:05 +01:00
MenuBar.cpp Merge pull request #13750 from TryTwo/PR_Symbol_Loading 2025-06-29 15:44:52 -04:00
MenuBar.h IOS/USB: Emulate Wii Speak (OpenAL) 2025-05-07 17:45:59 +04:00
NANDRepairDialog.cpp DolphinQt: Remove redundant window hints 2025-06-06 19:35:13 -07:00
NANDRepairDialog.h
NKitWarningDialog.cpp DolphinQt: Replace widespread SetQWidgetWindowDecorations calls with an event filter. 2025-06-07 16:15:34 -05:00
NKitWarningDialog.h
pch_qt.cpp
pch_qt.h
qt.conf
qt.conf.win
qt6.natvis
RenderWidget.cpp DolphinQt/RenderWidget: Grab focus on mouse button press. 2025-05-20 21:06:32 -05:00
RenderWidget.h Remove rounded corners on emulation render window 2024-04-28 12:41:39 +03:00
resource.h
ResourcePackManager.cpp DolphinQt: Replace widespread SetQWidgetWindowDecorations calls with an event filter. 2025-06-07 16:15:34 -05:00
ResourcePackManager.h
Resources.cpp Add Triforce platform and preliminary boot.id parsing 2025-04-21 22:05:25 +10:00
Resources.h
RiivolutionBootWidget.cpp Source: Remove redundant lambda parameter lists 2025-06-14 10:19:31 +02:00
RiivolutionBootWidget.h Make overriding explicit and remove redundant virtual specifiers on overriding destructors - Core & UnitTests 2025-05-01 15:00:37 +02:00
SearchBar.cpp
SearchBar.h Make overriding explicit and remove redundant virtual specifiers on overriding destructors - Core & UnitTests 2025-05-01 15:00:37 +02:00
Settings.cpp Merge pull request #13776 from jordan-woyak/win-dark-mode-styles 2025-08-01 21:26:17 +02:00
Settings.h Merge pull request #13522 from tygyh/Enforce-overriding-destructor-style-Core&UnitTests 2025-06-07 17:55:14 -05:00
ToolBar.cpp Modernize std::max_element with ranges 2024-10-10 00:53:48 -07:00
ToolBar.h
Translation.cpp C++20: Synthesize operator!= From operator== 2024-10-10 20:23:55 -07:00
Translation.h
Updater.cpp DolphinQt: Replace widespread SetQWidgetWindowDecorations calls with an event filter. 2025-06-07 16:15:34 -05:00
Updater.h
WiiUpdate.cpp DolphinQt: Replace widespread SetQWidgetWindowDecorations calls with an event filter. 2025-06-07 16:15:34 -05:00
WiiUpdate.h