[Graph] clean the function cell

Change-Id: I91b5c3754367aef9b58d108bf90f96e3f036f595
This commit is contained in:
Émilie Feral
2016-09-15 09:54:11 +02:00
committed by Romain Goyet
parent 4b88baebec
commit 091fbd8d72

View File

@@ -14,12 +14,7 @@ void FunctionCell::drawRect(KDContext * ctx, KDRect rect) const {
KDColor background = m_even ? KDColor(0xEEEEEE) : KDColor(0x777777);
ctx->fillRect(rect, background);
ctx->drawString(m_function->text(), KDPointZero, m_focused);
m_function->layout()->draw(ctx, KDPointZero);
//Expression * foo = Expression::parse("1+2/3");
//ExpressionLayout * fooLayout = foo->createLayout();
//fooLayout->draw(ctx, KDPointZero);
//delete fooLayout;
//delete foo;
// m_function->layout()->draw(ctx, KDPointZero);
}
void FunctionCell::setFunction(Graph::Function * f) {