Modernize code: Replace remaining private slots with lambdas

2 jobs for master
Status Job ID Name Coverage
  Build
canceled build_clazy_clang_tidy #94514

canceled linux kf5-qt5 qt5.15 #94513