diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-07-13 02:43:07 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-07-13 02:43:07 (GMT) |
commit | ce82b8b22062928de8e6683af8add5b7a4843877 (patch) | |
tree | 7dffe11a55be93adb133946f7d743ae79f4941fd /src | |
parent | 91054842ae3b87b224ea153711cedf7056e4da60 (diff) | |
parent | 400b0d43830dfdcefb2f8bd91440ab6f4130ce0f (diff) | |
download | Qt-ce82b8b22062928de8e6683af8add5b7a4843877.zip Qt-ce82b8b22062928de8e6683af8add5b7a4843877.tar.gz Qt-ce82b8b22062928de8e6683af8add5b7a4843877.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/qt-qml:
Fix TextInput selectionColor or selectedTextColor -based animations
Diffstat (limited to 'src')
-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); } |