|
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().
| void LineNumberDisplay::changeCharFormat | ( | const QTextCharFormat & | f | ) | [private, slot] |
Referenced by LineNumberDisplay().
| void LineNumberDisplay::showEvent | ( | QShowEvent * | e | ) | [private] |
References updateLineNumbers().
| void LineNumberDisplay::updateDocumentSelection | ( | ) | [slot] |
References d_text_edit.
Referenced by LineNumberDisplay().
| void LineNumberDisplay::updateLineNumbers | ( | bool | force = false | ) | [slot] |
References d_text_edit.
Referenced by LineNumberDisplay(), Note::setFont(), showEvent(), and ScriptWindow::showLineNumbers().
QTextEdit* LineNumberDisplay::d_text_edit [private] |
Referenced by updateDocumentSelection(), and updateLineNumbers().
1.7.6.1