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 };
Class, that describes C++ code highlighter.
QRegularExpression m_delimiter
Class, that describes Qt style parser for QCodeEditor.
Class, that descrubes highlighter with syntax style.
QCSVHighlighter(QTextDocument *document=nullptr)
Constructor.
void highlightBlock(const QString &text) override


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Jun 19 2023 03:01:38