From 8ffe0b6bf6db3f47043cb732db65ae37254dcfb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Fri, 28 Oct 2016 17:26:51 +0200 Subject: [PATCH] [apps/calculation] Use the calculation table view in the history view controller Change-Id: I76a99c5dd3d9c7b97d5b946fa6b4094819088cd9 --- apps/calculation/history_controller.cpp | 2 +- apps/calculation/history_controller.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/calculation/history_controller.cpp b/apps/calculation/history_controller.cpp index 938673ffb..1eb68cfcd 100644 --- a/apps/calculation/history_controller.cpp +++ b/apps/calculation/history_controller.cpp @@ -7,7 +7,7 @@ namespace Calculation { HistoryController::HistoryController(Responder * parentResponder, CalculationStore * calculationStore) : ViewController(parentResponder), - m_selectableTableView(SelectableTableView(this, this, 0, 0, 0, 0, this)), + m_selectableTableView(CalculationSelectableTableView(this, this, this)), m_calculationStore(calculationStore) { } diff --git a/apps/calculation/history_controller.h b/apps/calculation/history_controller.h index f9540ffd5..ac3102719 100644 --- a/apps/calculation/history_controller.h +++ b/apps/calculation/history_controller.h @@ -5,6 +5,7 @@ #include #include "history_view_cell.h" #include "calculation_store.h" +#include "selectable_table_view.h" namespace Calculation { @@ -33,7 +34,7 @@ private: constexpr static int k_maxNumberOfDisplayedRows = 10; constexpr static KDCoordinate k_resultHeight = 12; HistoryViewCell m_calculationHistory[k_maxNumberOfDisplayedRows]; - SelectableTableView m_selectableTableView; + CalculationSelectableTableView m_selectableTableView; CalculationStore * m_calculationStore; };