19 int result =
static_cast<int>(variant.type());
20 if (result == QVariant::UserType)
21 result = variant.userType();
30 if (oldValue.isValid())
46 if (var1.type() == QVariant::UserType)
Defines namespace GUI::Util::Variant.
bool IsTheSame(const QVariant &var1, const QVariant &var2)
Returns true if given variants have same type and value. For custom variants (e.g....
int VariantType(const QVariant &variant)
Returns type of variant (additionally checks for user type).
bool CompatibleVariantTypes(const QVariant &oldValue, const QVariant &newValue)
Returns true if variants has compatible types.