From 5cc3db00eadff2525cdbb75b1cd8ec6b6de20aad Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Thu, 21 Sep 2023 10:54:23 +0200 Subject: [PATCH] Define default editor --- .../cafPdmUiDefaultObjectEditor.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Fwk/AppFwk/cafUserInterface/cafPdmUiDefaultObjectEditor.cpp b/Fwk/AppFwk/cafUserInterface/cafPdmUiDefaultObjectEditor.cpp index b6a4d4d182..2ed1044be5 100644 --- a/Fwk/AppFwk/cafUserInterface/cafPdmUiDefaultObjectEditor.cpp +++ b/Fwk/AppFwk/cafUserInterface/cafPdmUiDefaultObjectEditor.cpp @@ -75,15 +75,22 @@ CAF_PDM_UI_REGISTER_DEFAULT_FIELD_EDITOR( PdmUiTreeSelectionEditor, std::vector< CAF_PDM_UI_REGISTER_DEFAULT_FIELD_EDITOR( PdmUiFilePathEditor, FilePath ); -// As the macro CAF_PDM_UI_REGISTER_DEFAULT_FIELD_EDITOR() is not working correctly for std::pair the +// As the macro CAF_PDM_UI_REGISTER_DEFAULT_FIELD_EDITOR() is not working correctly for std::pair<> the // registration of this type in the factory has to be written directly -static bool myPdmUiCheckBoxAndTextEditor73 = +static bool myPdmUiCheckBoxAndTextEditor = caf::Factory::instance()->registerCreator( QString( typeid( caf::PdmField> ).name() ) ); -static bool my2PdmUiCheckBoxAndTextEditor73 = +static bool myPdmUiCheckBoxAndTextEditor_proxy = caf::Factory::instance()->registerCreator( QString( typeid( caf::PdmProxyValueField> ).name() ) ); +static bool myPdmUiValueRangeEditor = + caf::Factory::instance()->registerCreator( + QString( typeid( caf::PdmField> ).name() ) ); +static bool myPdmUiValueRangeEditor_proxy = + caf::Factory::instance()->registerCreator( + QString( typeid( caf::PdmProxyValueField> ).name() ) ); + //-------------------------------------------------------------------------------------------------- /// //--------------------------------------------------------------------------------------------------