summaryrefslogtreecommitdiffstats
path: root/tests/auto/qboxlayout/.gitignore
diff options
context:
space:
mode:
authorJan-Arve Sæther <jan-arve.saether@nokia.com>2009-10-16 15:31:10 (GMT)
committerJan-Arve Sæther <jan-arve.saether@nokia.com>2009-10-16 16:04:41 (GMT)
commit299fd2c5d3c901890c0bc2c36c4b5f48d46859dc (patch)
treeafd629dfa2eedfa9923ccb121fd86ddf54f2283c /tests/auto/qboxlayout/.gitignore
parente0a5d1f18d5dee85ddc312094f5bb4d49ea3d286 (diff)
downloadQt-299fd2c5d3c901890c0bc2c36c4b5f48d46859dc.zip
Qt-299fd2c5d3c901890c0bc2c36c4b5f48d46859dc.tar.gz
Qt-299fd2c5d3c901890c0bc2c36c4b5f48d46859dc.tar.bz2
API addition: Make it possible to set the size policy of an anchor.
After this commit, when you modify the spacing of an anchor you are effectively modifying the preferred size of the anchor, since all anchors (except internal ones) have their minimumSizeHint to 0 and maximumSizeHint to QWIDGETSIZE_MAX. I also changed the sizeHintsFromItem to be more generic so that I could use it for anchors. (Thus, it was renamed to "internalSizeHints"). It now only takes care of setting the min/pref/exp/maxSize of AnchorData based on the anchor/item size hint and their size policies. As a consequence of all of this, setFixedSize changed behaviour and became setPreferredSize (since setSpacing is basically setPreferredSize). The implementation of that now only sets the prefSize. The patch also has an unrelated fix for IgnoreFlag, where it will (again) return the minimumSize for sizeHint(Qt::PreferredSize) instead of the maximumSize. This was to be more consistent with qgridlayoutengine.cpp. The docs are not very clear on this behaviour unfortunately. This API change has been discussed. Reviewed-by: alexis
Diffstat (limited to 'tests/auto/qboxlayout/.gitignore')
0 files changed, 0 insertions, 0 deletions