TextCustomEditor::TextGoToLineWidget Class
The TextGoToLineWidget class Author: Laurent Montel <montel@kde.org>. More...
| Header: | #include <TextCustomEditor/TextGoToLineWidget> |
| CMake: | find_package(KF6TextCustomEditor REQUIRED)target_link_libraries(mytarget PRIVATE KF6::TextCustomEditor) |
Public Functions
| TextGoToLineWidget(QWidget *parent = nullptr) | |
| virtual | ~TextGoToLineWidget() override |
| void | goToLine() |
| void | setMaximumLineCount(int max) |
| void | slotBlockCountChanged(int numberBlockCount) |
Reimplemented Public Functions
| virtual bool | eventFilter(QObject *obj, QEvent *event) override |
Signals
| void | hideGotoLine() |
| void | moveToLine(int) |
Reimplemented Protected Functions
Detailed Description
Member Function Documentation
[explicit] TextGoToLineWidget::TextGoToLineWidget(QWidget *parent = nullptr)
Constructs a new TextGoToLineWidget.
[override virtual noexcept] TextGoToLineWidget::~TextGoToLineWidget()
Destroys the widget.
[override virtual protected] bool TextGoToLineWidget::event(QEvent *e)
Handles events.
[override virtual] bool TextGoToLineWidget::eventFilter(QObject *obj, QEvent *event)
Filters events for the parent widget.
void TextGoToLineWidget::goToLine()
Opens the dialog to enter a line number to go to.
[signal] void TextGoToLineWidget::hideGotoLine()
Emitted when the user wants to hide the go-to-line widget.
[signal] void TextGoToLineWidget::moveToLine(int)
Emitted when the user wants to move to a specific line.
void TextGoToLineWidget::setMaximumLineCount(int max)
Sets the maximum line count for validation.
[override virtual protected] void TextGoToLineWidget::showEvent(QShowEvent *e)
Handles the show event.
void TextGoToLineWidget::slotBlockCountChanged(int numberBlockCount)
Called when the block count of the text document changes.