[desktop] Fix misaligned output device #2786

Merged
MaranBr merged 2 commits from fix/audio into master 2025-10-20 04:08:40 +02:00
Owner

Builder::BuildWidget previously relied on Qt to handle layout stretching
by implicitly setting each widget to have a stretch of 0. This is very
bad behavior, so to fix this we must set a stretch of 1 on each widget
that's added by the builder

furthermore, default and default_dark did not properly define a min-width or min-height for QComboBox. This caused the platform theme to take over sizing which is NOT GOOD and should basically be avoided always

Signed-off-by: crueter crueter@eden-emu.dev

Builder::BuildWidget previously relied on Qt to handle layout stretching by implicitly setting each widget to have a stretch of 0. This is very bad behavior, so to fix this we must set a stretch of 1 on each widget that's added by the builder furthermore, default and default_dark did not properly define a min-width or min-height for QComboBox. This caused the platform theme to take over sizing which is NOT GOOD and should basically be avoided always Signed-off-by: crueter <crueter@eden-emu.dev>
[desktop] Fix misaligned output device
All checks were successful
eden-license / license-header (pull_request) Successful in 26s
GitHub Actions [CI] Build succeeded
c25114d29f
Builder::BuildWidget previously relied on Qt to handle layout stretching
by implicitly setting each widget to have a stretch of 0. This is very
bad behavior, so to fix this we must set a stretch of 1 on each widget
that's added by the builder

Signed-off-by: crueter <crueter@eden-emu.dev>
MaranBr approved these changes 2025-10-19 20:09:20 +02:00
Dismissed
Member

It's even more misaligned than before

It's even more misaligned than before
Author
Owner

@MaranBr wrote in #2786 (comment):

It's even more misaligned than before

screenshot

@MaranBr wrote in https://git.eden-emu.dev/eden-emu/eden/pulls/2786#issuecomment-7430: > It's even more misaligned than before screenshot
Member
No description provided.
204 KiB
Author
Owner

This is caused by default_dark and default not defining anything for QComboBox (most importantly min-width)

image

The only question is whether or not it may be preferable to keep this, because otherwise things get cut off

image

This is caused by default_dark and default not defining anything for QComboBox (most importantly min-width) ![image](/attachments/7215756a-d5ef-4ecf-8950-46e478e77e87) The only question is whether or not it may be preferable to keep this, because otherwise things get cut off ![image](/attachments/03e27e4e-f295-408b-91dc-fb088e19b651)
define min sizes, padding for QComboBox
All checks were successful
eden-license / license-header (pull_request) Successful in 26s
GitHub Actions [CI] Build succeeded
65fe14f559
Signed-off-by: crueter <crueter@eden-emu.dev>
crueter dismissed MaranBr's review 2025-10-20 03:41:27 +02:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

MaranBr approved these changes 2025-10-20 04:07:33 +02:00
MaranBr scheduled this pull request to auto merge when all checks succeed 2025-10-20 04:07:42 +02:00
MaranBr merged commit 54d6283ac3 into master 2025-10-20 04:08:40 +02:00
MaranBr deleted branch fix/audio 2025-10-20 04:08:41 +02:00
Sign in to join this conversation.
No description provided.