summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBenjamin Poulain <benjamin.poulain@nokia.com>2009-08-14 07:58:23 (GMT)
committerBenjamin Poulain <benjamin.poulain@nokia.com>2009-08-14 07:58:23 (GMT)
commite58f3d36fba82f69debe5a37ab8e25eac1dddbcf (patch)
treeca59cad59dddbe8d867ca9acbe7d87ea818f9e87 /src
parentc3687d0e59632dd97645ea3c67478437ba8adb5a (diff)
downloadQt-e58f3d36fba82f69debe5a37ab8e25eac1dddbcf.zip
Qt-e58f3d36fba82f69debe5a37ab8e25eac1dddbcf.tar.gz
Qt-e58f3d36fba82f69debe5a37ab8e25eac1dddbcf.tar.bz2
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
Diffstat (limited to 'src')
-rw-r--r--src/gui/styles/qmacstyle_mac.mm2
1 files changed, 0 insertions, 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<const QStyleOptionComboBox *>(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: