wrong vector size fixed
This commit is contained in:
parent
83556493d4
commit
4670e3b5d3
|
@ -192,17 +192,13 @@ namespace
|
||||||
changed = true;
|
changed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
QTransform transform( rect.width(), 0, 0, rect.height(), rect.x(), rect.y());
|
|
||||||
#endif
|
|
||||||
|
|
||||||
const auto dir = gradient.linearDirection();
|
const auto dir = gradient.linearDirection();
|
||||||
|
|
||||||
const QVector4D vector(
|
const QVector4D vector(
|
||||||
rect.left() + dir.start().x() * rect.width(),
|
rect.left() + dir.x1() * rect.width(),
|
||||||
rect.top() + dir.start().y() * rect.height(),
|
rect.top() + dir.y1() * rect.height(),
|
||||||
dir.stop().x() * rect.width(),
|
( dir.x2() - dir.x1() ) * rect.width(),
|
||||||
dir.stop().y() * rect.height() );
|
( dir.y2() - dir.y1() ) * rect.height() );
|
||||||
|
|
||||||
if ( m_gradientVector != vector )
|
if ( m_gradientVector != vector )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue