mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1670 Add const and move some functions to private section
This commit is contained in:
parent
1de6986ba2
commit
7cc95c3fa8
@ -288,11 +288,10 @@ QList<caf::PdmOptionItemInfo> RimCellRangeFilter::calculateValueOptions(const ca
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimCellRangeFilter::isRangeFilterControlled()
|
||||
bool RimCellRangeFilter::isRangeFilterControlled() const
|
||||
{
|
||||
RimView* rimView = NULL;
|
||||
firstAncestorOrThisOfType(rimView);
|
||||
CVF_ASSERT(rimView);
|
||||
RimView* rimView = nullptr;
|
||||
firstAncestorOrThisOfTypeAsserted(rimView);
|
||||
|
||||
bool isRangeFilterControlled = false;
|
||||
if (rimView && rimView->viewController() && rimView->viewController()->isRangeFiltersControlled())
|
||||
|
@ -44,9 +44,6 @@ public:
|
||||
RimCellRangeFilter();
|
||||
virtual ~RimCellRangeFilter();
|
||||
|
||||
RimCellRangeFilterCollection* parentContainer();
|
||||
void setDefaultValues();
|
||||
|
||||
caf::PdmField<int> gridIndex; // The index of the grid that this filter applies to
|
||||
caf::PdmField<bool> propagateToSubGrids; // Do propagate the effects to the sub-grids
|
||||
|
||||
@ -57,9 +54,8 @@ public:
|
||||
caf::PdmField<int> cellCountJ;
|
||||
caf::PdmField<int> cellCountK;
|
||||
|
||||
void computeAndSetValidValues();
|
||||
|
||||
void updateActiveState();
|
||||
void setDefaultValues();
|
||||
void updateActiveState();
|
||||
|
||||
protected:
|
||||
virtual void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue);
|
||||
@ -70,10 +66,10 @@ protected:
|
||||
virtual QList<caf::PdmOptionItemInfo> calculateValueOptions( const caf::PdmFieldHandle* fieldNeedingOptions, bool * useOptionsOnly );
|
||||
|
||||
private:
|
||||
bool isRangeFilterControlled();
|
||||
|
||||
private:
|
||||
const cvf::StructGridInterface* selectedGrid();
|
||||
RimCellRangeFilterCollection* parentContainer();
|
||||
bool isRangeFilterControlled() const;
|
||||
void computeAndSetValidValues();
|
||||
const cvf::StructGridInterface* selectedGrid();
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user