wasm: a11y - Announce a spin box value, not a text edit


QAccessible::SpinBox was an <input type="number">, and each value change
wrote the element's value property. Writing text into the focused field
is announced as a text edit, so stepping the value said "selection
replaced" instead of the new value.

Use a div with role="spinbutton" and the aria-value* attributes, as the
slider and the dial already do, plus aria-valuetext so that any prefix
or suffix is announced. This also leaves the arrow keys to Qt's own
stepping instead of the input's.

Pick-to: 6.12
Change-Id: I37a08cb1bffb7e842e1f4d4e0366c821b25cecf5
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
commit4b8014244e3e63712b8082ebce70c1222927a9d8
parenta0e79c12f2ec9434cf28e075515c03a3f1e136be
authorLorn Potter <lorn.potter@qt.io>
committerLorn Potter <lorn.potter@qt.io>
commit timeTue, 20 Oct 2026 13:23:00 +0000