From 54ca272eb1a735f6f8c39cc941a0ea404a78b764 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Tue, 22 May 2018 10:21:49 +0200 Subject: [PATCH] [apps] Set margins in Shared::StoreController --- apps/shared/store_controller.cpp | 1 + apps/shared/store_controller.h | 1 + 2 files changed, 2 insertions(+) diff --git a/apps/shared/store_controller.cpp b/apps/shared/store_controller.cpp index 80e2163e0..c57e01137 100644 --- a/apps/shared/store_controller.cpp +++ b/apps/shared/store_controller.cpp @@ -163,6 +163,7 @@ View * StoreController::loadView() { for (int i = 0; i < k_maxNumberOfEditableCells; i++) { m_editableCells[i] = new EvenOddEditableTextCell(tableView, this, m_draftTextBuffer); } + tableView->setMargins(k_margin); return tableView; } diff --git a/apps/shared/store_controller.h b/apps/shared/store_controller.h index 597cbcf47..a5ae3d19b 100644 --- a/apps/shared/store_controller.h +++ b/apps/shared/store_controller.h @@ -34,6 +34,7 @@ public: protected: static constexpr KDCoordinate k_cellWidth = 80; //TODO + static constexpr KDCoordinate k_margin = 8; constexpr static int k_numberOfColumnsPerSeries = 2; constexpr static int k_maxNumberOfEditableCells = 22 * FloatPairStore::k_numberOfSeries; constexpr static int k_numberOfTitleCells = k_numberOfColumnsPerSeries * FloatPairStore::k_numberOfSeries;