mirror of
https://github.com/OPM/ResInsight.git
synced 2024-12-28 01:41:42 -06:00
Use AppEnumField in test application
This commit is contained in:
parent
e080fa55e0
commit
a1bada1f64
@ -24,7 +24,7 @@ public:
|
||||
|
||||
QVariant toQVariant() const override
|
||||
{
|
||||
auto enumValue = static_cast<std::underlying_type_t<DataType>>( m_fieldValue );
|
||||
auto enumValue = static_cast<std::underlying_type_t<DataType>>( m_fieldValue.value() );
|
||||
return enumValue;
|
||||
}
|
||||
|
||||
|
@ -18,6 +18,7 @@
|
||||
#include "cafCmdSelectionHelper.h"
|
||||
#endif
|
||||
|
||||
#include "cafAppEnumField.h"
|
||||
#include "cafCmdFeatureMenuBuilder.h"
|
||||
#include "cafFilePath.h"
|
||||
#include "cafPdmDocument.h"
|
||||
@ -714,6 +715,8 @@ public:
|
||||
"",
|
||||
"",
|
||||
"" );
|
||||
|
||||
CAF_PDM_InitFieldNoDefault( &m_testAppEnumField, "TestAppEnumValue", "AppEnum Field" );
|
||||
CAF_PDM_InitFieldNoDefault( &m_ptrField, "m_ptrField", "PtrField", "", "", "" );
|
||||
|
||||
CAF_PDM_InitFieldNoDefault( &m_proxyEnumField, "ProxyEnumValue", "ProxyEnum", "", "", "" );
|
||||
@ -732,6 +735,7 @@ public:
|
||||
caf::PdmField<int> m_intField;
|
||||
caf::PdmField<QString> m_textField;
|
||||
caf::PdmField<caf::AppEnum<TestEnumType>> m_testEnumField;
|
||||
caf::AppEnumField<TestEnumType> m_testAppEnumField;
|
||||
caf::PdmPtrField<SmallDemoPdmObjectA*> m_ptrField;
|
||||
|
||||
caf::PdmProxyValueField<caf::AppEnum<TestEnumType>> m_proxyEnumField;
|
||||
|
Loading…
Reference in New Issue
Block a user