summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-05-29 00:56:55 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-05-29 00:56:55 (GMT)
commit3824fa64f8f8d24db34e3ce1c8d5c7d21cb624b7 (patch)
treefdaa2a0bd683fa8137a80c29eda349f4db4d98db
parent90d48290f5af63667481a13f927a6edb9e528286 (diff)
downloadQt-3824fa64f8f8d24db34e3ce1c8d5c7d21cb624b7.zip
Qt-3824fa64f8f8d24db34e3ce1c8d5c7d21cb624b7.tar.gz
Qt-3824fa64f8f8d24db34e3ce1c8d5c7d21cb624b7.tar.bz2
Update on gradient change.
-rw-r--r--src/declarative/fx/qfxrect.cpp3
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();
}