Use the new layout logic

This commit is contained in:
Romain Goyet
2015-09-21 10:37:43 +02:00
parent fc08a651cc
commit f3d613657c

View File

@@ -19,9 +19,11 @@ void ion_app() {
input[index] = 0;
index = 0;
Expression * e = Expression::parse(input);
e->recursiveLayout();
e->m_frame.origin = KDPOINT(0, 100);
e->recursiveDraw();
ExpressionLayout * l = e->createLayout();
l->m_frame.origin = KDPOINT(0, 100);
l->draw();
// FIXME delete l;
//FIXME delete e;
} else {
if (index == 0) {