summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-07-13 06:14:01 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-07-13 06:14:01 (GMT)
commit3b36a817fda1b7774b58391d508524f9e39df130 (patch)
treed739768a02772e00def60ae448be114648a8b9d3 /src/declarative
parent181749ff7dcfbeb5eb64026e80353f27013af833 (diff)
parentcb6472cb67511316f058b1eda4ffe71a1c4fe019 (diff)
downloadQt-3b36a817fda1b7774b58391d508524f9e39df130.zip
Qt-3b36a817fda1b7774b58391d508524f9e39df130.tar.gz
Qt-3b36a817fda1b7774b58391d508524f9e39df130.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/graphicsitems/qdeclarativetextinput.cpp4
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);
}