Fixed visibility of items in tree view

This commit is contained in:
Magne Sjaastad 2015-08-12 17:46:22 +02:00
parent 8f051e6a72
commit beb291e1ce
4 changed files with 6 additions and 1 deletions

View File

@ -444,12 +444,15 @@ void RiaApplication::addWellPathsToModel(QList<QString> wellPathFilePaths)
//printf("Create well path collection.\n");
oilField->wellPathCollection = new RimWellPathCollection();
oilField->wellPathCollection->setProject(m_project);
m_project->updateConnectedEditors();
RiuMainWindow::instance()->uiPdmModel()->updateUiSubTree(m_project);
}
if (oilField->wellPathCollection) oilField->wellPathCollection->addWellPaths(wellPathFilePaths);
RiuMainWindow::instance()->uiPdmModel()->updateUiSubTree(oilField->wellPathCollection);
oilField->wellPathCollection->updateConnectedEditors();
}

View File

@ -48,6 +48,7 @@ RimOilFieldEntry::RimOilFieldEntry()
CAF_PDM_InitFieldNoDefault(&wellsFilePath, "wellsFilePath", "wellsFilePath", "", "", "");
CAF_PDM_InitFieldNoDefault(&wells, "Wells", "", "", "", "");
wells.uiCapability()->setUiHidden(true);
}
//--------------------------------------------------------------------------------------------------

View File

@ -33,9 +33,9 @@ RimOilRegionEntry::RimOilRegionEntry()
CAF_PDM_InitFieldNoDefault(&name, "OilRegionEntry", "OilRegionEntry", "", "", "");
CAF_PDM_InitFieldNoDefault(&fields, "Fields", "", "", "", "");
fields.uiCapability()->setUiHidden(true);
CAF_PDM_InitField(&selected, "Selected", false, "Selected", "", "", "");
}
//--------------------------------------------------------------------------------------------------

View File

@ -62,6 +62,7 @@ RimWellPathImport::RimWellPathImport()
CAF_PDM_InitField(&west, "UtmWest", 0.0, "West", "", "", "");
CAF_PDM_InitFieldNoDefault(&regions, "Regions", "", "", "", "");
regions.uiCapability()->setUiHidden(true);
}
//--------------------------------------------------------------------------------------------------