QCodeEdit
2.2
|
A specific panel in charge of drawing line numbers of an editor. More...
Protected Attributes | |
bool | m_verbose |
QLineNumberPanel (QWidget *p=0) | |
Constructor. | |
virtual | ~QLineNumberPanel () |
Empty destructor. | |
bool | isVerboseMode () const |
virtual QString | type () const |
void | setVerboseMode (bool y) |
virtual void | editorChange (QEditor *e) |
Callback. | |
virtual bool | paint (QPainter *p, QEditor *e) |
Additional Inherited Members | |
![]() | |
virtual QString | id () const =0 |
QPanel (QWidget *p=0) | |
Constructor. | |
virtual | ~QPanel () |
Destructor. | |
QEditor * | editor () |
void | attach (QEditor *e) |
Connect the panel to a text editor. | |
virtual bool | shallShow () const |
bool | defaultVisibility () const |
void | setDefaultVisibility (bool on) |
![]() | |
static QPanel * | panel (const QString &id, QWidget *p=0) |
static void | registerCreator (QPanelCreator *c) |
![]() | |
virtual bool | forward (QMouseEvent *e) |
virtual void | mouseMoveEvent (QMouseEvent *e) |
virtual void | mousePressEvent (QMouseEvent *e) |
virtual void | mouseReleaseEvent (QMouseEvent *e) |
virtual void | showEvent (QShowEvent *e) |
virtual void | hideEvent (QHideEvent *e) |
virtual void | paintEvent (QPaintEvent *e) |
A specific panel in charge of drawing line numbers of an editor.
|
protectedvirtual |
Callback.
Each time attach() is called, this function is called as well so that the panel can fine tune its behaviour according to the editor monitored.
Reimplemented from QPanel.
References QEditor::document(), and QDocument::lines().