summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBenjamin Poulain <benjamin.poulain@nokia.com>2009-08-20 11:12:30 (GMT)
committerBenjamin Poulain <benjamin.poulain@nokia.com>2009-08-20 12:06:04 (GMT)
commit7023e7f95bdbc0a3c6923336c846f06a7b16e6fa (patch)
tree47a5d13e39aae5296548c98f8451c9e72c894a33 /src
parent2717f89d2b51c2eb3bc742a64d18a0941fd4b6d7 (diff)
downloadQt-7023e7f95bdbc0a3c6923336c846f06a7b16e6fa.zip
Qt-7023e7f95bdbc0a3c6923336c846f06a7b16e6fa.tar.gz
Qt-7023e7f95bdbc0a3c6923336c846f06a7b16e6fa.tar.bz2
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
Diffstat (limited to 'src')
-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 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: