forked from qt-creator/qt-creator
Apply static pattern to TextEditorSetting
Change-Id: I4e6f573d893c0aa2bb4ca9812fc8db2961dac172 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -50,8 +50,7 @@ namespace Internal {
|
||||
// Retrieve the comment char format from the text editor.
|
||||
static QTextCharFormat commentFormat()
|
||||
{
|
||||
const TextEditor::FontSettings settings = TextEditor::TextEditorSettings::instance()->fontSettings();
|
||||
return settings.toTextCharFormat(TextEditor::C_COMMENT);
|
||||
return TextEditor::TextEditorSettings::fontSettings().toTextCharFormat(TextEditor::C_COMMENT);
|
||||
}
|
||||
|
||||
// Highlighter for Mercurial submit messages. Make the first line bold, indicates
|
||||
|
||||
Reference in New Issue
Block a user