Skip to content

Commit

Permalink
Refs #6616. Make error setting to update the parameter display
Browse files Browse the repository at this point in the history
Remove some unnecessary constness as well.
  • Loading branch information
arturbekasov committed Mar 10, 2014
1 parent 0f65ab6 commit ab078bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Expand Up @@ -34,16 +34,17 @@ bool ParameterPropertyManager::isErrorSet(const QtProperty* property) const
* @param property :: Property to set error for
* @param error :: Error value to set
*/
void ParameterPropertyManager::setError(const QtProperty* property, double error)
void ParameterPropertyManager::setError(QtProperty* property, double error)
{
m_errors[property] = error;
emit propertyChanged(property);
}

/**
* Clears error of the property, if one was set. If error was not set, the function does nothing.
* @param property :: Property to clear error for
*/
void ParameterPropertyManager::clearError(const QtProperty* property)
void ParameterPropertyManager::clearError(QtProperty* property)
{
m_errors.remove(property);
}
Expand Down
4 changes: 2 additions & 2 deletions Code/Mantid/QtPropertyBrowser/src/ParameterPropertyManager.h
Expand Up @@ -44,10 +44,10 @@ class ParameterPropertyManager : public QtDoublePropertyManager

public Q_SLOTS:
/// Set property error
void setError(const QtProperty* property, double error);
void setError(QtProperty* property, double error);

/// Clears error of the property, if one was set
void clearError(const QtProperty* property);
void clearError(QtProperty* property);

protected:
/// Text representation of the property
Expand Down

0 comments on commit ab078bf

Please sign in to comment.