QLineNumberArea.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 // Qt
4 #include <QWidget> // Required for inheritance
5 
6 class QCodeEditor;
7 class QSyntaxStyle;
8 
12 class QLineNumberArea : public QWidget
13 {
14  Q_OBJECT
15 
16 public:
17 
22  explicit QLineNumberArea(QCodeEditor* parent=nullptr);
23 
24  // Disable copying
25  QLineNumberArea(const QLineNumberArea&) = delete;
26  QLineNumberArea& operator=(const QLineNumberArea&) = delete;
27 
32  QSize sizeHint() const override;
33 
38  void setSyntaxStyle(QSyntaxStyle* style);
39 
44  QSyntaxStyle* syntaxStyle() const;
45 
46 protected:
47  void paintEvent(QPaintEvent* event) override;
48 
49 private:
50 
52 
54 
55 };
56 
QLineNumberArea
Class, that describes line number area widget.
Definition: QLineNumberArea.hpp:12
QLineNumberArea::operator=
QLineNumberArea & operator=(const QLineNumberArea &)=delete
QLineNumberArea::m_codeEditParent
QCodeEditor * m_codeEditParent
Definition: QLineNumberArea.hpp:53
QLineNumberArea::m_syntaxStyle
QSyntaxStyle * m_syntaxStyle
Definition: QLineNumberArea.hpp:51
QLineNumberArea::setSyntaxStyle
void setSyntaxStyle(QSyntaxStyle *style)
Method for setting syntax style object.
Definition: QLineNumberArea.cpp:46
QLineNumberArea::QLineNumberArea
QLineNumberArea(QCodeEditor *parent=nullptr)
Constructor.
Definition: QLineNumberArea.cpp:14
QSyntaxStyle
Class, that describes Qt style parser for QCodeEditor.
Definition: QSyntaxStyle.hpp:13
QLineNumberArea::syntaxStyle
QSyntaxStyle * syntaxStyle() const
Method for getting syntax style.
Definition: QLineNumberArea.cpp:51
QLineNumberArea::paintEvent
void paintEvent(QPaintEvent *event) override
Definition: QLineNumberArea.cpp:56
QCodeEditor
Class, that describes code editor.
Definition: QCodeEditor.hpp:15
QLineNumberArea::sizeHint
QSize sizeHint() const override
Overridden method for getting line number area size.
Definition: QLineNumberArea.cpp:22


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Aug 11 2024 02:24:23