提交 8b68ccdc 编写于 作者: J jp9000

UI: Fix build issue with older linux Qt5 packages

QMainWindow::resizeDocks isn't supported on certain long-term support
distros (ubuntu trusty in particular), so instead just restore the
starting state and don't try to recalculate the ideal positioning.
上级 25bb8a44
......@@ -5288,6 +5288,7 @@ void OBSBasic::on_resetUI_triggered()
{
restoreState(startingDockLayout);
#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
int cx = width();
int cy = height();
......@@ -5322,6 +5323,7 @@ void OBSBasic::on_resetUI_triggered()
resizeDocks(docks, {cy, cy, cy, cy, cy}, Qt::Vertical);
resizeDocks(docks, sizes, Qt::Horizontal);
#endif
}
void OBSBasic::on_lockUI_toggled(bool lock)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册