mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-27 17:50:04 +01:00
[poincare] Start removing ExpressionLayout
This commit is contained in:
@@ -23,17 +23,18 @@ KDCoordinate ExpressionModelListController::expressionRowHeight(int j) {
|
||||
return Metric::StoreRowHeight;
|
||||
}
|
||||
ExpressionModel * m = modelStore()->modelAtIndex(j);
|
||||
if (m->layout() == nullptr) {
|
||||
if (!m->layoutRef().isDefined()) {
|
||||
return Metric::StoreRowHeight;
|
||||
}
|
||||
KDCoordinate modelSize = m->layout()->size().height();
|
||||
KDCoordinate modelSize = m->layoutRef().layoutSize().height();
|
||||
return modelSize + Metric::StoreRowHeight - KDText::charSize().height();
|
||||
}
|
||||
|
||||
void ExpressionModelListController::willDisplayExpressionCellAtIndex(HighlightCell * cell, int j) {
|
||||
EvenOddExpressionCell * myCell = (EvenOddExpressionCell *)cell;
|
||||
ExpressionModel * m = modelStore()->modelAtIndex(j);
|
||||
myCell->setExpressionLayout(m->layout());
|
||||
myCell->setExpressionLayout(nullptr); //TODO
|
||||
//myCell->setExpressionLayout(m->layout());
|
||||
}
|
||||
|
||||
/* Responder */
|
||||
|
||||
Reference in New Issue
Block a user