summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Poulain <benjamin.poulain@nokia.com>2009-08-20 13:12:30 +0200
committerBenjamin Poulain <benjamin.poulain@nokia.com>2009-08-20 14:06:04 +0200
commit7023e7f95bdbc0a3c6923336c846f06a7b16e6fa (patch)
tree47a5d13e39aae5296548c98f8451c9e72c894a33
parent2717f89d2b51c2eb3bc742a64d18a0941fd4b6d7 (diff)
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
-rw-r--r--src/gui/styles/qmacstyle_mac.mm1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/styles/qmacstyle_mac.mm b/src/gui/styles/qmacstyle_mac.mm
index 649e8e735..389ee8575 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: