未验证 提交 e6eddd37 编写于 作者: B Ben Torell 提交者: GitHub

Merge pull request #2119 from cg2121/try-this-fix

Try this, maybe it will work somehow
......@@ -14,9 +14,6 @@ void RecordButton::resizeEvent(QResizeEvent *event)
main->pause->setMinimumSize(height, height);
main->pause->setMaximumSize(height, height);
}
#ifdef __APPLE__
main->pause->setAttribute(Qt::WA_LayoutUsesWidgetRect);
#endif // __APPLE__
event->accept();
}
......@@ -398,6 +398,10 @@ OBSBasic::OBSBasic(QWidget *parent)
this,
SLOT(ScenesReordered(const QModelIndex &, int, int,
const QModelIndex &, int)));
#ifdef __APPLE__
ui->recordButton->setAttribute(Qt::WA_LayoutUsesWidgetRect);
#endif
}
static void SaveAudioDevice(const char *name, int channel, obs_data_t *parent,
......@@ -7544,6 +7548,10 @@ void OBSBasic::UpdatePause(bool activate)
QVariant(QStringLiteral("pauseIconSmall")));
connect(pause.data(), &QAbstractButton::clicked, this,
&OBSBasic::PauseToggled);
#ifdef __APPLE__
pause->setAttribute(Qt::WA_LayoutUsesWidgetRect);
#endif
ui->recordingLayout->addWidget(pause.data());
} else {
pause.reset();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册