diff options
author | Alessandro Portale <alessandro.portale@nokia.com> | 2009-10-08 19:20:22 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2009-10-09 15:40:57 (GMT) |
commit | be6290e695329974b946d064ceb2cd9fa2ad5f57 (patch) | |
tree | ce939308922b79d2ad63a811a249fc9423bfaedc | |
parent | 408803ec1ab89582c0ca853f1fc2058131278f6a (diff) | |
download | Qt-be6290e695329974b946d064ceb2cd9fa2ad5f57.zip Qt-be6290e695329974b946d064ceb2cd9fa2ad5f57.tar.gz Qt-be6290e695329974b946d064ceb2cd9fa2ad5f57.tar.bz2 |
Color role with higher contrast for focusrect
Low-risk, high value change. Beta worthy!
As much as QPalette::Highlight sounds like a suitable
color role for drawing a focus rect... It simply did not
work well with a lot of S60 themes (e.g. the default N95
theme). QPalette::Text is a better candidate, since
the S60 themes promise a good contrast of text on
background graphics.
Reviewed-By: Sami Merilä
(cherry picked from commit a35c52abe95f224af062550e4954f7cbefca1bd8)
-rw-r--r-- | src/gui/styles/qs60style.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/styles/qs60style.cpp b/src/gui/styles/qs60style.cpp index 6bdb79e..465492d 100644 --- a/src/gui/styles/qs60style.cpp +++ b/src/gui/styles/qs60style.cpp @@ -1865,7 +1865,7 @@ void QS60Style::drawControl(ControlElement element, const QStyleOption *option, painter->save(); painter->setRenderHint(QPainter::Antialiasing); painter->setOpacity(opacity); - painter->setPen(QPen(option->palette.color(QPalette::Highlight), penWidth)); + painter->setPen(QPen(option->palette.color(QPalette::Text), penWidth)); painter->drawRoundedRect(adjustedRect, roundRectRadius, roundRectRadius); painter->restore(); } |