AppletQuickItem: connectLayoutAttached is very obscure and full of hacks
This code is very obscure, and should be rewritten for various reasons:
It's not obvious at first how it even compiles! I mean, look at the ownLayout
member variable usage few lines above declaring another ownLayout
variable.
And at this point, the reliance on QQuickLayoutAttached
class is so high, we'd rather just use private Qt header instead of all this bikeshadding.