[Qt] minor changes in splashscreen.cpp

- guard an unused variable with Q_UNUSED() macro
- remove a commented out line of code
Merge pull request #4959

bb26e2c [Qt] minor changes in splashscreen.cpp (Philip Kaufmann)