In bd5e078e5b,
QQuickControlPrivate::calcHoverEnabled was added. Presumably its goal
was to check if QQuickControl and other interactive control-like types
such as QQuickTextArea and QQuickTextField had hover enabled. However,
the property() check was too general and included MouseArea, which also
has a hoverEnabled property.
This patch makes the check stricter by checking for all types.
While we're here, make a reusable isInteractiveControlType function
in the new QQuickTemplatesUtils namespace, since e.g.
findActiveFocusControl() in QQuickApplicationWindow does similar
checks.
Fixes: QTBUG-130807
Pick-to: 6.5 6.8
Change-Id: I6ff8478984eaa89cc725e7bf652d8318eaab7fdc
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>