QJSONHighlighter.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 // QCodeEditor
4 #include <QStyleSyntaxHighlighter> // Required for inheritance
5 #include <QHighlightRule>
6 
7 // Qt
8 #include <QVector>
9 
15 {
16  Q_OBJECT
17 public:
18 
23  explicit QJSONHighlighter(QTextDocument* document=nullptr);
24 
25 protected:
26 
27  void highlightBlock(const QString& text) override;
28 
29 private:
31  QRegularExpression m_keyRegex;
32 };
33 
QJSONHighlighter::m_highlightRules
QVector< QHighlightRule > m_highlightRules
Definition: QJSONHighlighter.hpp:30
QVector< QHighlightRule >
QJSONHighlighter::QJSONHighlighter
QJSONHighlighter(QTextDocument *document=nullptr)
Constructor.
Definition: QJSONHighlighter.cpp:6
QStyleSyntaxHighlighter
Class, that descrubes highlighter with syntax style.
Definition: QStyleSyntaxHighlighter.hpp:12
QJSONHighlighter::highlightBlock
void highlightBlock(const QString &text) override
QJSONHighlighter
Class, that describes JSON code highlighter.
Definition: QJSONHighlighter.hpp:14
QJSONHighlighter::m_keyRegex
QRegularExpression m_keyRegex
Definition: QJSONHighlighter.hpp:31


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:45