Introduce setParentVisiblity


It's needed to determine the item visibility without altering
user-set visibility values.

Change-Id: Ibc78cdbc4eab83ddf93326e58ab4d2a883de444b
Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
commitbda6fa9d1f67525e741b45362c58ac4f1a780624
parentacc8bc079cda6a31a9d19dca860a1a2db378addf
authorBogDan Vatra <bogdan@kdab.com>
committerPaolo Angelelli <paolo.angelelli@qt.io>
commit timeTue, 27 Mar 2018 10:36:22 +0000