[apps/reg] Fix Stats column widths to fit the quartic regression formula

This commit is contained in:
Léa Saviot
2018-06-13 15:19:56 +02:00
committed by Émilie Feral
parent aed2632c9f
commit 42982cb078
2 changed files with 22 additions and 4 deletions

View File

@@ -230,13 +230,21 @@ void CalculationController::willDisplayCellAtLocation(HighlightCell * cell, int
}
KDCoordinate CalculationController::columnWidth(int i) {
return k_cellWidth;
return i == 0 ? k_calculationTitleCellWidth : k_calculationCellWidth;
}
KDCoordinate CalculationController::rowHeight(int j) {
return k_cellHeight;
}
KDCoordinate CalculationController::cumulatedHeightFromIndex(int j) {
return j*rowHeight(0);
}
int CalculationController::indexFromCumulatedHeight(KDCoordinate offsetY) {
return (offsetY-1) / rowHeight(0);
}
HighlightCell * CalculationController::reusableCell(int index, int type) {
if (type == k_standardCalculationTitleCellType) {
assert(index >= 0 && index < k_maxNumberOfDisplayableRows);