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)
The Sonnet Highlighter class, used for drawing red lines in text fields when detecting spelling mista...
Definition spellcheckhighlighter.h:54
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:501
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:463
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:555
Q_INVOKABLE void replaceWord(const QString &word, int at=-1)
Replace word at the current cursor position, or.
Definition spellcheckhighlighter.cpp:507
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
bool checkerEnabledByDefault() const
Return true if checker is enabled by default.
Q_INVOKABLE bool isWordMisspelled(const QString &word)
Checks if a given word is marked as misspelled by the highlighter.
Definition spellcheckhighlighter.cpp:657
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:495
Q_SCRIPTABLE Q_NOREPLY void start()
Q_INVOKABLEQ_INVOKABLE
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:29:33 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:29:33 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.