Sonnet
spellcheckhighlighter.h
59 Q_PROPERTY(QQuickTextDocument *document READ quickDocument WRITE setQuickDocument NOTIFY documentChanged)
63 Q_PROPERTY(int cursorPosition READ cursorPosition WRITE setCursorPosition NOTIFY cursorPositionChanged)
67 Q_PROPERTY(int selectionStart READ selectionStart WRITE setSelectionStart NOTIFY selectionStartChanged)
83 Q_PROPERTY(QColor misspelledColor READ misspelledColor WRITE setMisspelledColor NOTIFY misspelledColorChanged)
114 Q_PROPERTY(bool autoDetectLanguageDisabled READ autoDetectLanguageDisabled WRITE setAutoDetectLanguageDisabled NOTIFY autoDetectLanguageDisabledChanged)
bool wordIsMisspelled
This property holds whether the current word under the mouse is misspelled.
Definition spellcheckhighlighter.h:75
Q_INVOKABLE void ignoreWord(const QString &word)
Ignores the given word.
Definition spellcheckhighlighter.cpp:500
int selectionStart
This property holds the start of the selection.
Definition spellcheckhighlighter.h:67
void setCurrentLanguage(const QString &language)
Set language to use for spell checking.
Definition spellcheckhighlighter.cpp:462
QString currentLanguage
This property holds the current language used for spell checking.
Definition spellcheckhighlighter.h:87
QString wordUnderMouse
This property holds the current word under the mouse.
Definition spellcheckhighlighter.h:79
QML_ELEMENTQQuickTextDocument * document
This property holds the underneath document from a QML TextEdit.
Definition spellcheckhighlighter.h:59
void setDocument(QTextDocument *document)
Set a new QTextDocument for this highlighter to operate on.
Definition spellcheckhighlighter.cpp:554
Q_INVOKABLE void replaceWord(const QString &word, int at=-1)
Replace word at the current cursor position, or.
Definition spellcheckhighlighter.cpp:506
int cursorPosition
This property holds the current cursor position.
Definition spellcheckhighlighter.h:63
bool autoDetectLanguageDisabled
This property holds whether the automatic language detection is disabled overriding the Sonnet global...
Definition spellcheckhighlighter.h:114
bool active
This property holds whether spell checking is enabled.
Definition spellcheckhighlighter.h:104
Q_INVOKABLE QStringList suggestions(int position, int max=5)
Returns a list of suggested replacements for the given misspelled word.
Definition spellcheckhighlighter.cpp:390
void slotAutoDetection()
Run auto detection, disabling spell checking if too many errors are found.
Definition spellcheckhighlighter.cpp:232
Q_INVOKABLE bool isWordMisspelled(const QString &word)
Checks if a given word is marked as misspelled by the highlighter.
Definition spellcheckhighlighter.cpp:656
bool automatic
This property holds whether spell checking is automatically disabled if there's too many errors.
Definition spellcheckhighlighter.h:109
bool spellCheckerFound
This property holds whether a spell checking backend with support for the currentLanguage was found.
Definition spellcheckhighlighter.h:92
Q_INVOKABLE void addWordToDictionary(const QString &word)
Adds the given word permanently to the dictionary.
Definition spellcheckhighlighter.cpp:494
Q_SCRIPTABLE QString start(QString train="")
QObject(QObject *parent)
Q_INVOKABLEQ_INVOKABLE
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
QSyntaxHighlighter(QObject *parent)
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.