summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/plaintexteditor.cpp
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@digia.com>2014-05-19 08:37:19 +0200
committerChristian Stenger <christian.stenger@digia.com>2014-05-19 09:58:11 +0200
commit1f45eb2c210b033a30976ec9ddec5b4e8339ade4 (patch)
treea0e96b90e56a7f5cff7e2e2ff250cc1bfb447adc /src/plugins/texteditor/plaintexteditor.cpp
parent1c793cf6a591e1068418ddbe71fda2cf43f8913b (diff)
downloadqt-creator-1f45eb2c210b033a30976ec9ddec5b4e8339ade4.tar.gz
Editor: Set tabsettings on new generic highlighter.
Task-number: QTCREATORBUG-12172 Change-Id: I5194da0f6c8c1c453906c9752fc2fdf0e8b0b1be Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Diffstat (limited to 'src/plugins/texteditor/plaintexteditor.cpp')
-rw-r--r--src/plugins/texteditor/plaintexteditor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/texteditor/plaintexteditor.cpp b/src/plugins/texteditor/plaintexteditor.cpp
index 6b2ef7097b..afea6e7a2c 100644
--- a/src/plugins/texteditor/plaintexteditor.cpp
+++ b/src/plugins/texteditor/plaintexteditor.cpp
@@ -133,6 +133,7 @@ void PlainTextEditorWidget::configure(const QString &mimeType)
void PlainTextEditorWidget::configure(const MimeType &mimeType)
{
Highlighter *highlighter = new Highlighter();
+ highlighter->setTabSettings(baseTextDocument()->tabSettings());
baseTextDocument()->setSyntaxHighlighter(highlighter);
setCodeFoldingSupported(false);