mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-24 15:26:48 -06:00
#3867 Anntoations. Remove TextAnnotation's child nodes
This commit is contained in:
parent
74b4828219
commit
8d28e86bce
@ -28,6 +28,7 @@
|
||||
#include "AnnotationCommands/RicTextAnnotation3dEditor.h"
|
||||
|
||||
#include "cafPdmUiTextEditor.h"
|
||||
#include "cafPdmUiTreeOrdering.h"
|
||||
|
||||
CAF_PDM_SOURCE_INIT(RimTextAnnotation, "RimTextAnnotation");
|
||||
|
||||
@ -40,7 +41,6 @@ RimTextAnnotation::RimTextAnnotation()
|
||||
CAF_PDM_InitObject("TextAnnotation", ":/TextAnnotation16x16.png", "", "");
|
||||
this->setUi3dEditorTypeName(RicTextAnnotation3dEditor::uiEditorTypeName());
|
||||
|
||||
|
||||
CAF_PDM_InitField(&m_anchorPointXyd, "AnchorPointXyd", Vec3d::ZERO, "Anchor Point", "", "", "");
|
||||
CAF_PDM_InitField(&m_labelPointXyd, "LabelPointXyd", Vec3d::ZERO, "Label Point", "", "", "");
|
||||
CAF_PDM_InitField(&m_text, "Text", QString("(New text)"), "Text", "", "", "");
|
||||
@ -51,6 +51,8 @@ RimTextAnnotation::RimTextAnnotation()
|
||||
|
||||
CAF_PDM_InitFieldNoDefault(&m_textAppearance, "TextAppearance", "Text Appearance", "", "", "");
|
||||
m_textAppearance = new RimAnnotationTextAppearance();
|
||||
m_textAppearance.uiCapability()->setUiTreeHidden(true);
|
||||
m_textAppearance.uiCapability()->setUiTreeChildrenHidden(true);
|
||||
|
||||
CAF_PDM_InitFieldNoDefault(&m_nameProxy, "NameProxy", "Name Proxy", "", "", "");
|
||||
m_nameProxy.registerGetMethod(this, &RimTextAnnotation::extractNameFromText);
|
||||
|
Loading…
Reference in New Issue
Block a user