mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-22 23:30:37 +01:00
[apps/*/expression_model_list_controller] Use isAddEmptyRow
This commit is contained in:
committed by
LeaNumworks
parent
d8ec5ab2b3
commit
a5bff416d1
@@ -43,10 +43,7 @@ Button * ListController::buttonAtIndex(int index, ButtonRowController::Position
|
||||
}
|
||||
|
||||
int ListController::typeAtLocation(int i, int j) {
|
||||
if (j == m_equationStore->numberOfModels()) {
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
return isAddEmptyRow(j);
|
||||
}
|
||||
|
||||
HighlightCell * ListController::reusableCell(int index, int type) {
|
||||
@@ -71,7 +68,7 @@ int ListController::reusableCellCount(int type) {
|
||||
}
|
||||
|
||||
void ListController::willDisplayCellForIndex(HighlightCell * cell, int index) {
|
||||
if (index != m_equationStore->numberOfModels()) {
|
||||
if (!isAddEmptyRow(index)) {
|
||||
willDisplayExpressionCellAtIndex(cell, index);
|
||||
}
|
||||
cell->setHighlighted(index == selectedRow());
|
||||
|
||||
Reference in New Issue
Block a user