From e58f3d36fba82f69debe5a37ab8e25eac1dddbcf Mon Sep 17 00:00:00 2001 From: Benjamin Poulain Date: Fri, 14 Aug 2009 09:58:23 +0200 Subject: On Mac, hitTestComplexControl() return an incorrect value for combobox The function hitTestComplexControl() of the mac style returned SC_ComboBoxArrow when the point is not over an element of the widget. Task-number: 252857 Reviewed-by: Richard Moe Gustavsen --- src/gui/styles/qmacstyle_mac.mm | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gui/styles/qmacstyle_mac.mm b/src/gui/styles/qmacstyle_mac.mm index b2923f6..de81fa8 100644 --- a/src/gui/styles/qmacstyle_mac.mm +++ b/src/gui/styles/qmacstyle_mac.mm @@ -5235,8 +5235,6 @@ QStyle::SubControl QMacStyle::hitTestComplexControl(ComplexControl cc, case CC_ComboBox: if (const QStyleOptionComboBox *cmb = qstyleoption_cast(opt)) { sc = QWindowsStyle::hitTestComplexControl(cc, cmb, pt, widget); - if (!cmb->editable && sc != QStyle::SC_None) - sc = SC_ComboBoxArrow; // A bit of a lie, but what we want } break; case CC_Slider: -- cgit v0.12