fix build break caused qComapre QRect and QRectF
qCompare doesn't allow different types, related to commit #7a709c54