[apps] Use a forgotten method on selectable table view

Change-Id: I6b934ac0d2587565c6b94d5130d158b621c1e187
This commit is contained in:
Émilie Feral
2017-04-24 10:29:30 +02:00
parent 2b5e1c31bf
commit 230a53fe7e
6 changed files with 9 additions and 10 deletions

View File

@@ -129,8 +129,7 @@ bool FloatParameterController::textFieldDidFinishEditing(TextField * textField,
if (!setParameterAtIndex(selectableTableView()->selectedRow(), floatBody)) {
return false;
}
willDisplayCellForIndex(selectableTableView()->cellAtLocation(selectableTableView()->selectedColumn(),
selectableTableView()->selectedRow()), activeCell());
willDisplayCellForIndex(selectableTableView()->selectedCell(), activeCell());
selectableTableView()->reloadData();
if (event == Ion::Events::EXE || event == Ion::Events::OK) {
selectableTableView()->selectCellAtLocation(selectableTableView()->selectedColumn(), selectableTableView()->selectedRow()+1);
@@ -157,12 +156,12 @@ void FloatParameterController::tableViewDidChangeSelection(SelectableTableView *
myCell->setEditing(false);
}
if (t->selectedRow() == numberOfRows()-1) {
Button * myNewCell = (Button *)t->cellAtLocation(t->selectedColumn(), t->selectedRow());
Button * myNewCell = (Button *)t->selectedCell();
app()->setFirstResponder(myNewCell);
return;
}
if (t->selectedRow() >= 0) {
MessageTableCellWithEditableText * myNewCell = (MessageTableCellWithEditableText *)t->cellAtLocation(t->selectedColumn(), t->selectedRow());
MessageTableCellWithEditableText * myNewCell = (MessageTableCellWithEditableText *)t->selectedCell();
app()->setFirstResponder(myNewCell);
}
}