summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2010-03-17 11:59:36 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2010-03-17 11:59:36 (GMT)
commit8a5cd17c49888e5b6cb230516e1722af9adba251 (patch)
tree507228b67b7b8eb179f4094c192a0e4a7586ce7e
parent144e450292b4d33e72223626e4146f8e9efb8c9b (diff)
downloadQt-8a5cd17c49888e5b6cb230516e1722af9adba251.zip
Qt-8a5cd17c49888e5b6cb230516e1722af9adba251.tar.gz
Qt-8a5cd17c49888e5b6cb230516e1722af9adba251.tar.bz2
Fix default values on Textinput
Task-number: BAUHAUS-389
-rw-r--r--src/declarative/graphicsitems/qdeclarativetextinput.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativetextinput.cpp b/src/declarative/graphicsitems/qdeclarativetextinput.cpp
index 6df3533..01167dc 100644
--- a/src/declarative/graphicsitems/qdeclarativetextinput.cpp
+++ b/src/declarative/graphicsitems/qdeclarativetextinput.cpp
@@ -834,6 +834,9 @@ void QDeclarativeTextInputPrivate::init()
oldValidity = control->hasAcceptableInput();
lastSelectionStart = 0;
lastSelectionEnd = 0;
+ QPalette p = control->palette();
+ selectedTextColor = p.color(QPalette::HighlightedText);
+ selectionColor = p.color(QPalette::Highlight);
}
void QDeclarativeTextInput::cursorPosChanged()