The textmargin component delegate You can override the methods in the class for adding functionality to the text-margin component.
More...
#include <textmargincomponent.h>
The textmargin component delegate You can override the methods in the class for adding functionality to the text-margin component.
◆ TextMarginComponentDelegate()
edbee::TextMarginComponentDelegate::TextMarginComponentDelegate |
( |
| ) |
|
◆ ~TextMarginComponentDelegate()
virtual edbee::TextMarginComponentDelegate::~TextMarginComponentDelegate |
( |
| ) |
|
|
inlinevirtual |
◆ leaveEvent()
void edbee::TextMarginComponentDelegate::leaveEvent |
( |
QEvent * |
event | ) |
|
|
virtual |
◆ lineText()
QString edbee::TextMarginComponentDelegate::lineText |
( |
int |
line | ) |
|
|
virtual |
The default text (of course) is the line-number.
◆ marginComponent()
◆ mouseMoveEvent()
void edbee::TextMarginComponentDelegate::mouseMoveEvent |
( |
int |
line, |
|
|
QMouseEvent * |
event |
|
) |
| |
|
virtual |
This method is called when the mouse is moved over a certain line To use it you MUST manually call setMouseTracking() on the TextMarginComponent.
◆ mousePressEvent()
void edbee::TextMarginComponentDelegate::mousePressEvent |
( |
int |
line, |
|
|
QMouseEvent * |
event |
|
) |
| |
|
virtual |
◆ renderAfter()
void edbee::TextMarginComponentDelegate::renderAfter |
( |
QPainter * |
painter, |
|
|
int |
startLine, |
|
|
int |
endLine, |
|
|
int |
width |
|
) |
| |
|
virtual |
The delegate can berform custom rendering on a given line.
◆ renderBefore()
void edbee::TextMarginComponentDelegate::renderBefore |
( |
QPainter * |
painter, |
|
|
int |
startLine, |
|
|
int |
endLine, |
|
|
int |
width |
|
) |
| |
|
virtual |
Custom rendering before the line-numbers etc are drawn.
◆ requiresMouseTracking()
bool edbee::TextMarginComponentDelegate::requiresMouseTracking |
( |
| ) |
|
|
virtual |
Make this method return true to enable mouse tracking.
◆ setMarginCompenent()
◆ widthBeforeLineNumber()
int edbee::TextMarginComponentDelegate::widthBeforeLineNumber |
( |
| ) |
|
|
virtual |
The extra space required before the line-number The default implemenation returns 0.
The documentation for this class was generated from the following files: