summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCaroline Chao <caroline.chao@digia.com>2013-10-28 09:21:33 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-30 14:50:02 +0100
commit195cd51f7d1d853220c16d043f1dfabd852de98b (patch)
tree20f0dd975863fe6ddb73fc99e7885a59394bb279 /src
parentebf0524186177158edde1de01c44aacae8e51d19 (diff)
Fix QSpinBox size calculation problem with empty stylesheets
Task-number: QTBUG-34305 Change-Id: I3e89dc66446e9f5e9e1810be367830b9df98ab0b Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/widgets/styles/qstylesheetstyle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/styles/qstylesheetstyle.cpp b/src/widgets/styles/qstylesheetstyle.cpp
index 417e092e11..ab98dfbdcf 100644
--- a/src/widgets/styles/qstylesheetstyle.cpp
+++ b/src/widgets/styles/qstylesheetstyle.cpp
@@ -4821,7 +4821,7 @@ QSize QStyleSheetStyle::sizeFromContents(ContentsType ct, const QStyleOption *op
QSize defaultUpSize = defaultSize(w, subRule.size(), spinbox->rect, PseudoElement_SpinBoxUpButton);
sz += QSize(defaultUpSize.width(), 0);
}
- if (rule.hasBox() || !rule.hasNativeBorder())
+ if (rule.hasBox() || rule.hasBorder() || !rule.hasNativeBorder())
sz = rule.boxSize(sz);
return sz;
}