Sort gradient stops for the convenience of the scenegraph
authorAlan Alpert <alan.alpert@nokia.com>
Wed, 27 Apr 2011 00:46:24 +0000 (10:46 +1000)
committerAlan Alpert <alan.alpert@nokia.com>
Wed, 27 Apr 2011 23:53:26 +0000 (09:53 +1000)
commit6e2e4894159da51ab3413b8a0bb9c8ba615f0b7c
treea06a58b5c11cbb449ba0d455ded2f04a088985f3
parent2b92c8c08f0e17b73bf3a00f416c679ecbf3fca5
Sort gradient stops for the convenience of the scenegraph

The scenegraph gradients require sorted graident stops, whereas QML does
not. Gradient stops are now sorted at the point they are passed into the
scenegraph.

Change-Id: I499dd00dc78e60dfc2053f2ee3691e61e0cf2a5d
Task-number: QTBUG-18494
Reviewed-by: Martin Jones
(cherry picked from commit 8cbd68b29224eed19f6ca6ec8186766c69a35c83)
src/declarative/items/qsgrectangle.cpp