[Qt] make splashscreen minimize when closing window

- changes behaviour from ignore to minimize, which seems more intuitive
  for the startup splashscreen
- guard an unused variable with Q_UNUSED() macro
- remove a commented out line of code