summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-10-12 19:36:42 (GMT)
committerMontel Laurent <montel@kde.org>2016-10-12 19:36:42 (GMT)
commit6130edd2e6f83f5cfe2c68a1f063937c1dae95ec (patch)
treeb38656fd716964b575aa10f6c58a1784c7092d3d
parent526a84fbac395ee6693e66a2ac2dc4f71757dabf (diff)
Not necessary to use this settings now
-rw-r--r--src/folder/foldertreewidget.cpp8
-rw-r--r--src/widgets/favoritecollectionwidget.cpp8
2 files changed, 2 insertions, 14 deletions
diff --git a/src/folder/foldertreewidget.cpp b/src/folder/foldertreewidget.cpp
index 94b452a..5cf463e 100644
--- a/src/folder/foldertreewidget.cpp
+++ b/src/folder/foldertreewidget.cpp
@@ -274,13 +274,7 @@ void FolderTreeWidget::slotGeneralPaletteChanged()
void FolderTreeWidget::readConfig()
{
- // Custom/System font support
- if (!MessageCore::MessageCoreSettings::self()->useDefaultFonts()) {
- KConfigGroup fontConfig(KernelIf->config(), "Fonts");
- setFont(fontConfig.readEntry("folder-font", QFontDatabase::systemFont(QFontDatabase::GeneralFont)));
- } else {
- setFont(QFontDatabase::systemFont(QFontDatabase::GeneralFont));
- }
+ setFont(QFontDatabase::systemFont(QFontDatabase::GeneralFont));
d->folderTreeView->readConfig();
d->folderTreeView->setDropActionMenuEnabled(SettingsIf->showPopupAfterDnD());
diff --git a/src/widgets/favoritecollectionwidget.cpp b/src/widgets/favoritecollectionwidget.cpp
index ad92ce6..72b3340 100644
--- a/src/widgets/favoritecollectionwidget.cpp
+++ b/src/widgets/favoritecollectionwidget.cpp
@@ -206,13 +206,7 @@ void FavoriteCollectionWidget::slotGeneralFontChanged()
void FavoriteCollectionWidget::readConfig()
{
- // Custom/System font support
- if (!MessageCore::MessageCoreSettings::self()->useDefaultFonts()) {
- KConfigGroup fontConfig(KernelIf->config(), "Fonts");
- setFont(fontConfig.readEntry("folder-font", QFontDatabase::systemFont(QFontDatabase::GeneralFont)));
- } else {
- setFont(QFontDatabase::systemFont(QFontDatabase::GeneralFont));
- }
+ setFont(QFontDatabase::systemFont(QFontDatabase::GeneralFont));
int iIconSize = MailCommon::MailCommonSettings::self()->iconSize();
if (iIconSize < 16 || iIconSize > 32) {