[apps/graph] Change name: function->cartesian_function

Change-Id: I138bd13fec8514144cfde7164ec9aff081454609
This commit is contained in:
Émilie Feral
2017-02-14 17:57:55 +01:00
parent dc7a629dfa
commit 6b524737b4
25 changed files with 98 additions and 100 deletions

View File

@@ -10,13 +10,12 @@ FunctionExpressionCell::FunctionExpressionCell() :
{
}
void FunctionExpressionCell::setFunction(Function * f) {
void FunctionExpressionCell::setFunction(CartesianFunction * f) {
m_function = f;
m_expressionView.setExpression(m_function->layout());
bool active = m_function->isActive();
KDColor textColor = active ? KDColorBlack : Palette::GreyDark;
m_expressionView.setTextColor(textColor);
//layoutSubviews();
}
void FunctionExpressionCell::setEven(bool even) {
@@ -29,7 +28,7 @@ void FunctionExpressionCell::setHighlighted(bool highlight) {
m_expressionView.setBackgroundColor(backgroundColor());
}
Function * FunctionExpressionCell::function() {
CartesianFunction * FunctionExpressionCell::function() {
return m_function;
}