diff options
author | Sami Merilä <sami.merila@nokia.com> | 2009-12-07 12:59:07 (GMT) |
---|---|---|
committer | Sami Merilä <sami.merila@nokia.com> | 2009-12-07 12:59:07 (GMT) |
commit | 41754fdb11a4d78b7b756b82d4ead235b6618687 (patch) | |
tree | cd2f799fcec95bbc3cbdbf017fd09e871e4dad3e /src/gui | |
parent | 757fc27dcdaf67b2f79d2f3bcc8eaaeff345c0c8 (diff) | |
download | Qt-41754fdb11a4d78b7b756b82d4ead235b6618687.zip Qt-41754fdb11a4d78b7b756b82d4ead235b6618687.tar.gz Qt-41754fdb11a4d78b7b756b82d4ead235b6618687.tar.bz2 |
FEP returns the wrong foreground color in GetFormatOfFepInlineText
When using T9, FEP is always using black text color. This is due to
that we use default parameters for TFontPresentation. If we change
the text color according to style, before calling
GetFormatOfFepInlineText, it uses color value from style.
Task-number: QTBUG-4072
Reviewed-by: axis
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/inputmethod/qcoefepinputcontext_s60.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/inputmethod/qcoefepinputcontext_s60.cpp b/src/gui/inputmethod/qcoefepinputcontext_s60.cpp index bdff5e7..a295d66 100644 --- a/src/gui/inputmethod/qcoefepinputcontext_s60.cpp +++ b/src/gui/inputmethod/qcoefepinputcontext_s60.cpp @@ -437,6 +437,10 @@ void QCoeFepInputContext::applyHints(Qt::InputMethodHints hints) void QCoeFepInputContext::applyFormat(QList<QInputMethodEvent::Attribute> *attributes) { TCharFormat cFormat; + QColor styleTextColor = QApplication::palette("QLineEdit").text().color(); + TLogicalRgb tontColor(TRgb(styleTextColor.red(), styleTextColor.green(), styleTextColor.blue(), styleTextColor.alpha())); + cFormat.iFontPresentation.iTextColor = tontColor; + TInt numChars = 0; TInt charPos = 0; int oldSize = attributes->size(); |