Fix compiler warning about unused variable

showTaskInEditor is a static method by now.

Change-Id: I9192a6c1223fdd7933b9d02da9aa3952dc4933cd
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>