diff options
author | Eike Ziller <eike.ziller@digia.com> | 2014-01-21 11:26:39 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@digia.com> | 2014-01-24 08:00:07 +0100 |
commit | 3fa6b6737c48049cb3d6e06ef0c1cfcb30dfd595 (patch) | |
tree | b67162542fb606e2265da414f1525e9141153cb1 /src/plugins/pythoneditor/pythoneditorwidget.cpp | |
parent | b59d61e2a42fd226d3009bf7c48e6fa9fffbb85e (diff) | |
download | qt-creator-3fa6b6737c48049cb3d6e06ef0c1cfcb30dfd595.tar.gz |
TextEditors: Move font settings to document
Change-Id: I325764cbaa9684fa2758b0ea6c6ea58de142cb73
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/pythoneditor/pythoneditorwidget.cpp')
-rw-r--r-- | src/plugins/pythoneditor/pythoneditorwidget.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/pythoneditor/pythoneditorwidget.cpp b/src/plugins/pythoneditor/pythoneditorwidget.cpp index e5ee2521f2..d93dc66e3d 100644 --- a/src/plugins/pythoneditor/pythoneditorwidget.cpp +++ b/src/plugins/pythoneditor/pythoneditorwidget.cpp @@ -89,14 +89,14 @@ void EditorWidget::unCommentSelection() Handles common IDE fonts&colors settings (Tools -> Options -> Text editor -> Fonts and colors) */ -void EditorWidget::setFontSettings(const TextEditor::FontSettings &fs) +void EditorWidget::applyFontSettings() { - TextEditor::BaseTextEditorWidget::setFontSettings(fs); + TextEditor::BaseTextEditorWidget::applyFontSettings(); PythonHighlighter *highlighter = qobject_cast<PythonHighlighter *>(baseTextDocument()->syntaxHighlighter()); if (highlighter) - highlighter->setFontSettings(fs); + highlighter->setFontSettings(baseTextDocument()->fontSettings()); } TextEditor::BaseTextEditor *EditorWidget::createEditor() |