[apps/settings] Add a menu "Font size" in settings

This commit is contained in:
Émilie Feral
2019-10-04 11:15:42 +02:00
committed by Léa Saviot
parent d48006f994
commit b3d45833d0
6 changed files with 30 additions and 4 deletions

View File

@@ -169,6 +169,9 @@ void MainController::willDisplayCellForIndex(HighlightCell * cell, int index) {
case k_indexOfComplexFormatCell:
childIndex = (int)preferences->complexFormat();
break;
case k_indexOfFontCell:
childIndex = GlobalPreferences::sharedGlobalPreferences()->font() == KDFont::LargeFont ? 0 : 1;
break;
}
I18n::Message message = childIndex >= 0 ? model()->children(index)->children(childIndex)->label() : I18n::Message::Default;
myTextCell->setSubtitle(message);