aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor/cpphighlighter.h
diff options
context:
space:
mode:
authorIvan Donchevskii <ivan.donchevskii@qt.io>2019-02-22 09:48:46 +0100
committerIvan Donchevskii <ivan.donchevskii@qt.io>2019-02-22 14:31:05 +0000
commit956543e462fcb965f3ad637ac1e38ff6c80c7f3c (patch)
treed2c04c3ed2b701e685f0e0e7b5fa78e99a93322e /src/plugins/cppeditor/cpphighlighter.h
parentc6b58a063f1e3e92b3126511380416c6c6c299b4 (diff)
ClangFormat: Add the preview text editor to the settings
Allows the user to see how the current style applies to the code snippet. The action is triggered by the 'Apply' button. Change-Id: I820d989519cfdfb6e617ed6e8e9e5751be6619ea Reviewed-by: Marco Bubke <marco.bubke@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Diffstat (limited to 'src/plugins/cppeditor/cpphighlighter.h')
-rw-r--r--src/plugins/cppeditor/cpphighlighter.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/plugins/cppeditor/cpphighlighter.h b/src/plugins/cppeditor/cpphighlighter.h
index e43ce63172..a982191b7e 100644
--- a/src/plugins/cppeditor/cpphighlighter.h
+++ b/src/plugins/cppeditor/cpphighlighter.h
@@ -25,6 +25,8 @@
#pragma once
+#include "cppeditor_global.h"
+
#include <texteditor/syntaxhighlighter.h>
#include <cplusplus/Token.h>
@@ -33,10 +35,7 @@
namespace CppEditor {
-namespace Internal {
-
-
-class CppHighlighter : public TextEditor::SyntaxHighlighter
+class CPPEDITOR_EXPORT CppHighlighter : public TextEditor::SyntaxHighlighter
{
Q_OBJECT
@@ -58,5 +57,4 @@ private:
CPlusPlus::LanguageFeatures m_languageFeatures = CPlusPlus::LanguageFeatures::defaultFeatures();
};
-} // namespace Internal
} // namespace CppEditor