Renamed uiPdmModel() to uiPdmModel_OBSOLETE()

To make it easier to see what code is using the obsolete stuff.
This commit is contained in:
Jacob Støren
2015-08-14 13:18:42 +02:00
parent d0e1bedd8c
commit d371da246f
6 changed files with 15 additions and 15 deletions

View File

@@ -90,11 +90,11 @@ void RimEclipseCellColors::fieldChangedByUi(const caf::PdmFieldHandle* changedFi
if (faultColors)
{
faultColors->updateConnectedEditors();
RiuMainWindow::instance()->uiPdmModel()->updateUiSubTree(faultColors);
RiuMainWindow::instance()->uiPdmModel_OBSOLETE()->updateUiSubTree(faultColors);
}
else
{
RiuMainWindow::instance()->uiPdmModel()->updateUiSubTree(this);
RiuMainWindow::instance()->uiPdmModel_OBSOLETE()->updateUiSubTree(this);
}
}

View File

@@ -451,7 +451,7 @@ void RimEclipseStatisticsCase::fieldChangedByUi(const caf::PdmFieldHandle* chang
if (&m_wellDataSourceCase == changedField)
{
RimUiTreeModelPdm* treeModel = RiuMainWindow::instance()->uiPdmModel();
RimUiTreeModelPdm* treeModel = RiuMainWindow::instance()->uiPdmModel_OBSOLETE();
// Find or load well data for given case
RimEclipseCase* sourceResultCase = caseGroup()->caseCollection()->findByDescription(m_wellDataSourceCase);
@@ -479,7 +479,7 @@ void RimEclipseStatisticsCase::fieldChangedByUi(const caf::PdmFieldHandle* chang
//--------------------------------------------------------------------------------------------------
void RimEclipseStatisticsCase::setWellResultsAndUpdateViews(const cvf::Collection<RigSingleWellResultsData>& sourceCaseWellResults)
{
RimUiTreeModelPdm* treeModel = RiuMainWindow::instance()->uiPdmModel();
RimUiTreeModelPdm* treeModel = RiuMainWindow::instance()->uiPdmModel_OBSOLETE();
this->reservoirData()->setWellResults(sourceCaseWellResults);

View File

@@ -178,7 +178,7 @@ void RimScriptCollection::fieldChangedByUi(const caf::PdmFieldHandle *changedFie
QFileInfo fi(directory);
this->setUiName(fi.baseName());
this->readContentFromDisc();
RimUiTreeModelPdm* treeModel = RiuMainWindow::instance()->uiPdmModel();
RimUiTreeModelPdm* treeModel = RiuMainWindow::instance()->uiPdmModel_OBSOLETE();
if (treeModel) treeModel->updateUiSubTree(this);
}
}