diff --git a/src/QmlControls/ParameterEditorController.cc b/src/QmlControls/ParameterEditorController.cc index d4eaf5c..da3a9fc 100644 --- a/src/QmlControls/ParameterEditorController.cc +++ b/src/QmlControls/ParameterEditorController.cc @@ -352,7 +352,7 @@ void ParameterEditorController::resetAllToVehicleConfiguration(void) refresh(); } -bool ParameterEditorController::_shouldShow(Fact* fact) +bool ParameterEditorController::_shouldShow(Fact* fact) const { bool show = _showModifiedOnly ? (fact->defaultValueAvailable() ? (fact->valueEqualsDefault() ? false : true) : false) : true; return show; diff --git a/src/QmlControls/ParameterEditorController.h b/src/QmlControls/ParameterEditorController.h index 717af92..e27ad8e 100644 --- a/src/QmlControls/ParameterEditorController.h +++ b/src/QmlControls/ParameterEditorController.h @@ -136,7 +136,7 @@ private slots: void _factAdded (int compId, Fact* fact); private: - bool _shouldShow(Fact *fact); + bool _shouldShow(Fact *fact) const; private: ParameterManager* _parameterMgr = nullptr;