Replace manual parsing with QVersionNumber::fromString()


Instead of splitting the version string into tokens separated by dots
(.) and then parsing each token into an int, building a QList from
them with which to eventually construct a QVersionNumber, just use
QVersionNumber::fromString(), which is both simpler and more
efficient.

Amends f467e29f74fd121b62ad66cb70da9a4b7f6e3248.

Gets rid of Q_FOREACH loops that have crept back in after the cmake
port dropped the QT_NO_FOREACH protection originally added in
61342a9e915f77501b2e5ab72fe40bc40818c4f5.

As a drive-by, to maintain line-length limits, port affected lines to
_L1 UDLs.

Change-Id: If22da8eb1a33f1e967ae2f6d152f0b4c401d722d
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
commitd63dd81aa8403bb7164abe505196c806b39ea98c
parent9b29f8ddf34c9decad70d53ec44078cffb7a82cb
authorMarc Mutz <marc.mutz@qt.io>
committerMarc Mutz <marc.mutz@qt.io>
commit timeFri, 4 Aug 2023 15:03:39 +0200