kjsembed
#include <numberedtextview.h>

Signals | |
void | mouseHover (const QPoint &pos, const QString &word) |
void | mouseHover (const QString &word) |
Public Member Functions | |
NumberedTextView (QWidget *parent=0) | |
~NumberedTextView () | |
int | bugLine () const |
int | currentLine () const |
bool | eventFilter (QObject *obj, QEvent *event) |
void | setBugLine (int lineno) |
void | setCurrentLine (int lineno) |
void | setStopLine (int lineno) |
void | setText (const QString &text) |
int | stopLine () const |
QString | text () const |
QTextEdit * | textEdit () const |
Protected Slots | |
void | textChanged (int pos, int added, int removed) |
Properties | |
int | bugLine |
int | currentLine |
int | stopLine |
QString | text |
Detailed Description
Displays a QTextEdit with line numbers.
Definition at line 76 of file numberedtextview.h.
Constructor & Destructor Documentation
◆ NumberedTextView()
NumberedTextView::NumberedTextView | ( | QWidget * | parent = 0 | ) |
Definition at line 155 of file numberedtextview.cpp.
◆ ~NumberedTextView()
NumberedTextView::~NumberedTextView | ( | ) |
Definition at line 185 of file numberedtextview.cpp.
Member Function Documentation
◆ bugLine()
int NumberedTextView::bugLine | ( | ) | const |
Definition at line 215 of file numberedtextview.cpp.
◆ currentLine()
int NumberedTextView::currentLine | ( | ) | const |
Definition at line 205 of file numberedtextview.cpp.
◆ eventFilter()
bool NumberedTextView::eventFilter | ( | QObject * | obj, |
QEvent * | event | ||
) |
Used to get tooltip events from the view for the hover signal.
Definition at line 262 of file numberedtextview.cpp.
◆ mouseHover [1/2]
|
signal |
Emitted when the mouse is hovered over the text edit component.
- Parameters
-
pos The position of the mouse pointer. word The word under the mouse pointer
◆ mouseHover [2/2]
|
signal |
Emitted when the mouse is hovered over the text edit component.
- Parameters
-
word The word under the mouse pointer
◆ setBugLine()
void NumberedTextView::setBugLine | ( | int | lineno | ) |
Sets the line that should have the bug line indicator.
A value of -1 indicates no line should show the indicator.
Definition at line 200 of file numberedtextview.cpp.
◆ setCurrentLine()
void NumberedTextView::setCurrentLine | ( | int | lineno | ) |
Sets the line that should have the current line indicator.
A value of -1 indicates no line should show the indicator.
Definition at line 189 of file numberedtextview.cpp.
◆ setStopLine()
void NumberedTextView::setStopLine | ( | int | lineno | ) |
Sets the line that should have the stop line indicator.
A value of -1 indicates no line should show the indicator.
Definition at line 195 of file numberedtextview.cpp.
◆ setText()
void NumberedTextView::setText | ( | const QString & | text | ) |
Definition at line 225 of file numberedtextview.cpp.
◆ stopLine()
int NumberedTextView::stopLine | ( | ) | const |
Definition at line 210 of file numberedtextview.cpp.
◆ text()
QString NumberedTextView::text | ( | ) | const |
Definition at line 220 of file numberedtextview.cpp.
◆ textChanged
|
protectedslot |
Used to update the highlight on the current line.
Definition at line 231 of file numberedtextview.cpp.
◆ textEdit()
|
inline |
Returns the QTextEdit of the main view.
Definition at line 88 of file numberedtextview.h.
Property Documentation
◆ bugLine
|
readwrite |
Definition at line 70 of file numberedtextview.h.
◆ currentLine
|
readwrite |
Definition at line 70 of file numberedtextview.h.
◆ stopLine
|
readwrite |
Definition at line 70 of file numberedtextview.h.
◆ text
|
readwrite |
Definition at line 70 of file numberedtextview.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.