QStyleSyntaxHighlighter.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 // Qt
4 #include <QSyntaxHighlighter> // Required for inheritance
5 
6 class QSyntaxStyle;
7 
12 class QStyleSyntaxHighlighter : public QSyntaxHighlighter
13 {
14 public:
15 
20  explicit QStyleSyntaxHighlighter(QTextDocument* document=nullptr);
21 
22  // Disable copying
25 
30  void setSyntaxStyle(QSyntaxStyle* style);
31 
36  QSyntaxStyle* syntaxStyle() const;
37 
38 private:
40 };
41 
QStyleSyntaxHighlighter::QStyleSyntaxHighlighter
QStyleSyntaxHighlighter(QTextDocument *document=nullptr)
Constructor.
Definition: QStyleSyntaxHighlighter.cpp:4
QStyleSyntaxHighlighter::syntaxStyle
QSyntaxStyle * syntaxStyle() const
Method for getting syntax style.
Definition: QStyleSyntaxHighlighter.cpp:16
QStyleSyntaxHighlighter::operator=
QStyleSyntaxHighlighter & operator=(const QStyleSyntaxHighlighter &)=delete
QStyleSyntaxHighlighter
Class, that descrubes highlighter with syntax style.
Definition: QStyleSyntaxHighlighter.hpp:12
QSyntaxStyle
Class, that describes Qt style parser for QCodeEditor.
Definition: QSyntaxStyle.hpp:13
QStyleSyntaxHighlighter::setSyntaxStyle
void setSyntaxStyle(QSyntaxStyle *style)
Method for setting syntax style.
Definition: QStyleSyntaxHighlighter.cpp:11
QStyleSyntaxHighlighter::m_syntaxStyle
QSyntaxStyle * m_syntaxStyle
Definition: QStyleSyntaxHighlighter.hpp:39


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