QSS Solver GUI  4.5.3
CodeEditor Class Reference

#include <codeeditor.hpp>

Inheritance diagram for CodeEditor:
Collaboration diagram for CodeEditor:

Public Member Functions

 CodeEditor (QWidget *parent=0)
 
void lineNumberAreaPaintEvent (QPaintEvent *event)
 
int lineNumberAreaWidth ()
 

Protected Member Functions

void resizeEvent (QResizeEvent *event)
 

Private Slots

void updateLineNumberAreaWidth (int newBlockCount)
 
void highlightCurrentLine ()
 
void updateLineNumberArea (const QRect &, int)
 

Private Attributes

QWidget * lineNumberArea
 

Detailed Description

Definition at line 80 of file codeeditor.hpp.

Constructor & Destructor Documentation

◆ CodeEditor()

CodeEditor::CodeEditor ( QWidget *  parent = 0)
Parameters
parent

Definition at line 65 of file codeeditor.cpp.

References highlightCurrentLine(), lineNumberArea, updateLineNumberArea(), and updateLineNumberAreaWidth().

Here is the call graph for this function:

Member Function Documentation

◆ highlightCurrentLine

void CodeEditor::highlightCurrentLine ( )
privateslot

Definition at line 113 of file codeeditor.cpp.

Referenced by CodeEditor().

◆ lineNumberAreaPaintEvent()

void CodeEditor::lineNumberAreaPaintEvent ( QPaintEvent *  event)
Parameters
event

Definition at line 130 of file codeeditor.cpp.

References lineNumberArea.

Referenced by LineNumberArea::paintEvent().

◆ lineNumberAreaWidth()

int CodeEditor::lineNumberAreaWidth ( )
Returns

Definition at line 77 of file codeeditor.cpp.

Referenced by resizeEvent(), LineNumberArea::sizeHint(), and updateLineNumberAreaWidth().

◆ resizeEvent()

void CodeEditor::resizeEvent ( QResizeEvent *  event)
protected
Parameters
event

Definition at line 106 of file codeeditor.cpp.

References lineNumberArea, and lineNumberAreaWidth().

Here is the call graph for this function:

◆ updateLineNumberArea

void CodeEditor::updateLineNumberArea ( const QRect &  rect,
int  dy 
)
privateslot

Definition at line 93 of file codeeditor.cpp.

References lineNumberArea, and updateLineNumberAreaWidth().

Referenced by CodeEditor().

Here is the call graph for this function:

◆ updateLineNumberAreaWidth

void CodeEditor::updateLineNumberAreaWidth ( int  newBlockCount)
privateslot

Definition at line 91 of file codeeditor.cpp.

References lineNumberAreaWidth().

Referenced by CodeEditor(), and updateLineNumberArea().

Here is the call graph for this function:

Member Data Documentation

◆ lineNumberArea

QWidget* CodeEditor::lineNumberArea
private

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