diff options
author | Jens Bache-Wiig <jbache@trolltech.com> | 2009-07-27 11:15:19 (GMT) |
---|---|---|
committer | Jens Bache-Wiig <jbache@trolltech.com> | 2009-07-27 11:37:57 (GMT) |
commit | 29031b406f0266b0b47ef7e8113ec861a90f201e (patch) | |
tree | 6156a0f096d54e7488632b63781d3ca484ab8490 /src | |
parent | fb49d313e30fca8c3af58ecc7ed4310c78e99b79 (diff) | |
download | Qt-29031b406f0266b0b47ef7e8113ec861a90f201e.zip Qt-29031b406f0266b0b47ef7e8113ec861a90f201e.tar.gz Qt-29031b406f0266b0b47ef7e8113ec861a90f201e.tar.bz2 |
Fixed SC_ComboBoxArrow returning inverted subControlRect on vista
The arrow was reported to be on the wrong side of the control.
Technically the arrow part seems to cover the whole rect on
Vista and Gtk+ but due to compatibility it is probably safer to keep
the old rects for now.
Task-number: 252857
Reviewed-by: ogoffart
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/styles/qwindowsvistastyle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/styles/qwindowsvistastyle.cpp b/src/gui/styles/qwindowsvistastyle.cpp index f3d0f04..298207d 100644 --- a/src/gui/styles/qwindowsvistastyle.cpp +++ b/src/gui/styles/qwindowsvistastyle.cpp @@ -2229,7 +2229,7 @@ QRect QWindowsVistaStyle::subControlRect(ComplexControl control, const QStyleOpt rect = cb->rect; break; case SC_ComboBoxArrow: - rect.setRect(cb->editable ? xpos : 0, y , wi - xpos, he); + rect.setRect(xpos, y , wi - xpos, he); break; case SC_ComboBoxEditField: rect.setRect(x + margin, y + margin, wi - 2 * margin - 16, he - 2 * margin); |