diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-05-29 00:56:55 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-05-29 00:56:55 (GMT) |
commit | 3824fa64f8f8d24db34e3ce1c8d5c7d21cb624b7 (patch) | |
tree | fdaa2a0bd683fa8137a80c29eda349f4db4d98db | |
parent | 90d48290f5af63667481a13f927a6edb9e528286 (diff) | |
download | Qt-3824fa64f8f8d24db34e3ce1c8d5c7d21cb624b7.zip Qt-3824fa64f8f8d24db34e3ce1c8d5c7d21cb624b7.tar.gz Qt-3824fa64f8f8d24db34e3ce1c8d5c7d21cb624b7.tar.bz2 |
Update on gradient change.
-rw-r--r-- | src/declarative/fx/qfxrect.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/declarative/fx/qfxrect.cpp b/src/declarative/fx/qfxrect.cpp index 4271022..b10594e 100644 --- a/src/declarative/fx/qfxrect.cpp +++ b/src/declarative/fx/qfxrect.cpp @@ -308,7 +308,10 @@ QFxGradient *QFxRect::gradient() const void QFxRect::setGradient(QFxGradient *gradient) { Q_D(QFxRect); + if (d->gradient == gradient) + return; d->gradient = gradient; + update(); } |