Commit 6a22838e authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Apply patch from Gerd Fleischer

Use custom font in KMail Messagelist if checked,
currently the systemfont is always used.

This is related to BUG 362803

BUG: 362803
REVIEW: 129836
parent 4722a3e6
......@@ -1713,7 +1713,12 @@ void ThemeDelegate::generalFontChanged()
mCachedMessageItemSizeHint = QSize();
mCachedGroupHeaderItemSizeHint = QSize();
QFont font = QFontDatabase::systemFont(QFontDatabase::GeneralFont);
QFont font;
if (MessageCore::MessageCoreSettings::self()->useDefaultFonts()) {
font = QFontDatabase::systemFont(QFontDatabase::GeneralFont);
} else {
font = MessageListSettings::self()->messageListFont();
}
sFontCache[Normal] = font;
sFontMetricsCache[Normal] = QFontMetrics(font);
font.setBold(true);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment