Fix the Level Diagnostics Tool

A Qt4->Qt5 bug, and another change