Caf: Corrected the spesialization of field of vector and list equality compare, which is supposed to be pr. element

This commit is contained in:
Jacob Støren 2016-06-15 17:30:13 +02:00
parent 8d15fa1b84
commit e1fa9aa9f3
2 changed files with 3 additions and 2 deletions

View File

@ -43,6 +43,7 @@
#include "cafPdmXmlVec3d.h"
Q_DECLARE_METATYPE(cvf::Vec3d);
namespace caf
{

View File

@ -86,7 +86,7 @@ public:
static bool isEqual(const QVariant& variantValue, const QVariant& variantValue2)
{
return variantValue == variantValue2;
return variantValue.value<T>() == variantValue2.value<T>();
}
/// Methods to get a list of options for a field, specialized for AppEnum
@ -123,7 +123,7 @@ public:
static bool isEqual(const QVariant& variantValue, const QVariant& variantValue2)
{
return variantValue == variantValue2;
return variantValue.value<T>() == variantValue2.value<T>();
}
/// Methods to get a list of options for a field, specialized for AppEnum