diff options
author | Benjamin Poulain <benjamin.poulain@nokia.com> | 2009-08-20 11:12:30 (GMT) |
---|---|---|
committer | Benjamin Poulain <benjamin.poulain@nokia.com> | 2009-08-20 12:06:04 (GMT) |
commit | 7023e7f95bdbc0a3c6923336c846f06a7b16e6fa (patch) | |
tree | 47a5d13e39aae5296548c98f8451c9e72c894a33 /src/gui/styles | |
parent | 2717f89d2b51c2eb3bc742a64d18a0941fd4b6d7 (diff) | |
download | Qt-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/gui/styles')
-rw-r--r-- | src/gui/styles/qmacstyle_mac.mm | 1 |
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: |