minor cleanup of qml's selected id management

1 job for master in 17 minutes and 31 seconds
Status Job ID Name Coverage
  Build
passed #30442
linux kf5-qt5 qt5.12

00:17:31

20.0%