From f6a24dc1d2827fa4aa4f7d867cd8a08f4fd019ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Tue, 25 Apr 2017 15:53:09 +0200 Subject: [PATCH] [apps/statistics] Implement copy in calculation controller Change-Id: Ifb9d7ed46f484a2e7f30f0c473c7e785ea6e034a --- apps/statistics/calculation_controller.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/statistics/calculation_controller.cpp b/apps/statistics/calculation_controller.cpp index 9965862ca..8a11fe879 100644 --- a/apps/statistics/calculation_controller.cpp +++ b/apps/statistics/calculation_controller.cpp @@ -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; }