diff options
author | Joona Petrell <joona.t.petrell@nokia.com> | 2010-07-13 00:03:22 (GMT) |
---|---|---|
committer | Joona Petrell <joona.t.petrell@nokia.com> | 2010-07-13 00:09:39 (GMT) |
commit | 400b0d43830dfdcefb2f8bd91440ab6f4130ce0f (patch) | |
tree | 7dffe11a55be93adb133946f7d743ae79f4941fd /src/declarative/graphicsitems/qdeclarativetextinput.cpp | |
parent | 5efd577b1aea64f422e08ca8d54e041fa4b20783 (diff) | |
download | Qt-400b0d43830dfdcefb2f8bd91440ab6f4130ce0f.zip Qt-400b0d43830dfdcefb2f8bd91440ab6f4130ce0f.tar.gz Qt-400b0d43830dfdcefb2f8bd91440ab6f4130ce0f.tar.bz2 |
Fix TextInput selectionColor or selectedTextColor -based animations
Task-number: QTBUG-12115
Reviewed-by: Martin Jones
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativetextinput.cpp')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativetextinput.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativetextinput.cpp b/src/declarative/graphicsitems/qdeclarativetextinput.cpp index f6af1f4..2a5d73d 100644 --- a/src/declarative/graphicsitems/qdeclarativetextinput.cpp +++ b/src/declarative/graphicsitems/qdeclarativetextinput.cpp @@ -275,6 +275,8 @@ void QDeclarativeTextInput::setSelectionColor(const QColor &color) QPalette p = d->control->palette(); p.setColor(QPalette::Highlight, d->selectionColor); d->control->setPalette(p); + clearCache(); + update(); emit selectionColorChanged(color); } @@ -299,6 +301,8 @@ void QDeclarativeTextInput::setSelectedTextColor(const QColor &color) QPalette p = d->control->palette(); p.setColor(QPalette::HighlightedText, d->selectedTextColor); d->control->setPalette(p); + clearCache(); + update(); emit selectedTextColorChanged(color); } |