Fix resize handles not showing on hover (#510)

This commit is contained in:
Jeremy Bullock 2020-11-16 14:01:19 -07:00 committed by GitHub
parent c0624bc06f
commit a5a46e40de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -491,14 +491,12 @@ void DockLayout::redistribute(bool allowFixedItems) {
// Recompute Layout geometry
m_regions.front()->setGeometry(contentsRect());
m_regions.front()->redistribute();
if (allowFixedItems) {
if (widgetsCanBeFixedWidth) {
for (QWidget *widget : fixedWidthWidgets) {
widget->setMaximumSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX);
widget->setMinimumSize(0, 0);
}
}
for (QWidget *widget : fixedWidthWidgets) {
widget->setMaximumSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX);
widget->setMinimumSize(0, 0);
}
m_regions.front()->calculateExtremalSizes();
}
// Finally, apply Region geometries found