umbrello  2.35.1
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 ( QWidget *  parent = 0)
explicit

Constructor.

Parameters
parentthe parent widget

Here is the call graph for this function:

Member Function Documentation

void CodeTextEdit::highlightCurrentLine ( )
privateslot
void CodeTextEdit::lineNumberAreaPaintEvent ( QPaintEvent *  event)
int CodeTextEdit::lineNumberAreaWidth ( )

Calculates the needed width of the line number area.

Returns
width of line number area
void CodeTextEdit::resizeEvent ( QResizeEvent *  event)
protected

Here is the call graph for this function:

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

Here is the call graph for this function:

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

CodeTextHighlighter* CodeTextEdit::m_highlighter
private
QWidget* CodeTextEdit::m_lineNumberArea
private

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