summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/QtUtils
AgeCommit message (Collapse)Author
2026-04-24QtUtils: Add ShowFileInFolder function and make GameList right-click menu ↵Jordan Woyak
actions use it.
2026-04-17Improve usage of std::move and const references parametersMartino Fontana
Accomplished using `run-clang-tidy` with `performance-move-const-arg,performance-unnecessary-value-param,modernize-pass-by-value`. Changed arguments to const references, removed them where inappropriate (e.g. sink parameters). Same with std::move. Manually reviewed each change to make sure that it makes sense, and do something more appropriate if possible.
2026-03-12DolphinQt: Improve TAS UI WidgetsStavros Kosmas
Made Stick and IR Widgets bigger Improved Stick and IR layouts to better utilize space Made Stick and IR Widgets Scale at a fixed ratio when window is resized Added Scrollbars to Stick and IR Widgets Reduced Spinbox padding in dark style
2026-01-25Remove unused importsMartino Fontana
Yellow squiggly lines begone! Done automatically on .cpp files through `run-clang-tidy`, with manual corrections to the mistakes. If an import is directly used, but is technically unnecessary since it's recursively imported by something else, it is *not* removed. The tool doesn't touch .h files, so I did some of them by hand while fixing errors due to old recursive imports. Not everything is removed, but the cleanup should be substantial enough. Because this done on Linux, code that isn't used on it is mostly untouched. (Hopefully no open PR is depending on these imports...)
2025-11-18DolphinQt/QtUtils: Simplify RunOnObject and eliminate Common::Event race.Jordan Woyak
2025-10-27AdvancedPane: Add a button to restore default settingsJoshua Vandaële
2025-09-07DolphinQt: Center dialogs on top-level parent window.cristian64
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-06-09Merge pull request #13738 from Tilka/convert_bannerJMC47
QtUtils/ImageConverter: simplify
2025-06-07Merge pull request #13665 from jordan-woyak/dark-mode-filterJordan Woyak
DolphinQt: Replace widespread SetQWidgetWindowDecorations calls with an event filter.
2025-06-07Merge pull request #13522 from ↵Jordan Woyak
tygyh/Enforce-overriding-destructor-style-Core&UnitTests Core & UnitTests: Make overriding explicit and remove redundant virtual specifiers on overriding destructors
2025-06-07QtUtils/ImageConverter: simplifyTillmann Karras
2025-06-07DolphinQt: Replace widespread SetQWidgetWindowDecorations calls with an ↵Jordan Woyak
event filter.
2025-06-06DolphinQt: Remove redundant window hintsDentomologist
Remove window hints clearing the flag Qt::WindowContextHelpButtonHint, which is already off by default in Qt 6. In Qt 5 this flag was set by default for QDialogs, and on Windows put a ? button in the corner of the title bar allowing users to activate Qt's QWhatsThis help system for a given widget. Since we don't set that text the ? button was useless and so we hid it manually.
2025-05-26DolphinQt: Fix the WiiPane hinting a larger than required size.Jordan Woyak
2025-05-26DolphinQt: Make WrapInScrollArea and GetWrappedWidget less hacky.Jordan Woyak
2025-05-15DolphinQt: Add utility function for creating label text with a standard icon.Jordan Woyak
2025-05-03DolphinQt: Use non-autodismissable menus in menu bar.cristian64
A new class that derives from `QMenu` has been introduced. Menus of this `NonAutodismissibleMenu` type will stay visible when a _checkable_ action is triggered. This is convenient in menus that feature a series of check boxes that toggle visibility of third components (e.g. the **List Columns** menu), allowing the user to toggle several actions at once. For now, the new type is used in the top menu bar.
2025-05-02Merge pull request #13278 from JoshuaVandaele/saves-importJosJuice
Implement importing multiple saves from an export folder
2025-05-01Make overriding explicit and remove redundant virtual specifiers on ↵Dr. Dystopia
overriding destructors - Core & UnitTests
2025-04-23linter: Apply clang-format 19.1 formattingJoshua Vandaële
find ./Source/ -name '*.cpp' -o -name '*.h' | xargs clang-format-19 -i
2025-03-17Implement multiple saves importJoshua Vandaële
https://bugs.dolphin-emu.org/issues/12887
2025-01-01DolphinQt: Make input mapping and output testing non-blocking.Jordan Woyak
2024-11-02Add include guard to QtUtils.hJordan Woyak
2024-10-31DolphinQt: Ensure skylanders QDateTimeEdit shows a four digit year without ↵Jordan Woyak
forcing dd-mm-yyyy format.
2024-10-19DolphinQt: JIT Widget Refreshmitaclaw
Fulfilling a certain six-year-old todo.
2024-07-21QtUtils/ClearLayoutRecursively: Fix potential crashDentomologist
Use QObject->deleteLater() instead of the delete operator to destroy child widgets of the layout. This prevents crashes caused by pending events trying to access the now-destroyed widget.
2024-04-13PPCSymbolDB: GetDescription by std::string_viewmitaclaw
Should save a lot of deep copies.
2023-11-05DolphinQt: Check theme instead of system for when to apply dark title bars ↵Admiral H. Curtiss
on Windows.
2023-10-15DolphinQt: Move GraphicsModListWidget::ClearLayoutRecursively() to QtUtils.Admiral H. Curtiss
2023-08-12DolphinQt: Set window decorations for all top-level QWidgets.Admiral H. Curtiss
2023-08-12DolphinQt: Add function to set a QWidget's window decorations to dark ones ↵Admiral H. Curtiss
on Windows.
2023-07-01QtUtils: Remove unused FlowLayoutDentomologist
FlowLayout hasn't been used since b65faa0549e2a017dfe1170eb191523e48af81a7.
2023-06-12ParallelProgressDialog: Mark WasCanceled() as constLioncash
This doesn't alter any class state.
2023-06-12ParallelProgressDialog: Initialize all data membersLioncash
Ensures we always have a deterministic state.
2023-04-25DolphinQt: cache icons instead of single pixmapsShawn Hoffman
Fixes dynamically changing dpi scaling. Load resources from svg if possible. Currently svg support is not in Qt build in Externals, and image files need to be added later.
2023-04-15Embrace nullptr over NULL and 0get
2022-05-02Add support for building against Qt 6spycrab
2022-03-08Add NonDefaultQPushButton to set autoDefault of buttons to falseMartin
2022-02-27Qt/GeneralPane: Don't trigger config change events when populating GUI.Admiral H. Curtiss
2021-12-10Treewide: Adjust order of includesPokechu22
2021-12-10ParallelProgressDialog: Add missing license commentPokechu22
2021-11-02DolphinQt: Fix a -Wunused-result in gcc 11Emmanuel Gil Peyrot
Also use the correct error check for other similar calls in the same file, despite nothing being doable on error.
2021-10-09Add wrapper function to disable hotkeys for QFileDialogsowens99
Previously, if you have "Hotkeys Require Window Focus" disabled, you could repeatedly use the "Open" hotkey, for example, to stack File Open windows over top of each other over and over. This commit allows the hotkey manager to disable/enable on QFileDialog creation and destruction.
2021-09-19DolphinQt: Reduce latency of TAS input's controller input passthroughJosJuice
Fixes https://bugs.dolphin-emu.org/issues/12676. Needs testing to see if this impacts performance when controller inputs are changing.
2021-09-15DolphinQt: Rewrite cheat search GUI.Admiral H. Curtiss
2021-07-05licensing: various one-off conversions to SPDX tagsPierre Bourdon
2021-07-05treewide: convert GPLv2+ license info to SPDX tagsPierre Bourdon
SPDX standardizes how source code conveys its copyright and licensing information. See https://spdx.github.io/spdx-spec/1-rationale/ . SPDX tags are adopted in many large projects, including things like the Linux kernel.
2021-05-15DolphinQt: fix Visual Studio warning about 'assignment within conditional ↵iwubcode
expression'
2021-01-13DolphinQt: Resolve deprecated usage of margin()Lioncash
This function has been marked as obsolete. In Qt 6.0 it's removed entirely, so we must use getContentsMargin() explicitly instead (margin() would do this for us). Ditto for setMargin(), in which case we use setContentsMargin instead. setMargin() would just pass its argument to all four parameters of setContentsMargin(), so we can do the same.
2021-01-05DolphinQt: Remove some useless includesFilippo Tarpini
[committer note: fixed commit message style]