mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/graph] Fix bug: select the right cell ot table at disappearing and
only then Change-Id: Ie9755694ae84f774ee1e3425d4bc7f1217ef6500
This commit is contained in:
@@ -25,9 +25,6 @@ bool FunctionParameterController::handleEvent(Ion::Events::Event event) {
|
||||
case 0:
|
||||
{
|
||||
m_cartesianFunction->setDisplayDerivative(!m_cartesianFunction->displayDerivative());
|
||||
if (m_cartesianFunction->displayDerivative()) {
|
||||
m_valuesController->selectCellAtLocation(m_valuesController->selectedColumn()+1, m_valuesController->selectedRow());
|
||||
}
|
||||
m_selectableTableView.reloadData();
|
||||
return true;
|
||||
}
|
||||
@@ -63,6 +60,13 @@ int FunctionParameterController::reusableCellCount() {
|
||||
return k_totalNumberOfCell;
|
||||
}
|
||||
|
||||
void FunctionParameterController::viewWillAppear() {
|
||||
ValuesFunctionParameterController::viewWillAppear();
|
||||
if (m_cartesianFunction->displayDerivative()) {
|
||||
m_valuesController->selectCellAtLocation(m_valuesController->selectedColumn()+1, m_valuesController->selectedRow());
|
||||
}
|
||||
}
|
||||
|
||||
void FunctionParameterController::willDisplayCellForIndex(HighlightCell * cell, int index) {
|
||||
if (cell == &m_displayDerivativeColumn) {
|
||||
SwitchView * switchView = (SwitchView *)m_displayDerivativeColumn.accessoryView();
|
||||
|
||||
Reference in New Issue
Block a user