Set QSS-parsed gradients' coordinate system to ObjectBoundingMode
authorManuel Nickschas <sputnick@quassel-irc.org>
Wed, 16 Jun 2010 14:21:52 +0000 (16:21 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 16 Jun 2010 14:21:52 +0000 (16:21 +0200)
commit7ce58ac01ce9f67c13bce15ff0db7b15872a7657
treeeb10477312710d90ef37322309a33582de07f77f
parent90acec489765f6451a1bf70fd6ffb2574594d907
Set QSS-parsed gradients' coordinate system to ObjectBoundingMode

In this mode, gradient coordinates are relative to the bounding rect of the object
to be drawn. Thus, gradients can be specified between (0,0) and (1,1) in stylesheets
and will do The Right Thing™ regardless of the object's size.
This is also what Qt uses for its widgets.
src/uisupport/qssparser.cpp