[escher] Change the function expression cell to inherit from

even odd expression cell
This commit is contained in:
Émilie Feral
2018-05-22 16:30:38 +02:00
parent c0d3b97c6b
commit e160282e06
14 changed files with 71 additions and 104 deletions

View File

@@ -197,7 +197,7 @@ void ListController::willDisplayTitleCellAtIndex(HighlightCell * cell, int j) {
}
void ListController::willDisplayExpressionCellAtIndex(HighlightCell * cell, int j) {
FunctionExpressionCell * myCell = (FunctionExpressionCell *)cell;
ModelExpressionCell * myCell = (ModelExpressionCell *)cell;
Sequence * sequence = m_sequenceStore->functionAtIndex(functionIndexForRow(j));
if (sequenceDefinitionForRow(j) == 0) {
myCell->setExpressionLayout(sequence->layout());
@@ -304,7 +304,7 @@ void ListController::reinitExpression(Shared::Function * function) {
View * ListController::loadView() {
for (int i = 0; i < k_maxNumberOfRows; i++) {
m_sequenceTitleCells[i] = new SequenceTitleCell(FunctionTitleCell::Orientation::VerticalIndicator);
m_expressionCells[i] = new FunctionExpressionCell();
m_expressionCells[i] = new ModelExpressionCell();
}
return Shared::ListController::loadView();
}