BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
VariantUtil.h File Reference

Description

Defines namespace GUI::Util::Variant.

Homepage:\n http://www.bornagainproject.org
License:\n GNU General Public License v3 or higher (see COPYING)
Authors
Scientific Computing Group at MLZ (see CITATION, AUTHORS)

Definition in file VariantUtil.h.

Include dependency graph for VariantUtil.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 GUI
 
 GUI::Util
 
 GUI::Util::Variant
 

Functions

bool GUI::Util::Variant::CompatibleVariantTypes (const QVariant &oldValue, const QVariant &newValue)
 Returns true if variants has compatible types. More...
 
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). More...
 
int GUI::Util::Variant::VariantType (const QVariant &variant)
 Returns type of variant (additionally checks for user type). More...