aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@qt.io>2020-08-10 16:49:53 +0200
committerRichard Moe Gustavsen <richard.gustavsen@qt.io>2020-08-13 07:40:07 +0000
commitc2aaf8ee66ebd56cf4b0b0eedd1e10b80d6c1907 (patch)
tree095f2a70ea22ade60cd29ea8b06e00d7956fe8c1
parent98668d30cc89239a4c7b8f19d25f6642f66909f0 (diff)
Native style: increase combobox minimum size
After testing on Big Sur, it becomes clear that the minimum size (which is also the size of the nine patch image) needs to be larger in order for the combobox to render correctly. Change-Id: Iac70efa348afb7efb0af9453dd392b40ba3a9f89 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
-rw-r--r--src/imports/nativestyle/qstyle/mac/qquickmacstyle_mac.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/nativestyle/qstyle/mac/qquickmacstyle_mac.mm b/src/imports/nativestyle/qstyle/mac/qquickmacstyle_mac.mm
index 4648080e..e61bdafa 100644
--- a/src/imports/nativestyle/qstyle/mac/qquickmacstyle_mac.mm
+++ b/src/imports/nativestyle/qstyle/mac/qquickmacstyle_mac.mm
@@ -5908,7 +5908,7 @@ QSize QMacStyle::sizeFromContents(ContentsType ct, const QStyleOption *opt, cons
case CT_SpinBox:
if (const QStyleOptionSpinBox *vopt = qstyleoption_cast<const QStyleOptionSpinBox *>(opt)) {
if (vopt->subControls == SC_SpinBoxFrame) {
- const QSize minimumSize(10, 10);
+ const QSize minimumSize(20, 24);
if (sz.width() < minimumSize.width())
sz.setWidth(minimumSize.width());
if (sz.height() < minimumSize.height())