[apps/escher] Rename cursorTextLocation as cursorLocation

This commit is contained in:
Léa Saviot
2019-01-23 16:11:35 +01:00
committed by Émilie Feral
parent 6765de4598
commit bd2ea41fbe
12 changed files with 94 additions and 94 deletions

View File

@@ -203,10 +203,10 @@ bool CalculationController::textFieldDidHandleEvent(::TextField * textField, boo
bool CalculationController::textFieldShouldFinishEditing(TextField * textField, Ion::Events::Event event) {
return TextFieldDelegate::textFieldShouldFinishEditing(textField, event)
|| (event == Ion::Events::Right
&& textField->cursorTextLocation() == textField->text() + textField->draftTextLength()
&& textField->cursorLocation() == textField->text() + textField->draftTextLength()
&& selectedColumn() < m_calculation->numberOfParameters())
|| (event == Ion::Events::Left
&& textField->cursorTextLocation() == textField->text());
&& textField->cursorLocation() == textField->text());
}
bool CalculationController::textFieldDidFinishEditing(TextField * textField, const char * text, Ion::Events::Event event) {