diff options
author | Alessandro Portale <alessandro.portale@theqtcompany.com> | 2016-01-21 17:44:09 +0100 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@theqtcompany.com> | 2016-01-26 09:25:42 +0000 |
commit | 126d1b0811b019fd6dbb824e544b222c11b33ff5 (patch) | |
tree | 8f39dd77c2c40b589de5346a23167368f60ec787 /src/plugins/texteditor/fontsettings.cpp | |
parent | 6ddd0e579f4751c65c8214f57791658929a21966 (diff) |
TextEditor: Remove obsolete "customized.xml" feature
In case the qtcreator.ini has a TextEditor section without a defined
ColorScheme value, Qt Creator decides to create a new "styles/customized
%i.xml" and select that as scheme.
I assume that this was implemented way back then, as migration code when
selectable Color Schemes were introduced. These days, it makes
maintenance (and implementation of QTCREATORBUG-15229) more difficult.
Let's remove it.
Task-number: QTCREATORBUG-15649
Change-Id: I49102d02fa8e582a92f6e39faa8c7d3b58f531b3
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'src/plugins/texteditor/fontsettings.cpp')
-rw-r--r-- | src/plugins/texteditor/fontsettings.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/plugins/texteditor/fontsettings.cpp b/src/plugins/texteditor/fontsettings.cpp index eb78213eadc..1fc383f6120 100644 --- a/src/plugins/texteditor/fontsettings.cpp +++ b/src/plugins/texteditor/fontsettings.cpp @@ -114,26 +114,6 @@ bool FontSettings::fromSettings(const QString &category, if (scheme.isEmpty() || !QFile::exists(scheme)) scheme = defaultSchemeFileName(Utils::FileName::fromString(scheme).fileName()); loadColorScheme(scheme, descriptions); - } else { - // Load color scheme from ini file - foreach (const FormatDescription &desc, descriptions) { - const TextStyle id = desc.id(); - const QString fmt = s->value(group + QLatin1String(Constants::nameForStyle(id)), QString()).toString(); - Format format; - if (fmt.isEmpty()) { - 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()); - } else { - format.fromString(fmt); - } - m_scheme.setFormatFor(id, format); - } - - m_scheme.setDisplayName(QCoreApplication::translate("TextEditor::Internal::FontSettings", "Customized")); } return true; |