TextEditor: Minor cleanup in FontSettings

Change-Id: Ib12e2ea2c1afc9a32d7d21636bc8097497fb74b1
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
Orgad Shaneh
2016-06-19 10:44:49 +03:00
committed by Orgad Shaneh
parent 246e72262c
commit 9577eb72b4

View File

@@ -362,12 +362,13 @@ bool FontSettings::loadColorScheme(const QString &fileName,
const TextStyle id = desc.id();
if (!m_scheme.contains(id)) {
Format format;
const Format &descFormat = desc.format();
format.setForeground(desc.foreground());
format.setBackground(desc.background());
format.setBold(desc.format().bold());
format.setItalic(desc.format().italic());
format.setUnderlineColor(desc.format().underlineColor());
format.setUnderlineStyle(desc.format().underlineStyle());
format.setBold(descFormat.bold());
format.setItalic(descFormat.italic());
format.setUnderlineColor(descFormat.underlineColor());
format.setUnderlineStyle(descFormat.underlineStyle());
m_scheme.setFormatFor(id, format);
}
}