summaryrefslogtreecommitdiffstats
path: root/src/gui/inputmethod
diff options
context:
space:
mode:
authoraxis <qt-info@nokia.com>2009-05-12 14:19:30 (GMT)
committeraxis <qt-info@nokia.com>2009-05-12 14:19:30 (GMT)
commitcd18a843ce38b9871d506fa6f7c2114105b1487c (patch)
treeb6c4085d6b0699546cf5f07c67bc6479b61c7c13 /src/gui/inputmethod
parente4cfb0ac1320a1832cedd69495151bc817075a23 (diff)
downloadQt-cd18a843ce38b9871d506fa6f7c2114105b1487c.zip
Qt-cd18a843ce38b9871d506fa6f7c2114105b1487c.tar.gz
Qt-cd18a843ce38b9871d506fa6f7c2114105b1487c.tar.bz2
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
Diffstat (limited to 'src/gui/inputmethod')
-rw-r--r--src/gui/inputmethod/qinputcontext.cpp7
1 files changed, 0 insertions, 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: {