[apps/graph] add an attribute "activate" to functions

Change-Id: I1a1f548c540a6e31fe9ce1aeb742bf6a6292362c
This commit is contained in:
Émilie Feral
2016-09-19 15:22:24 +02:00
parent 8a27740719
commit 1f7ba888c9
4 changed files with 17 additions and 4 deletions

View File

@@ -12,7 +12,8 @@ Graph::Function::Function(const char * text, KDColor color) :
m_color(color),
m_name("f(x)"),
m_expression(nullptr),
m_layout(nullptr)
m_layout(nullptr),
m_active(true)
{
}
@@ -47,3 +48,11 @@ ExpressionLayout * Graph::Function::layout() {
}
return m_layout;
}
bool Graph::Function::isActive() {
return m_active;
}
void Graph::Function::setActive(bool active) {
m_active = active;
}