Fix enum predicate comparison with Qt6
QVariant::operator== no longer does implicit type conversions in Qt6, so we need to pay more attention to have both operands in the right type.
QVariant::operator== no longer does implicit type conversions in Qt6, so we need to pay more attention to have both operands in the right type.