aboutsummaryrefslogtreecommitdiffstats
path: root/sync.profile
diff options
context:
space:
mode:
authorAndy Nichols <andy.nichols@digia.com>2014-09-02 18:23:30 +0200
committerAndy Nichols <andy.nichols@digia.com>2014-09-09 13:26:54 +0300
commit7cfec8b936a10b579d0f97acc0cb681f82f6fa85 (patch)
tree4b88908edc9ef3a64002dca3b0882ff38de2c36f /sync.profile
parent8e0372422cd83a6f934df3b09bb478c58ce4dd2b (diff)
Support rendering Gradients when stops are not between 0 and 1
QGradient does not allow stops positions that are outside the bounds of 0 and 1. Gradients created from QML however can have stops outside of these bounds and so we must normalize these stops before giving them to QPainter to render. This change creates a new stop at 0 or 1 if a stop goes below or above the bounds respectively, and interpolates a new color value for the stop based on the original position. Change-Id: I10cc41d923e88a9b41bfd27de0326cea25464add Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'sync.profile')
0 files changed, 0 insertions, 0 deletions