aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols2/gallery
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2018-07-25 08:40:07 +0200
committerMitch Curtis <mitch.curtis@qt.io>2018-07-30 09:44:05 +0000
commit12a08ee8eaa27be7dc500b1c15348e8f692949dc (patch)
tree4b5b331f0fa96caf1f0c7eeb822b633934e6114e /examples/quickcontrols2/gallery
parent4e11d09fdef369af130c86a81df599ee3273ac7d (diff)
QQuickIconImage: prevent color from being applied twice
QQuickIconImage::componentComplete() calls QQuickIconImagePrivate::updateIcon(), which loads the icon's image via QQuickImageBase::load(). That eventually calls QQuickImageBase::requestFinished(), which calls QQuickIconImage::pixmapChange(). That then calls QQuickIconImagePrivate::updateFillMode(), which can in turn cause QQuickIconImage::pixmapChange() to be called again, causing recursion. This recursion resulted in icon.color being applied twice. We already have a recursion check in place in QQuickIconImagePrivate::updateFillMode(), so we can reuse that in QQuickIconImage::pixmapChange() to know whether or not we should apply the color to the image. Task-number: QTBUG-69506 Change-Id: I5cd9edaa524c7ceb9c41c53a9efefcc4c647e246 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'examples/quickcontrols2/gallery')
0 files changed, 0 insertions, 0 deletions