[apps/sequence||graph] Improve hiding of copy column functionnality

Change-Id: Ic31734f99c0c223e5865b46c48866b89aa62d383
This commit is contained in:
Émilie Feral
2017-05-02 14:08:34 +02:00
parent 847a8e02e7
commit 4b18d16b2b
7 changed files with 50 additions and 16 deletions

View File

@@ -31,9 +31,11 @@ bool FunctionParameterController::handleEvent(Ion::Events::Event event) {
m_selectableTableView.reloadData();
return true;
}
/* TODO: implement copy column
* case 1:
return false;*/
#if COPY_COLUMN
case 1:
/* TODO: implement function copy column */
return true;
#endif
default:
assert(false);
return false;
@@ -49,7 +51,11 @@ int FunctionParameterController::numberOfRows() {
HighlightCell * FunctionParameterController::reusableCell(int index) {
assert(index >= 0);
assert(index < k_totalNumberOfCell);
HighlightCell * cells[] = {&m_displayDerivativeColumn}; // {&m_displayDerivativeColumn, &m_copyColumn};
#if COPY_COLUMN
HighlightCell * cells[] = {&m_displayDerivativeColumn, &m_copyColumn};
#else
HighlightCell * cells[] = {&m_displayDerivativeColumn};
#endif
return cells[index];
}