mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
@@ -28,6 +28,7 @@
|
||||
#include "cafPdmUiDoubleSliderEditor.h"
|
||||
#include "cvfAssert.h"
|
||||
#include "cvfMath.h"
|
||||
#include "RiuMainWindow.h"
|
||||
|
||||
|
||||
namespace caf
|
||||
@@ -110,6 +111,7 @@ void RimEclipsePropertyFilter::fieldChangedByUi(const caf::PdmFieldHandle* chang
|
||||
resultDefinition->fieldChangedByUi(changedField, oldValue, newValue);
|
||||
setToDefaultValues();
|
||||
m_parentContainer->fieldChangedByUi(changedField, oldValue, newValue);
|
||||
updateFilterName();
|
||||
}
|
||||
|
||||
if ( &lowerBound == changedField
|
||||
@@ -119,6 +121,7 @@ void RimEclipsePropertyFilter::fieldChangedByUi(const caf::PdmFieldHandle* chang
|
||||
|| &filterMode == changedField)
|
||||
{
|
||||
m_parentContainer->fieldChangedByUi(changedField, oldValue, newValue);
|
||||
updateFilterName();
|
||||
this->updateIconState();
|
||||
}
|
||||
}
|
||||
@@ -255,3 +258,15 @@ void RimEclipsePropertyFilter::computeResultValueRange()
|
||||
upperBound.setUiName(QString("Max (%1)").arg(max));
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimEclipsePropertyFilter::updateFilterName()
|
||||
{
|
||||
QString newFiltername;
|
||||
newFiltername = resultDefinition->resultVariable() + " ("
|
||||
+ QString::number(lowerBound()) + " .. " + QString::number(upperBound) + ")";
|
||||
this->name = newFiltername;
|
||||
RiuMainWindow::instance()->forceProjectTreeRepaint();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user