mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[apps/shared/store_controller] Remove cellShouldBeTransparent
This commit is contained in:
@@ -159,10 +159,11 @@ void StoreController::willDisplayCellAtLocation(HighlightCell * cell, int i, int
|
|||||||
static_cast<StoreCell *>(cell)->setSeparatorLeft(shouldHaveLeftSeparator);
|
static_cast<StoreCell *>(cell)->setSeparatorLeft(shouldHaveLeftSeparator);
|
||||||
}
|
}
|
||||||
// Handle empty cells
|
// Handle empty cells
|
||||||
if (j > 0 && j > m_store->numberOfPairsOfSeries(seriesAtColumn(i)) && j < numberOfRows()) {
|
const int numberOfElementsInCol = m_store->numberOfPairsOfSeries(seriesAtColumn(i));
|
||||||
|
if (j > numberOfElementsInCol) {
|
||||||
StoreCell * myCell = static_cast<StoreCell *>(cell);
|
StoreCell * myCell = static_cast<StoreCell *>(cell);
|
||||||
myCell->editableTextCell()->textField()->setText("");
|
myCell->editableTextCell()->textField()->setText("");
|
||||||
if (cellShouldBeTransparent(i,j)) {
|
if (numberOfElementsInCol + 1 < j) {
|
||||||
myCell->setHide(true);
|
myCell->setHide(true);
|
||||||
} else {
|
} else {
|
||||||
myCell->setEven(j%2 == 0);
|
myCell->setEven(j%2 == 0);
|
||||||
@@ -303,9 +304,4 @@ bool StoreController::privateFillColumnWithFormula(Expression formula, Expressio
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool StoreController::cellShouldBeTransparent(int i, int j) {
|
|
||||||
int seriesIndex = i/DoublePairStore::k_numberOfColumnsPerSeries;
|
|
||||||
return j > 1 + m_store->numberOfPairsOfSeries(seriesIndex);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,7 +88,6 @@ protected:
|
|||||||
StoreCell m_editableCells[k_maxNumberOfEditableCells];
|
StoreCell m_editableCells[k_maxNumberOfEditableCells];
|
||||||
DoublePairStore * m_store;
|
DoublePairStore * m_store;
|
||||||
private:
|
private:
|
||||||
bool cellShouldBeTransparent(int i, int j);
|
|
||||||
ContentView m_contentView;
|
ContentView m_contentView;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user