Apply bold to the current line number by default

This commit is contained in:
Thorbjørn Lindeijer
2009-06-12 15:28:51 +02:00
parent 7403fe681c
commit 992a178be3
4 changed files with 15 additions and 10 deletions

View File

@@ -101,10 +101,16 @@ FontSettingsPagePrivate::FontSettingsPagePrivate(const TextEditor::FormatDescrip
if (!settingsFound) { // Apply defaults
foreach (const FormatDescription &f, m_descriptions) {
const QString name = f.name();
m_lastValue.formatFor(name).setForeground(f.foreground());
m_lastValue.formatFor(name).setBackground(f.background());
m_lastValue.formatFor(name).setBold(f.format().bold());
m_lastValue.formatFor(name).setItalic(f.format().italic());
m_value.formatFor(name).setForeground(f.foreground());
m_value.formatFor(name).setBackground(f.background());
m_value.formatFor(name).setBold(f.format().bold());
m_value.formatFor(name).setItalic(f.format().italic());
}
}
@@ -144,11 +150,6 @@ QColor FormatDescription::foreground() const
return m_format.foreground();
}
void FormatDescription::setForeground(const QColor &foreground)
{
m_format.setForeground(foreground);
}
QColor FormatDescription::background() const
{
if (m_name == QLatin1String(Constants::C_TEXT))