aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickcontrols2/qquickstyle.cpp
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2018-03-16 15:58:28 +0100
committerJ-P Nurmi <jpnurmi@qt.io>2018-03-22 21:22:17 +0000
commit2b0e33692b949ebaed034c72d0ea3da9f0ef6de2 (patch)
tree4ca7dace8012aae0dad5080362884fec4f64703f /src/quickcontrols2/qquickstyle.cpp
parent1abc7fcbabcc5a89ceaaf69173d077e22ed2d658 (diff)
QQuickPane: fix a regression in implicit size calculation
Caused by 87dec64. Previously, the bindings were: contentWidth: contentItem.implicitWidth || (contentChildren.length === 1 ? contentChildren[0].implicitWidth : 0) contentHeight: contentItem.implicitHeight || (contentChildren.length === 1 ? contentChildren[0].implicitHeight : 0) That is, if contentItem does not have implicit size, Pane uses the implicit size of the first content child (if there's one). When the new automatic content size calculation was implemented, I forgot to install a listener on the content child (in addition to contentItem). Consequently, if the imlicit size of the first content child changed after construction, the content size was not updated as appropriate. Change-Id: Ib3d81f4e08a4d0822849d5db12429a2dd036e206 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quickcontrols2/qquickstyle.cpp')
0 files changed, 0 insertions, 0 deletions