[patch] Cherry-pick a8b27d974a4ced654a4566b6a9822ed92956a2d2

Original commit message:

    Fix PathView stealing mouse grab from its child items.

    Apply the improvements that have been applied to Flickables handling of
    child items over time to PathView to bring its behavior back in line.

    Task-number: QTBUG-33699
    Change-Id: I76a412d75c48f9cf2f12f5f6f1aa01ff62d06364
    Reviewed-by: Joona Petrell <joona.petrell@jollamobile.com>
    Reviewed-by: Alan Alpert (Personal) <416365416c@gmail.com>