umbrello 2.34.70-5524f40e1
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
Public Member Functions | Protected Member Functions | Private Slots | Private Attributes | List of all members
CodeTextEdit Class Reference

#include <codetextedit.h>

Inheritance diagram for CodeTextEdit:
Collaboration diagram for CodeTextEdit:

Public Member Functions

 CodeTextEdit (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 * m_lineNumberArea
 
CodeTextHighlighterm_highlighter
 

Constructor & Destructor Documentation

◆ CodeTextEdit()

CodeTextEdit::CodeTextEdit ( QWidget *  parent = 0)
explicit

Constructor.

Parameters
parentthe parent widget
Here is the call graph for this function:

Member Function Documentation

◆ highlightCurrentLine

void CodeTextEdit::highlightCurrentLine ( )
privateslot

◆ lineNumberAreaPaintEvent()

void CodeTextEdit::lineNumberAreaPaintEvent ( QPaintEvent *  event)

◆ lineNumberAreaWidth()

int CodeTextEdit::lineNumberAreaWidth ( )

Calculates the needed width of the line number area.

Returns
width of line number area

◆ resizeEvent()

void CodeTextEdit::resizeEvent ( QResizeEvent *  event)
protected
Here is the call graph for this function:

◆ updateLineNumberArea

void CodeTextEdit::updateLineNumberArea ( const QRect &  rect,
int  dy 
)
privateslot
Here is the call graph for this function:

◆ updateLineNumberAreaWidth

void CodeTextEdit::updateLineNumberAreaWidth ( int  newBlockCount)
privateslot

Slot for 'blockCountChanged'. Sets new viewport margins according to the width of the line number area.

Parameters
newBlockCountunused
Here is the call graph for this function:

Member Data Documentation

◆ m_highlighter

CodeTextHighlighter* CodeTextEdit::m_highlighter
private

◆ m_lineNumberArea

QWidget* CodeTextEdit::m_lineNumberArea
private

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