[escher] Make table view accept only table view cell

Change-Id: I393375d0887e692a85747198d5b42d26d207dc83
This commit is contained in:
Émilie Feral
2016-10-24 18:17:14 +02:00
parent 9ffb74fcca
commit f809d089d6
42 changed files with 132 additions and 121 deletions

View File

@@ -341,7 +341,7 @@ int ValuesController::typeAtLocation(int i, int j) {
return 2;
}
View * ValuesController::reusableCell(int index, int type) {
TableViewCell * ValuesController::reusableCell(int index, int type) {
assert(index >= 0);
switch (type) {
case 0:
@@ -373,7 +373,7 @@ int ValuesController::reusableCellCount(int type) {
}
}
void ValuesController::willDisplayCellAtLocation(View * cell, int i, int j) {
void ValuesController::willDisplayCellAtLocation(TableViewCell * cell, int i, int j) {
EvenOddCell * myCell = (EvenOddCell *)cell;
myCell->setEven(j%2 == 0);
// The cell is a title cell: