[apps/graph] Fix bug: select the right column title when hiding and

displaying derivative column in value page

Change-Id: Ic5b222a4d245991bd8de05ca243de9c2d38f994b
This commit is contained in:
Émilie Feral
2017-02-14 10:26:52 +01:00
parent e89d86dbc7
commit 4dc34856f3
3 changed files with 13 additions and 4 deletions

View File

@@ -47,6 +47,7 @@ bool FunctionParameterController::handleEvent(Ion::Events::Event event) {
{
m_function->setDisplayDerivative(!m_function->displayDerivative());
if (m_function->displayDerivative()) {
m_valuesController->selectCellAtLocation(0, -1);
m_valuesController->selectCellAtLocation(m_valuesController->activeColumn()+1, m_valuesController->activeRow());
}
m_selectableTableView.reloadData();