build fix: use the same types for QCOMPARE

Change-Id: I54c619baceeba0d2b7f1aeadc2d3345561f67b8e
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>