UI: Fix lock/visibility sub-widget sizes on OSX
This commit is contained in:
parent
0d84561dc4
commit
1e7e50114e
@ -73,6 +73,11 @@ VisibilityItemWidget::VisibilityItemWidget(obs_sceneitem_t *item_)
|
|||||||
label = new QLabel(QT_UTF8(name));
|
label = new QLabel(QT_UTF8(name));
|
||||||
label->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
|
label->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
|
||||||
|
|
||||||
|
#ifdef __APPLE__
|
||||||
|
vis->setAttribute(Qt::WA_LayoutUsesWidgetRect);
|
||||||
|
lock->setAttribute(Qt::WA_LayoutUsesWidgetRect);
|
||||||
|
#endif
|
||||||
|
|
||||||
QHBoxLayout *itemLayout = new QHBoxLayout();
|
QHBoxLayout *itemLayout = new QHBoxLayout();
|
||||||
itemLayout->addWidget(vis);
|
itemLayout->addWidget(vis);
|
||||||
itemLayout->addWidget(lock);
|
itemLayout->addWidget(lock);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user