mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[escher] Make table view accept only table view cell
Change-Id: I393375d0887e692a85747198d5b42d26d207dc83
This commit is contained in:
@@ -86,10 +86,10 @@ int FunctionParameterController::numberOfRows() {
|
||||
return k_totalNumberOfCell;
|
||||
};
|
||||
|
||||
View * FunctionParameterController::reusableCell(int index) {
|
||||
TableViewCell * FunctionParameterController::reusableCell(int index) {
|
||||
assert(index >= 0);
|
||||
assert(index < k_totalNumberOfCell);
|
||||
View * cells[] = {&m_displayDerivativeColumn, &m_copyColumn};
|
||||
TableViewCell * cells[] = {&m_displayDerivativeColumn, &m_copyColumn};
|
||||
return cells[index];
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ KDCoordinate FunctionParameterController::cellHeight() {
|
||||
return 35;
|
||||
}
|
||||
|
||||
void FunctionParameterController::willDisplayCellForIndex(View * cell, int index) {
|
||||
void FunctionParameterController::willDisplayCellForIndex(TableViewCell * cell, int index) {
|
||||
if (cell == &m_displayDerivativeColumn) {
|
||||
SwitchView * switchView = (SwitchView *)m_displayDerivativeColumn.contentView();
|
||||
switchView->setState(m_function->displayDerivative());
|
||||
|
||||
Reference in New Issue
Block a user