case QVariant::Char:
case QVariant::ByteArray:
case QVariant::KeySequence:
+ case QMetaType::ULong:
+ case QMetaType::Long:
+ case QMetaType::UShort:
+ case QMetaType::UChar:
+ case QMetaType::Char:
+ case QMetaType::Short:
return true;
default:
return false;
/* Quaternion */
}
- switch (currentType) {
- case QVariant::Int:
- return t == QMetaType::ULong
- || t == QMetaType::Long
- || t == QMetaType::UShort
- || t == QMetaType::UChar
- || t == QMetaType::Char
- || t == QMetaType::Short;
+ switch (int(t)) {
case QMetaType::Long:
case QMetaType::Char:
case QMetaType::UChar:
case QMetaType::Short:
case QMetaType::UShort: {
// almost the same as Int case
- switch (t) {
+ switch (currentType) {
case QVariant::Int: // Int included
case QVariant::UInt:
case QVariant::String: