[escher] Clean the ScrollView, TableView and SelectableTableView constructors

This commit is contained in:
Romain Goyet
2018-04-13 12:00:03 +02:00
committed by EmilieNumworks
parent c934eab947
commit 84561a929f
39 changed files with 205 additions and 148 deletions

View File

@@ -7,8 +7,10 @@ namespace Shared {
LanguageController::LanguageController(Responder * parentResponder, KDCoordinate topMargin) :
ViewController(parentResponder),
m_selectableTableView(this, this, 0, 1, topMargin, Metric::CommonRightMargin, 0, Metric::CommonLeftMargin, this)
m_selectableTableView(this, this, this)
{
m_selectableTableView.setTopMargin(topMargin);
m_selectableTableView.setBottomMargin(0);
for (int i = 0; i < I18n::NumberOfLanguages; i++) {
m_cells[i].setMessageFontSize(KDText::FontSize::Large);
}