From 29031b406f0266b0b47ef7e8113ec861a90f201e Mon Sep 17 00:00:00 2001 From: Jens Bache-Wiig Date: Mon, 27 Jul 2009 13:15:19 +0200 Subject: 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 --- src/gui/styles/qwindowsvistastyle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v0.12