Do not hide title if only labels should be hidden


Title's sizeHint didn't take the visibility of labels into
consideration when calculating the size hint. Instead, we ended
up with "..." for titles when labels were to be hidden and
titles left visible.

Pick-to: 6.7 6.8
Fixes: QTBUG-127434
Change-Id: I123d4b0a41f09f1e130e43c03d4d89a1d3404b50
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
commitc87a46337c8150272e65825f7899857b0cfb9042
parent7140b7627cec2e0df94ae41ea42873c044b904c8
authorTomi Korpipaa <tomi.korpipaa@qt.io>
committerTomi Korpipaa <tomi.korpipaa@qt.io>
commit timeMon, 12 Aug 2024 14:17:43 +0300