Properly persist dock area HideSingleWidgetTitleBar flag (and all other dock area flags)

This commit is contained in:
Uwe Kindler
2020-08-18 10:48:35 +02:00
parent 81a0234b05
commit c78cc17730
5 changed files with 73 additions and 19 deletions

View File

@@ -947,6 +947,12 @@ bool DockContainerWidgetPrivate::restoreDockArea(CDockingStateReader& s,
{
DockArea->setAllowedAreas((DockWidgetArea)AllowedAreasAttribute.toInt(nullptr, 16));
}
const auto FlagsAttribute = s.attributes().value("Flags");
if (!FlagsAttribute.isEmpty())
{
DockArea->setDockAreaFlags((CDockAreaWidget::DockAreaFlags)FlagsAttribute.toInt(nullptr, 16));
}
}
while (s.readNextStartElement())