General settings: Put all advanced checkboxes in a layout
authorJocelyn Turcotte <jturcotte@woboq.com>
Thu, 27 Jul 2017 08:53:17 +0000 (10:53 +0200)
committerJocelyn Turcotte <jturcotte@woboq.com>
Thu, 27 Jul 2017 15:37:27 +0000 (17:37 +0200)
commit7a96e8a292c9d543ce772a5aadb76d36157b7dd2
tree365a6ba86b2772a1bfebe5dc6e329ec5173c569c
parent90cce0ab56dde825a01d5943fb26c9352b18a730
General settings: Put all advanced checkboxes in a layout

The mac style has the concept of Layout Item Rectangle that bleeds
widgets margins into parent margins. This unfortunately doesn't work
when the parent layout doesn't have any margin, like we do when we
have the hierarchy:
 Vertical(normal margin)
   / Horizontal(no margin, uses parent layout spacing)
     /Widget

I guess Qt should propagate remaining uneaten margins to grand-parent
layouts and so on to have this work properly, but nobody seems to
have touched that code since Qt 4.4.
So just try to make the problem less worse by making sure that
all checkboxes we want to align are either in the same layout, or
in a loyout of their own.

Issue #5492
src/gui/generalsettings.ui