diff options
author | Jens Bache-Wiig <jens.bache-wiig@nokia.com> | 2010-09-28 14:31:27 (GMT) |
---|---|---|
committer | Jens Bache-Wiig <jens.bache-wiig@nokia.com> | 2010-09-28 14:34:47 (GMT) |
commit | d72ba30f29cc641cd3d3ee624bd39e6247bec553 (patch) | |
tree | 4c463814deebded7a902797fab21a16be6dcad6c /src/gui/styles | |
parent | 4f1235af805d6ec947730e33d270c30d298e51dc (diff) | |
download | Qt-d72ba30f29cc641cd3d3ee624bd39e6247bec553.zip Qt-d72ba30f29cc641cd3d3ee624bd39e6247bec553.tar.gz Qt-d72ba30f29cc641cd3d3ee624bd39e6247bec553.tar.bz2 |
Fixed a painting glitch with checked menu icons on WindowsXP
This issue affected windows XP style. The checked icon would get
incorrect border offsets before.
The fix was suggested by Jonathan Liu.
Reviewed-by:richard
Task-number: QTBUG-10796
Diffstat (limited to 'src/gui/styles')
-rw-r--r-- | src/gui/styles/qwindowsxpstyle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/styles/qwindowsxpstyle.cpp b/src/gui/styles/qwindowsxpstyle.cpp index d36011c..a5e9c19 100644 --- a/src/gui/styles/qwindowsxpstyle.cpp +++ b/src/gui/styles/qwindowsxpstyle.cpp @@ -2154,7 +2154,7 @@ void QWindowsXPStyle::drawControl(ControlElement element, const QStyleOption *op p->setPen(menuitem->palette.text().color()); p->setBrush(Qt::NoBrush); if (checked) - p->drawRect(vIconRect.adjusted(-1, -2, 1, 1)); + p->drawRect(vIconRect.adjusted(-1, -1, 0, 0)); p->drawPixmap(vIconRect.topLeft(), pixmap); // draw checkmark ------------------------------------------------- |