Fix compilation without Qml


QuickTestUtilsPrivate is only required for tst_usertypes, which is not
compiled when Qml library isn't available, so make QuickTestUtilsPrivate
optional.

This patch amends c41500bd488b708473da758e04deb57c033d56cc.

Change-Id: I890f98c758c6a787dab3676750813ec5a4685b96
Pick-to: 6.2 6.3 6.4
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
commit4ae71ddefd5957e0c75cc8ee63d8b93ef8c37424
parentc089ddc172b4568f4517554ca37289f8d1d66d42
authorSona Kurazyan <sona.kurazyan@qt.io>
committerSona Kurazyan <sona.kurazyan@qt.io>
commit timeFri, 17 Jun 2022 12:49:11 +0200