Polished this a bit

Separated problem solution code from case handler code.
Added two Q_UNUSED macro to suppress warnings in Release build mode.
Replaced example solution with more realistic one.