mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[regression] Fix Regression
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user