Each subset is identified by its "affinity name".
See DockWidget/MainWindow setAffinityName property.
Patch contributed by Andras Mantia, I've changed it to deal in
terms of affinity names instead of unique names.
After a restore with relative sizes the items might not be on a pixel
perfect position regarding to their anchors. Make sure they are after
the restore is complete.
And renamed it to 17.json, as we already have an unrelated 2.json.
The removed check isn't needed, as we'll check again when we
finish restoring the placeholder. It was also a false-positive
warning sometimes because boundPositionForAnchor() would fail
since the "anchors following" wasnt initialized yet, as we do
a clearAnchorsFollowing while restoring the placeholder
To repro:
- stack 3 dock widgets vertically
- close the top one
- close the top one
The remaining one should now fill the whole window but it wasn't.
Culprit was the code that makes sure that when a dock is closed that
the adjacent ones get to share their space
Silenced a false-positive warning about anchor visibility.
It was invisible because we're within a main window show()
It will be checked by the unit-tests and fuzzer anyway. No need to
do it in production.