mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
UI: Fix mute checkbox positioning on macOS
Likely related to QTBUG-2699, QMacStyle appears to screw up the size of this checkbox. Ignoring the style's layout rect fixes this.
This commit is contained in:
parent
a989fefa0b
commit
c7dc09e862
@ -249,6 +249,10 @@ VolControl::VolControl(OBSSource source_, bool showConfig, bool vertical)
|
||||
volLabel->setObjectName("volLabel");
|
||||
volLabel->setAlignment(Qt::AlignCenter);
|
||||
|
||||
#ifdef __APPLE__
|
||||
mute->setAttribute(Qt::WA_LayoutUsesWidgetRect);
|
||||
#endif
|
||||
|
||||
QString sourceName = obs_source_get_name(source);
|
||||
setObjectName(sourceName);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user