[escher] TextField: all text fields use the same draft text buffer

This commit is contained in:
Émilie Feral
2019-08-09 16:26:53 +02:00
parent 70e3bcd8c1
commit 12060e2ae7
55 changed files with 134 additions and 167 deletions

View File

@@ -59,7 +59,6 @@ CalculationController::CalculationController(Responder * parentResponder, InputE
m_contentView(&m_selectableTableView, law, calculation),
m_selectableTableView(this),
m_imageCell(&m_selectableTableView, law, calculation, this),
m_draftTextBuffer{},
m_calculation(calculation),
m_law(law)
{
@@ -74,7 +73,6 @@ CalculationController::CalculationController(Responder * parentResponder, InputE
for (int i = 0; i < k_numberOfCalculationCells; i++) {
m_calculationCells[i].editableTextCell()->setParentResponder(&m_selectableTableView);
m_calculationCells[i].editableTextCell()->textField()->setDelegates(inputEventHandlerDelegate, this);
m_calculationCells[i].editableTextCell()->textField()->setDraftTextBuffer(m_draftTextBuffer);
}
}