Public Member Functions | Protected Member Functions | Private Attributes | List of all members
QLineNumberArea Class Reference

Class, that describes line number area widget. More...

#include <QLineNumberArea.hpp>

Inheritance diagram for QLineNumberArea:
Inheritance graph
[legend]

Public Member Functions

QLineNumberAreaoperator= (const QLineNumberArea &)=delete
 
 QLineNumberArea (const QLineNumberArea &)=delete
 
 QLineNumberArea (QCodeEditor *parent=nullptr)
 Constructor. More...
 
void setSyntaxStyle (QSyntaxStyle *style)
 Method for setting syntax style object. More...
 
QSize sizeHint () const override
 Overridden method for getting line number area size. More...
 
QSyntaxStylesyntaxStyle () const
 Method for getting syntax style. More...
 

Protected Member Functions

void paintEvent (QPaintEvent *event) override
 

Private Attributes

QCodeEditorm_codeEditParent
 
QSyntaxStylem_syntaxStyle
 

Detailed Description

Class, that describes line number area widget.

Definition at line 12 of file QLineNumberArea.hpp.

Constructor & Destructor Documentation

◆ QLineNumberArea() [1/2]

QLineNumberArea::QLineNumberArea ( QCodeEditor parent = nullptr)
explicit

Constructor.

Parameters
parentPointer to parent QTextEdit widget.

Definition at line 14 of file QLineNumberArea.cpp.

◆ QLineNumberArea() [2/2]

QLineNumberArea::QLineNumberArea ( const QLineNumberArea )
delete

Member Function Documentation

◆ operator=()

QLineNumberArea& QLineNumberArea::operator= ( const QLineNumberArea )
delete

◆ paintEvent()

void QLineNumberArea::paintEvent ( QPaintEvent *  event)
overrideprotected

Definition at line 56 of file QLineNumberArea.cpp.

◆ setSyntaxStyle()

void QLineNumberArea::setSyntaxStyle ( QSyntaxStyle style)

Method for setting syntax style object.

Parameters
stylePointer to syntax style.

Definition at line 46 of file QLineNumberArea.cpp.

◆ sizeHint()

QSize QLineNumberArea::sizeHint ( ) const
override

Overridden method for getting line number area size.

Definition at line 22 of file QLineNumberArea.cpp.

◆ syntaxStyle()

QSyntaxStyle * QLineNumberArea::syntaxStyle ( ) const

Method for getting syntax style.

Returns
Pointer to syntax style.

Definition at line 51 of file QLineNumberArea.cpp.

Member Data Documentation

◆ m_codeEditParent

QCodeEditor* QLineNumberArea::m_codeEditParent
private

Definition at line 53 of file QLineNumberArea.hpp.

◆ m_syntaxStyle

QSyntaxStyle* QLineNumberArea::m_syntaxStyle
private

Definition at line 51 of file QLineNumberArea.hpp.


The documentation for this class was generated from the following files:


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