Sonnet
highlighter.h
bool autoDetectLanguageDisabled() const
Returns whether the automatic language detection is disabled, overriding the Sonnet settings.
Definition highlighter.cpp:204
void slotAutoDetection()
Run auto detection, disabling spell checking if too many errors are found.
Definition highlighter.cpp:236
void addWordToDictionary(const QString &word)
Adds the given word permanently to the dictionary.
Definition highlighter.cpp:469
void activeChanged(const QString &description)
Emitted when as-you-type spell checking is enabled or disabled.
QString currentLanguage() const
Returns the current language used for spell checking.
Definition highlighter.cpp:375
bool isWordMisspelled(const QString &word)
Checks if a given word is marked as misspelled by the highlighter.
Definition highlighter.cpp:504
QStringList suggestionsForWord(const QString &word, int max=10)
Returns a list of suggested replacements for the given misspelled word.
Definition highlighter.cpp:479
bool automatic() const
Returns the state of the automatic disabling of spell checking.
Definition highlighter.cpp:199
bool spellCheckerFound() const
Returns whether a spell checking backend with support for the currentLanguage was found.
Definition highlighter.cpp:170
void setMisspelledColor(const QColor &color)
Sets the color in which the highlighter underlines misspelled words.
Definition highlighter.cpp:509
void setAutomatic(bool automatic)
Sets whether to automatically disable spell checking if there's too many errors.
Definition highlighter.cpp:219
void setAutoDetectLanguageDisabled(bool autoDetectDisabled)
Sets whether to disable the automatic language detection.
Definition highlighter.cpp:231
bool checkerEnabledByDefault() const
Return true if checker is enabled by default.
Definition highlighter.cpp:514
void setDocument(QTextDocument *document)
Set a new QTextDocument for this highlighter to operate on.
Definition highlighter.cpp:519
void setCurrentLanguage(const QString &language)
Set language to use for spell checking.
Definition highlighter.cpp:380
Q_SCRIPTABLE QString start(QString train="")
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QSyntaxHighlighter(QObject *parent)
QTextDocument * document() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:17 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:17 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.