summaryrefslogtreecommitdiff
path: root/src/plugins/pythoneditor/pythoneditorwidget.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@digia.com>2014-01-22 15:36:06 +0100
committerEike Ziller <eike.ziller@digia.com>2014-01-24 08:00:45 +0100
commit0ec2a02fd487e3c6f13c13a63c221672b2678fd8 (patch)
tree4e43e35b0b0cc10618410fea968af9fee9dbd413 /src/plugins/pythoneditor/pythoneditorwidget.cpp
parentc99464dd9b9af759d4524eab52eb603a49d82bd4 (diff)
downloadqt-creator-0ec2a02fd487e3c6f13c13a63c221672b2678fd8.tar.gz
TextEditors: Avoid multiple highlighting runs when changing font setting
And remove some unnecessary code in Python editor Change-Id: I86cde74c244a16d1b36b0ac0e841ef8110ba832f Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/pythoneditor/pythoneditorwidget.cpp')
-rw-r--r--src/plugins/pythoneditor/pythoneditorwidget.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/plugins/pythoneditor/pythoneditorwidget.cpp b/src/plugins/pythoneditor/pythoneditorwidget.cpp
index d93dc66e3d..e263ed445b 100644
--- a/src/plugins/pythoneditor/pythoneditorwidget.cpp
+++ b/src/plugins/pythoneditor/pythoneditorwidget.cpp
@@ -85,20 +85,6 @@ void EditorWidget::unCommentSelection()
Utils::unCommentSelection(this, m_commentDefinition);
}
-/**
- Handles common IDE fonts&colors settings
- (Tools -> Options -> Text editor -> Fonts and colors)
- */
-void EditorWidget::applyFontSettings()
-{
- TextEditor::BaseTextEditorWidget::applyFontSettings();
-
- PythonHighlighter *highlighter =
- qobject_cast<PythonHighlighter *>(baseTextDocument()->syntaxHighlighter());
- if (highlighter)
- highlighter->setFontSettings(baseTextDocument()->fontSettings());
-}
-
TextEditor::BaseTextEditor *EditorWidget::createEditor()
{
return new PythonEditor(this);