0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 04:42:18 +02:00

UI: Fix checkbox misalignment on macOS in properties view

This commit is contained in:
Nikola Jovic 2023-10-25 20:43:55 +02:00 committed by Sebastian Beckmann
parent 05d52ee3a7
commit 21a906d7d9

View File

@ -1626,8 +1626,14 @@ void OBSPropertiesView::AddProperty(obs_property_t *property,
QHBoxLayout *boxLayout = new QHBoxLayout(newWidget);
boxLayout->setContentsMargins(0, 0, 0, 0);
boxLayout->setAlignment(Qt::AlignLeft);
#ifdef __APPLE__
/* TODO: This fixes the issue of tooltip not aligning
* correcty on macOS, the root cause needs further
* investigation. */
boxLayout->setSpacing(10);
#else
boxLayout->setSpacing(0);
#endif
QCheckBox *check = qobject_cast<QCheckBox *>(widget);
check->setText(desc);
check->setToolTip(