sidedockwidget: get rid of depreccated method

1 job for master in 7 minutes and 14 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Build
passed #16520
linux kf5-qt5 qt5.12

00:07:14

48.0%