mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-04-12 02:29:03 -04:00
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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user