QCSVHighlighter.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 // QCodeEditor
4 #include <QStyleSyntaxHighlighter> // Required for inheritance
5 #include <QHighlightRule>
6 #include <QHighlightBlockRule>
7 
8 // Qt
9 #include <QRegularExpression>
10 #include <QVector>
11 #include <QMap>
12 #include <QChar>
13 
14 class QSyntaxStyle;
15 
21 {
22  Q_OBJECT
23 public:
24 
29  explicit QCSVHighlighter(QTextDocument* document=nullptr);
30 
31  QChar delimiter = QChar(',');
32 
33 protected:
34  void highlightBlock(const QString& text) override;
35 
36 private:
37  QRegularExpression m_delimiter;
38 
39 };
QCSVHighlighter
Class, that describes C++ code highlighter.
Definition: QCSVHighlighter.hpp:20
QCSVHighlighter::m_delimiter
QRegularExpression m_delimiter
Definition: QCSVHighlighter.hpp:37
QStyleSyntaxHighlighter
Class, that descrubes highlighter with syntax style.
Definition: QStyleSyntaxHighlighter.hpp:12
QCSVHighlighter::highlightBlock
void highlightBlock(const QString &text) override
Definition: QCSVHighlighter.cpp:43
QSyntaxStyle
Class, that describes Qt style parser for QCodeEditor.
Definition: QSyntaxStyle.hpp:13
QCSVHighlighter::delimiter
QChar delimiter
Definition: QCSVHighlighter.hpp:31
QCSVHighlighter::QCSVHighlighter
QCSVHighlighter(QTextDocument *document=nullptr)
Constructor.
Definition: QCSVHighlighter.cpp:35


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