BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Functions | |
bool | CompatibleVariantTypes (const QVariant &oldValue, const QVariant &newValue) |
Returns true if variants has compatible types. More... | |
bool | IsTheSame (const QVariant &var1, const QVariant &var2) |
Returns true if given variants have same type and value. For custom variants (e.g. ComboProperty) will always return false (see explanations in cpp file). More... | |
int | VariantType (const QVariant &variant) |
Returns type of variant (additionally checks for user type). More... | |
bool GUI::Util::Variant::CompatibleVariantTypes | ( | const QVariant & | oldValue, |
const QVariant & | newValue | ||
) |
Returns true if variants has compatible types.
Definition at line 25 of file VariantUtil.cpp.
References VariantType().
Referenced by SessionItem::setValue().
bool GUI::Util::Variant::IsTheSame | ( | const QVariant & | var1, |
const QVariant & | var2 | ||
) |
Returns true if given variants have same type and value. For custom variants (e.g. ComboProperty) will always return false (see explanations in cpp file).
Definition at line 39 of file VariantUtil.cpp.
References VariantType().
Referenced by SessionItemData::ItemData::operator==(), and SessionItemData::setData().
int GUI::Util::Variant::VariantType | ( | const QVariant & | variant | ) |
Returns type of variant (additionally checks for user type).
Definition at line 17 of file VariantUtil.cpp.
Referenced by CompatibleVariantTypes(), and IsTheSame().