[escher] Move apps/settings/menu_cell to escher to be used by sequence

app and settings app

Change-Id: Ia7812d9e83f5f54af4670fd5da73ba371678cd15
This commit is contained in:
Émilie Feral
2017-02-07 11:35:21 +01:00
parent 9a4873a3ec
commit 9d1bab79ce
7 changed files with 20 additions and 26 deletions

View File

@@ -16,6 +16,8 @@ const SettingsNode model = SettingsNode("Parametres", menu, 5);
MainController::MainController(Responder * parentResponder, Preferences * preferences) :
ViewController(parentResponder),
m_cells{ChevronTextMenuListCell(KDText::FontSize::Large), ChevronTextMenuListCell(KDText::FontSize::Large), ChevronTextMenuListCell(KDText::FontSize::Large),
ChevronTextMenuListCell(KDText::FontSize::Large), ChevronTextMenuListCell(KDText::FontSize::Large)},
m_selectableTableView(SelectableTableView(this, this, Metric::TopMargin, Metric::RightMargin,
Metric::BottomMargin, Metric::LeftMargin)),
m_nodeModel((Node *)&model),
@@ -69,7 +71,7 @@ KDCoordinate MainController::cellHeight() {
}
void MainController::willDisplayCellForIndex(TableViewCell * cell, int index) {
MenuCell * myCell = (MenuCell *)cell;
ChevronTextMenuListCell * myCell = (ChevronTextMenuListCell *)cell;
myCell->setText(m_nodeModel->children(index)->label());
switch (index) {
case 0: