KDEUI
ktextedit.h
Go to the documentation of this file.
95 Q_PROPERTY( QString spellCheckingLanguage READ spellCheckingLanguage WRITE setSpellCheckingLanguage )
This interface is a workaround to keep binary compatibility in KDE4, because adding the virtual keywo...
Definition ktextedit.h:46
virtual bool shouldBlockBeSpellChecked(const QString &block) const =0
Returns true if the given paragraph or block should be spellcheck.
virtual void setSpellCheckingEnabled(bool enable)=0
Sets whether to enable spellchecking for the KTextEdit.
virtual bool isSpellCheckingEnabled() const =0
virtual ~KTextEditSpellInterface()
Definition ktextedit.h:68
virtual void paintEvent(QPaintEvent *)
Reimplemented to paint clickMessage.
Definition ktextedit.cpp:1152
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:344
void setSpellCheckingConfigFileName(const QString &fileName)
Allows to override the config file where the settings for spell checking, like the current language o...
Definition ktextedit.cpp:334
void setCheckSpellingEnabled(bool check)
Turns background spell checking for this text edit on or off.
Definition ktextedit.cpp:752
virtual void createHighlighter()
Allows to create a specific highlighter if reimplemented.
Definition ktextedit.cpp:736
KTextEdit(const QString &text, QWidget *parent=0)
Constructs a KTextEdit object.
Definition ktextedit.cpp:317
virtual void keyPressEvent(QKeyEvent *)
Reimplemented for internal reasons.
Definition ktextedit.cpp:1121
void spellCheckingCanceled()
signal spellCheckingCanceled is sent when we cancel spell checking.
virtual void wheelEvent(QWheelEvent *)
Reimplemented to allow fast-wheelscrolling with Ctrl-Wheel or zoom.
Definition ktextedit.cpp:728
void mousePopupMenuImplementation(const QPoint &pos)
Definition ktextedit.cpp:1182
void highlightWord(int length, int pos)
Selects the characters at the specified position.
Definition ktextedit.cpp:849
virtual void setReadOnly(bool readOnly)
Reimplemented to set a proper "deactivated" background color.
Definition ktextedit.cpp:807
void showSpellConfigDialog(const QString &configFileName, const QString &windowIcon=QString())
Opens a Sonnet::ConfigDialog for this text edit.
Definition ktextedit.cpp:357
virtual void deleteWordBack()
Deletes a word backwards from the current cursor position, if available.
Definition ktextedit.cpp:507
virtual void focusInEvent(QFocusEvent *)
Reimplemented to instantiate a KDictSpellingHighlighter, if spellchecking is enabled.
Definition ktextedit.cpp:786
void spellCheckingFinished()
signal spellCheckingFinished is sent when we finish spell check or we click on "Terminate" button in ...
void setClickMessage(const QString &msg)
This makes the text edit display a grayed-out hinting text as long as the user didn't enter any text.
Definition ktextedit.cpp:1134
bool checkSpellingEnabledInternal() const
Checks whether spellchecking is enabled or disabled.
Definition ktextedit.cpp:802
virtual bool event(QEvent *)
Reimplemented to catch "delete word" shortcut events.
Definition ktextedit.cpp:371
void spellCheckerAutoCorrect(const QString ¤tWord, const QString &autoCorrectWord)
void setHighlighter(Sonnet::Highlighter *_highLighter)
Sets a custom backgound spell highlighter for this text edit.
Definition ktextedit.cpp:746
void setCheckSpellingEnabledInternal(bool check)
Enable or disable the spellchecking.
Definition ktextedit.cpp:760
void setSpellInterface(KTextEditSpellInterface *spellInterface)
Sets the spell interface, which is used to delegate certain function calls to the interface.
Definition ktextedit.cpp:1061
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:741
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:512
virtual void contextMenuEvent(QContextMenuEvent *)
Reimplemented from QTextEdit to add spelling related items when appropriate.
Definition ktextedit.cpp:617
dialog.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.