mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-26 17:20:53 +01:00
[escher] Make table view accept only table view cell
Change-Id: I393375d0887e692a85747198d5b42d26d207dc83
This commit is contained in:
@@ -28,7 +28,7 @@ void ParameterController::didBecomeFirstResponder() {
|
||||
setActiveCell(0);
|
||||
}
|
||||
|
||||
void ParameterController::willDisplayCellForIndex(View * cell, int index) {
|
||||
void ParameterController::willDisplayCellForIndex(TableViewCell * cell, int index) {
|
||||
if (cell == &m_enableCell) {
|
||||
SwitchView * switchView = (SwitchView *)m_enableCell.contentView();
|
||||
switchView->setState(m_function->isActive());
|
||||
@@ -105,10 +105,10 @@ int ParameterController::numberOfRows() {
|
||||
};
|
||||
|
||||
|
||||
View * ParameterController::reusableCell(int index) {
|
||||
TableViewCell * ParameterController::reusableCell(int index) {
|
||||
assert(index >= 0);
|
||||
assert(index < k_totalNumberOfCell);
|
||||
View * cells[] = {&m_colorCell, &m_enableCell, &m_deleteCell};
|
||||
TableViewCell * cells[] = {&m_colorCell, &m_enableCell, &m_deleteCell};
|
||||
return cells[index];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user