KTextWidgets
ktextedit.h
49 Q_PROPERTY(QString spellCheckingLanguage READ spellCheckingLanguage WRITE setSpellCheckingLanguage)
void setSpellCheckingLanguage(const QString &language)
Set the spell check language which will be used for highlighting spelling mistakes and for the spellc...
Definition ktextedit.cpp:267
virtual bool shouldBlockBeSpellChecked(const QString &block) const
Returns true if the given paragraph or block should be spellcheck.
Definition ktextedit.cpp:692
virtual void setCheckSpellingEnabled(bool check)
Turns background spell checking for this text edit on or off.
Definition ktextedit.cpp:648
virtual void createHighlighter()
Allows to create a specific highlighter if reimplemented.
Definition ktextedit.cpp:601
void addTextDecorator(Sonnet::SpellCheckDecorator *decorator)
Add custom spell checker decorator.
Definition ktextedit.cpp:628
void spellCheckingCanceled()
signal spellCheckingCanceled is sent when we cancel spell checking.
void showSpellConfigDialog(const QString &windowIcon=QString())
Opens a Sonnet::ConfigDialog for this text edit.
Definition ktextedit.cpp:282
void highlightWord(int length, int pos)
Selects the characters at the specified position.
Definition ktextedit.cpp:751
KTextEdit(const QString &text, QWidget *parent=nullptr)
Constructs a KTextEdit object.
Definition ktextedit.cpp:230
virtual void deleteWordBack()
Deletes a word backwards from the current cursor position, if available.
Definition ktextedit.cpp:446
void spellCheckingFinished()
signal spellCheckingFinished is sent when we finish spell check or we click on "Terminate" button in ...
void spellCheckerAutoCorrect(const QString ¤tWord, const QString &autoCorrectWord)
void setHighlighter(Sonnet::Highlighter *_highLighter)
Sets a custom background spell highlighter for this text edit.
Definition ktextedit.cpp:635
void checkSpellingChanged(bool)
emit signal when we activate or not autospellchecking
void spellCheckStatus(const QString &)
Signal sends when spell checking is finished/stopped/completed.
void aboutToShowContextMenu(QMenu *menu)
Emitted before the context menu is displayed.
Sonnet::Highlighter * highlighter() const
Returns the current highlighter, which is 0 if spell checking is disabled.
Definition ktextedit.cpp:606
void languageChanged(const QString &language)
Emitted when the user changes the language in the spellcheck dialog shown by checkSpelling() or when ...
virtual void deleteWordForward()
Deletes a word forwards from the current cursor position, if available.
Definition ktextedit.cpp:453
virtual bool event(QEvent *event) override
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
QTextEdit(QWidget *parent)
virtual void contextMenuEvent(QContextMenuEvent *event) override
virtual void focusInEvent(QFocusEvent *e) override
virtual void keyPressEvent(QKeyEvent *e) override
void setReadOnly(bool ro)
enabled
pos
void show()
windowIcon
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Mar 7 2025 11:54:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Mar 7 2025 11:54:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.