Fix: Datavis3D, incorrect usage of qFuzzyCompare()


As stated in the documentation of qFuzzyCompare, it does not work if
either one of the values is 0.0. The docs suggests adding one to
compared values. If value is compared against 0.0, qFuzzyIsNull should
be used. If there can be negative values, the plus one workaround does
not work. However, there are fuzzyCompare in the private api which works
for negative cases as well.

This patch changes the 0 checks to use qFuzzyIsNull, and when either
one of the compared values can be negative, the private fuzzyCompare
is used.

Pick-to: 6.11 6.10 6.8
Task-number: QTBUG-143622
Change-Id: I59bcd197bc78c4a971b542d8bb1855ff018f2db9
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
commit6778a79460f5119a8266094ecc10e051743e6238
parentd954180462e8e98c86038416554fb2725c502ad7
authorTomi Korpipaa <tomi.korpipaa@qt.io>
committerTomi Korpipaa <tomi.korpipaa@qt.io>
commit timeFri, 20 Feb 2026 08:56:40 +0200