diff options
author | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2019-12-17 19:58:58 +0100 |
---|---|---|
committer | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2019-12-18 16:31:27 +0100 |
commit | 2614347ab8aa0ec0b1ea8f383ae795cfdb6ae2ac (patch) | |
tree | 085530b53665d9a6f3f2889760271867934aa222 /LICENSE.QT-LICENSE-AGREEMENT | |
parent | f2d752c59f5a1d2e815394d718350d0fcaf43ef6 (diff) |
Fix QSpinbox default width
After aa8d3f90a440575deef914916299b792105d7209 the default width of the
spinbox buttons is calculated from the spinbox width. This is wrong
because the initial width (e.g. when the spinbox is not yet shown) is
640 pixels which results in a too long width.
Therefore fall back to the old hard-coded value version but instead
using 20 pixels, use 16 to be in sync with the stylesheet style value
and honor the dpi of the screen by using QStyleHelper::dpiScaled().
Fixes: QTBUG-79806
Fixes: QTBUG-80814
Change-Id: I45786684575273f940e498df3b7639e626f00a7e
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'LICENSE.QT-LICENSE-AGREEMENT')
0 files changed, 0 insertions, 0 deletions