Fix various [=] lambda captures to capture [this] instead


C++20 deprecated the implicit capture of [this] in [=].

Move Q_D()s into the lambdas, where applicable.

Pick-to: 6.4 6.3 6.2 5.15
Change-Id: I345658b0ab9c4edc070f6fd111fce135dd757b14
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
commit42f96fe2074bc63cfb8a4ae71a7262d554661da2
parent925dae358913d7c614223a57552837dcc6e171e7
authorMarc Mutz <marc.mutz@qt.io>
committerMarc Mutz <marc.mutz@qt.io>
commit timeTue, 12 Jul 2022 19:07:15 +0000