[regression] Fix Regression

This commit is contained in:
Émilie Feral
2018-09-07 11:59:25 +02:00
parent 3a58ff7728
commit ce69702134
3 changed files with 3 additions and 3 deletions

View File

@@ -116,7 +116,7 @@ int GraphOptionsController::typeAtLocation(int i, int j) {
void GraphOptionsController::willDisplayCellForIndex(HighlightCell * cell, int index) {
if (index == numberOfRows() - 1) {
m_changeRegressionCell.setExpressionLayout(static_cast<Store *>(m_store)->modelForSeries(m_graphController->selectedSeriesIndex())->layout());
m_changeRegressionCell.setLayoutRef(static_cast<Store *>(m_store)->modelForSeries(m_graphController->selectedSeriesIndex())->layout());
return;
}
assert(index >=0 && index < k_numberOfParameterCells);

View File

@@ -85,7 +85,7 @@ void RegressionController::willDisplayCellAtLocation(HighlightCell * cell, int i
I18n::Message messages[k_numberOfRows] = {I18n::Message::Linear, I18n::Message::Quadratic, I18n::Message::Cubic, I18n::Message::Quartic, I18n::Message::Logarithmic, I18n::Message::Exponential, I18n::Message::Power, I18n::Message::Trigonometrical, I18n::Message::Logistic};
MessageTableCellWithExpression * castedCell = static_cast<MessageTableCellWithExpression *>(cell);
castedCell->setMessage(messages[j]);
castedCell->setExpressionLayout(m_store->regressionModel((Model::Type) j)->layout());
castedCell->setLayoutRef(m_store->regressionModel((Model::Type) j)->layout());
}
}

View File

@@ -76,7 +76,7 @@ int StoreParameterController::typeAtLocation(int i, int j) {
void StoreParameterController::willDisplayCellForIndex(HighlightCell * cell, int index) {
if (index == numberOfRows() -1) {
m_changeRegressionCell.setExpressionLayout(static_cast<Store *>(m_store)->modelForSeries(m_series)->layout());
m_changeRegressionCell.setLayoutRef(static_cast<Store *>(m_store)->modelForSeries(m_series)->layout());
}
Shared::StoreParameterController::willDisplayCellForIndex(cell, index);
}