helpers: Refactor and test fromJsonValue for QDateTime and QDate


Both overloads had their parsing logic inlined, duplicating the static
fromStringValue helpers. They now delegate to fromStringValue instead.
Tests are added for both overloads, reusing the fromByteArray data
functions, with separate tests covering non-string QJsonValue inputs.

Task-number: QTBUG-145232
Pick-to: 6.11
Change-Id: I788b6b8f8ea6b07e7ed664a1a8333cc59867068c
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
commit4ac78aaf6eb5efc8b9706e4142356c2dd60d3bdd
parent77a35184394c9707710e219ad6eafab31d08c2ae
authorRym Bouabid <rym.bouabid@qt.io>
committerRym Bouabid <rym.bouabid@qt.io>
commit timeWed, 27 May 2026 13:23:16 +0000