diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-06-10 05:47:23 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-06-10 05:47:23 (GMT) |
commit | b14860e0f3b9853f96c2042b261f0c1394360ccd (patch) | |
tree | 577bbe0ea469699af9460c5e69f2d898234de6a2 | |
parent | 2115bbae2387335f8ea29e0ffee70e00d4a15dc1 (diff) | |
download | Qt-b14860e0f3b9853f96c2042b261f0c1394360ccd.zip Qt-b14860e0f3b9853f96c2042b261f0c1394360ccd.tar.gz Qt-b14860e0f3b9853f96c2042b261f0c1394360ccd.tar.bz2 |
Update on color change.
Task-number: QTBUG-11330
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativetextinput.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativetextinput.cpp b/src/declarative/graphicsitems/qdeclarativetextinput.cpp index b877c50..c74e0a2 100644 --- a/src/declarative/graphicsitems/qdeclarativetextinput.cpp +++ b/src/declarative/graphicsitems/qdeclarativetextinput.cpp @@ -249,7 +249,11 @@ QColor QDeclarativeTextInput::color() const void QDeclarativeTextInput::setColor(const QColor &c) { Q_D(QDeclarativeTextInput); - d->color = c; + if (c != d->color) { + d->color = c; + clearCache(); + update(); + } } |