Enable strict mode 6.11+ in qttasktree
Was alredy clean, except for QT_NO_QPAIR, which will
come in strict mode 6.12.
We can only enable QT_LEAN_HEADERS at level 1, since QtDeclarative
headers aren't level-2 clean, yet. While the module doesn't currently
have QML bindings, let's not cause the addition of them to be broken
immediately. Lean headers level 2 will come with strict mode 6.12,
most likely.
Fixes: QTBUG-145266
Pick-to: 6.11
Change-Id: I0ca04cc78f148bc00c4240ce85ddd6c87333d33f
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>