Fix float-to-int truncation in QmlSensorOutputRange setters
QmlSensorOutputRange stores and exposes minimum, maximum and accuracy
as qreal, but its setters took int parameters. Passing the qreal values
from QSensor::outputRanges() therefore truncated them to integers,
losing all fractional precision.
Change setMinimum(), setMaximum() and setAccuracy() to take qreal.
Pick-to: 6.12
Change-Id: Ieae14469c1f65a6ee85cc7509d08d1cf04a8f4c9
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
| commit | c36a2ad0191a4d5ddc9453fd49403249c7c19766 |
| parent | b24091d8b5c2b1771fea433abfd175562cf0d442 |
| author | Lorn Potter <lorn.potter@qt.io> |
| committer | Lorn Potter <lorn.potter@qt.io> |
| commit time | Tue, 1 Sep 2026 18:45:40 +0000 |