From 8a5cd17c49888e5b6cb230516e1722af9adba251 Mon Sep 17 00:00:00 2001 From: Alan Alpert Date: Wed, 17 Mar 2010 12:59:36 +0100 Subject: Fix default values on Textinput Task-number: BAUHAUS-389 --- src/declarative/graphicsitems/qdeclarativetextinput.cpp | 3 +++ 1 file changed, 3 insertions(+) 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() -- cgit v0.12