Apparently Qt wants us to implement each comparison on our own, and there is no simple replacement for this.