UI: Fix lock/visibility sub-widget sizes on OSX

This commit is contained in:
jp9000 2017-06-28 15:19:36 -07:00
parent 0d84561dc4
commit 1e7e50114e

View File

@ -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);