#2479 2dIntersectionView. Remove 2dIntersectionViewCollection toggle in project tree

This commit is contained in:
Bjørn Erik Jensen
2018-03-13 15:15:02 +01:00
parent 28830d3a1b
commit 15e242d1e3
3 changed files with 1 additions and 33 deletions

View File

@@ -31,8 +31,6 @@ Rim2dIntersectionViewCollection::Rim2dIntersectionViewCollection()
{
CAF_PDM_InitObject("2D Intersection Views", ":/CrossSection16x16.png", "", "");
CAF_PDM_InitField(&m_isActive, "IsActive", true, "Show", "","","");
CAF_PDM_InitFieldNoDefault(&m_intersectionViews, "IntersectionViews", "Intersection Views", ":/CrossSection16x16.png", "", "");
m_intersectionViews.uiCapability()->setUiTreeHidden(true);
}
@@ -116,19 +114,3 @@ void Rim2dIntersectionViewCollection::syncFromExistingIntersections( bool doUpda
if (rimCase) rimCase->updateConnectedEditors();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void Rim2dIntersectionViewCollection::fieldChangedByUi(const caf::PdmFieldHandle* changedField,
const QVariant& oldValue,
const QVariant& newValue)
{
if (changedField == &m_isActive)
{
for (auto view : m_intersectionViews)
{
view->updateMdiWindowVisibility();
}
}
}