mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[WIP] Fix settings
This commit is contained in:
@@ -16,6 +16,7 @@ namespace Settings {
|
||||
ExamModeController::ExamModeController(Responder * parentResponder) :
|
||||
GenericSubController(parentResponder),
|
||||
m_contentView(&m_selectableTableView),
|
||||
m_ledColorCell(KDFont::LargeFont, KDFont::SmallFont),
|
||||
m_cell{}
|
||||
{
|
||||
for (int i = 0; i < k_maxNumberOfCells; i++) {
|
||||
@@ -57,6 +58,9 @@ int ExamModeController::numberOfRows() const {
|
||||
HighlightCell * ExamModeController::reusableCell(int index, int type) {
|
||||
assert(type == 0);
|
||||
assert(index >= 0 && index < 3);
|
||||
if (m_messageTreeModel->children(index)->label() == I18n::Message::LEDColor) {
|
||||
return &m_ledColorCell;
|
||||
}
|
||||
return &m_cell[index];
|
||||
}
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@ private:
|
||||
static constexpr int k_maxNumberOfCells = 4;
|
||||
SelectableViewWithMessages m_contentView;
|
||||
MessageTableCell m_cell[k_maxNumberOfCells];
|
||||
MessageTableCellWithChevronAndMessage m_ledColorCell;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user