Use more Qt<5.10-compatible QCOMPARE calls

Authored by kossebau on Aug 4 2018, 7:25 PM.