[apps/statistics] Implement copy in calculation controller

Change-Id: Ifb9d7ed46f484a2e7f30f0c473c7e785ea6e034a
This commit is contained in:
Émilie Feral
2017-04-25 15:53:09 +02:00
parent f43f47c306
commit f6a24dc1d2

View File

@@ -27,6 +27,11 @@ bool CalculationController::handleEvent(Ion::Events::Event event) {
app()->setFirstResponder(tabController());
return true;
}
if (event == Ion::Events::Copy && selectableTableView()->selectedColumn() == 1) {
EvenOddBufferTextCell * myCell = (EvenOddBufferTextCell *)selectableTableView()->selectedCell();
Clipboard::sharedClipboard()->store(myCell->text());
return true;
}
return false;
}