[apps/calculation] Create input and output layout according to display

mode set in preference

Change-Id: If161958b2fcdad802fda5f8e0c44f8a5fc9d9ef1
This commit is contained in:
Émilie Feral
2017-01-31 10:31:30 +01:00
parent 689c43c640
commit b37688745e
9 changed files with 74 additions and 73 deletions

View File

@@ -80,10 +80,8 @@ bool EditExpressionController::textFieldDidReceiveEvent(::TextField * textField,
}
bool EditExpressionController::textFieldDidFinishEditing(::TextField * textField, const char * text) {
Calculation calculation = Calculation();
App * calculationApp = (App *)app();
calculation.setContent(textBody(), calculationApp->localContext());
m_calculationStore->push(&calculation);
m_calculationStore->push(textBody(), calculationApp->localContext(), calculationApp->preferences());
m_historyController->reload();
m_contentView.mainView()->scrollToCell(0, m_historyController->numberOfRows()-1);
m_contentView.textField()->setText("");