From 63ebf895df85e341c85d5dd5b27836cec418f5ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Wed, 18 Jul 2018 17:58:50 +0200 Subject: [PATCH] [apps/sequence] Change method name --- apps/sequence/list/list_controller.cpp | 2 +- apps/sequence/list/sequence_toolbox.cpp | 2 +- apps/sequence/list/sequence_toolbox.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/sequence/list/list_controller.cpp b/apps/sequence/list/list_controller.cpp index f9df45a5a..6c684f93c 100644 --- a/apps/sequence/list/list_controller.cpp +++ b/apps/sequence/list/list_controller.cpp @@ -91,7 +91,7 @@ Toolbox * ListController::toolboxForSender(Responder * sender) { if (sequenceDefinition == 0) { recurrenceDepth = sequence->numberOfElements()-1; } - m_sequenceToolbox.setExtraCells(sequence->name(), recurrenceDepth); + m_sequenceToolbox.buildExtraCellsLayouts(sequence->name(), recurrenceDepth); // Set sender m_sequenceToolbox.setSender(sender); return &m_sequenceToolbox; diff --git a/apps/sequence/list/sequence_toolbox.cpp b/apps/sequence/list/sequence_toolbox.cpp index ee11cfb84..0370111f0 100644 --- a/apps/sequence/list/sequence_toolbox.cpp +++ b/apps/sequence/list/sequence_toolbox.cpp @@ -68,7 +68,7 @@ int SequenceToolbox::typeAtLocation(int i, int j) { return MathToolbox::typeAtLocation(i,mathToolboxIndex(j)); } -void SequenceToolbox::setExtraCells(const char * sequenceName, int recurrenceDepth) { +void SequenceToolbox::buildExtraCellsLayouts(const char * sequenceName, int recurrenceDepth) { for (int i = 0; i < k_maxNumberOfDisplayedRows; i++) { if (m_addedCellLayout[i]) { delete m_addedCellLayout[i]; diff --git a/apps/sequence/list/sequence_toolbox.h b/apps/sequence/list/sequence_toolbox.h index 84b6ee4ae..5f6dfef42 100644 --- a/apps/sequence/list/sequence_toolbox.h +++ b/apps/sequence/list/sequence_toolbox.h @@ -18,7 +18,7 @@ public: HighlightCell * reusableCell(int index, int type) override; void willDisplayCellForIndex(HighlightCell * cell, int index) override; int typeAtLocation(int i, int j) override; - void setExtraCells(const char * sequenceName, int recurrenceDepth); + void buildExtraCellsLayouts(const char * sequenceName, int recurrenceDepth); private: bool selectAddedCell(int selectedRow); int mathToolboxIndex(int index);