TextGrammarCheck::GrammarAction Class
Represents a grammar correction action. Author: Laurent Montel <montel@kde.org>. More...
| Header: | #include <TextGrammarCheck/GrammarAction> |
| CMake: | find_package(KF6TextGrammarCheck REQUIRED)target_link_libraries(mytarget PRIVATE KF6::TextGrammarCheck) |
Public Functions
| GrammarAction() | |
| int | blockId() const |
| QStringList | infoUrls() const |
| int | length() const |
| QString | replacement() const |
| void | setBlockId(int blockId) |
| void | setInfoUrls(const QStringList &urls) |
| void | setLength(int end) |
| void | setReplacement(const QString &replacement) |
| void | setStart(int start) |
| void | setSuggestions(const QStringList &suggestions) |
| int | start() const |
| QStringList | suggestions() const |
Detailed Description
Member Function Documentation
GrammarAction::GrammarAction()
Constructs a new GrammarAction.
int GrammarAction::blockId() const
Returns the block ID this action is related to.
See also setBlockId().
QStringList GrammarAction::infoUrls() const
Returns the information URLs for this action.
See also setInfoUrls().
int GrammarAction::length() const
Returns the length of text this action applies to.
See also setLength().
QString GrammarAction::replacement() const
Returns the replacement text for this action.
See also setReplacement().
void GrammarAction::setBlockId(int blockId)
Sets the block ID this action is related to.
See also blockId().
void GrammarAction::setInfoUrls(const QStringList &urls)
Sets the information URLs for this action.
See also infoUrls().
void GrammarAction::setLength(int end)
Sets the length of text this action applies to.
See also length().
void GrammarAction::setReplacement(const QString &replacement)
Sets the replacement text for this action.
See also replacement().
void GrammarAction::setStart(int start)
Sets the starting position where this action applies.
See also start().
void GrammarAction::setSuggestions(const QStringList &suggestions)
Sets the list of suggestions for this action.
See also suggestions().
int GrammarAction::start() const
Returns the starting position where this action applies.
See also setStart().
QStringList GrammarAction::suggestions() const
Returns the list of suggestions for this action.
See also setSuggestions().