diff options
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativetextinput.cpp | 3 |
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() |