[apps] Use ExpressionFieldDelegateApp methods in Calculation::App

For methods textFieldDidReceiveEvent and layoutFieldDidReceiveEvent
This commit is contained in:
Léa Saviot
2018-11-16 15:49:32 +01:00
committed by Émilie Feral
parent 48d281e44d
commit f6804c2d67
6 changed files with 29 additions and 44 deletions

View File

@@ -130,7 +130,7 @@ bool EditExpressionController::inputViewDidReceiveEvent(Ion::Events::Event event
App * calculationApp = (App *)app();
/* The input text store in m_cacheBuffer might have beed correct the first
* time but then be too long when replacing ans in another context */
if (!calculationApp->textInputIsCorrect(m_cacheBuffer)) {
if (!calculationApp->isAcceptableText(m_cacheBuffer, calculationApp)) {
return true;
}
m_calculationStore->push(m_cacheBuffer, calculationApp->localContext());