From cd18a843ce38b9871d506fa6f7c2114105b1487c Mon Sep 17 00:00:00 2001 From: axis Date: Tue, 12 May 2009 16:19:30 +0200 Subject: Fixed background of preedit text. This changes the appearance on X11 and Mac, but it seems to be the way it is done in other applications. In addition it fixes S60 background of preedit text, which is supposed to be transparent. RevBy: denis --- src/gui/inputmethod/qinputcontext.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/gui/inputmethod/qinputcontext.cpp b/src/gui/inputmethod/qinputcontext.cpp index c7d156c..00a9225 100644 --- a/src/gui/inputmethod/qinputcontext.cpp +++ b/src/gui/inputmethod/qinputcontext.cpp @@ -427,13 +427,6 @@ QTextFormat QInputContext::standardFormat(StandardFormat s) const switch (s) { case QInputContext::PreeditFormat: { fmt.setUnderlineStyle(QTextCharFormat::DashUnderline); -#ifndef Q_WS_WIN - int h1, s1, v1, h2, s2, v2; - pal.color(QPalette::Base).getHsv(&h1, &s1, &v1); - pal.color(QPalette::Background).getHsv(&h2, &s2, &v2); - bg.setHsv(h1, s1, (v1 + v2) / 2); - fmt.setBackground(QBrush(bg)); -#endif break; } case QInputContext::SelectionFormat: { -- cgit v0.12