From 7023e7f95bdbc0a3c6923336c846f06a7b16e6fa Mon Sep 17 00:00:00 2001 From: Benjamin Poulain Date: Thu, 20 Aug 2009 13:12:30 +0200 Subject: Fix the painting of QSpinBox on Mac when the buttons are disabled The edit area of the spinbox should take complete surface of the widget when the button symbol is QAbstractSpinBox::NoButtons. Reviewed-by: Richard Moe Gustavsen --- src/gui/styles/qmacstyle_mac.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/styles/qmacstyle_mac.mm b/src/gui/styles/qmacstyle_mac.mm index 649e8e7..389ee85 100644 --- a/src/gui/styles/qmacstyle_mac.mm +++ b/src/gui/styles/qmacstyle_mac.mm @@ -5695,6 +5695,7 @@ QRect QMacStyle::subControlRect(ComplexControl cc, const QStyleOptionComplex *op ret.setRect(fw, fw, spin->rect.width() - spinner_w - fw * 2 - spinBoxSep, spin->rect.height() - fw * 2); + } ret = visualRect(spin->direction, spin->rect, ret); break; default: -- cgit v0.12