diff options
author | Leandro Melo <leandro.melo@nokia.com> | 2010-11-10 15:09:18 +0100 |
---|---|---|
committer | Leandro Melo <leandro.melo@nokia.com> | 2010-11-10 16:05:10 +0100 |
commit | fb46c31934c44ee1f83075b5f3647df4eec588c7 (patch) | |
tree | 6c57a59f735c4f5eedc985a4a3bbbd1ed5eb79dc /src/plugins/texteditor/plaintexteditor.cpp | |
parent | 95fea0bfc1dbd528f34b0a2d5860a225c2087e5c (diff) | |
download | qt-creator-fb46c31934c44ee1f83075b5f3647df4eec588c7.tar.gz |
Plain text editor: Make sure user setting about folding markers is used
It was being reset based on the highlighter definitions.
Consider some refactoring with the related options as well to avoid
overriding user's settings.
Done-with: Thorbjorn Lindeijer
Diffstat (limited to 'src/plugins/texteditor/plaintexteditor.cpp')
-rw-r--r-- | src/plugins/texteditor/plaintexteditor.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/plugins/texteditor/plaintexteditor.cpp b/src/plugins/texteditor/plaintexteditor.cpp index ea1a0b0a2c..e3cb3fff56 100644 --- a/src/plugins/texteditor/plaintexteditor.cpp +++ b/src/plugins/texteditor/plaintexteditor.cpp @@ -164,7 +164,6 @@ void PlainTextEditor::configure(const Core::MimeType &mimeType) baseTextDocument()->setSyntaxHighlighter(highlighter); setCodeFoldingSupported(false); - setCodeFoldingVisible(false); if (!mimeType.isNull()) { m_isMissingSyntaxDefinition = true; @@ -189,7 +188,6 @@ void PlainTextEditor::configure(const Core::MimeType &mimeType) m_commentDefinition.setMultiLineEnd(definition->multiLineCommentEnd()); setCodeFoldingSupported(true); - setCodeFoldingVisible(true); } } else if (file()) { const QString &fileName = file()->fileName(); |