QtiPlot
0.9.8.2
|
A QTextEdit displaying line numbers. More...
#include <LineNumberDisplay.h>
Public Slots | |
void | updateDocumentSelection () |
void | updateLineNumbers (bool force=false) |
Public Member Functions | |
LineNumberDisplay (QTextEdit *te, QWidget *parent=0) | |
Constructor. |
Private Slots | |
void | changeCharFormat (const QTextCharFormat &) |
Private Member Functions | |
void | showEvent (QShowEvent *) |
Private Attributes | |
QTextEdit * | d_text_edit |
A QTextEdit displaying line numbers.
It must be used in connection with another "source" QTextEdit.
LineNumberDisplay::LineNumberDisplay | ( | QTextEdit * | te, |
QWidget * | parent = 0 |
||
) |
Constructor.
te | the "source" QTextEdit for which we want to display the line numbers |
parent | parent widget (only affects placement of the dialog) |
References changeCharFormat(), updateDocumentSelection(), and updateLineNumbers().
|
privateslot |
Referenced by LineNumberDisplay().
|
private |
References updateLineNumbers().
|
slot |
References d_text_edit.
Referenced by LineNumberDisplay().
|
slot |
References d_text_edit.
Referenced by LineNumberDisplay(), Note::setFont(), showEvent(), and ScriptWindow::showLineNumbers().
|
private |
Referenced by updateDocumentSelection(), and updateLineNumbers().