Sonnet::Settings Class
Spelling framework for Qt. More...
- Header:
#include <Sonnet/Settings> - CMake:
find_package(KF6 REQUIRED COMPONENTS Sonnet)
target_link_libraries(mytarget PRIVATE KF6::SonnetCore) - Inherits: QObject
List of all members, including inherited members
Deprecated members
Public Types
Properties
- autodetectLanguage : bool
- backgroundCheckerEnabled : bool
- checkerEnabledByDefault : bool
- currentIgnoreList : QStringList
- [read-only] defaultAutodetectLanguage : const bool
- [read-only] defaultBackgroundCheckerEnabled : const bool
- [read-only] defaultCheckerEnabledByDefault : const bool
- [read-only] defaultDefaultLanguage : const QString
- [read-only] defaultIgnoreList : const QStringList
- defaultLanguage : QString
- [read-only] defaultPreferredLanguages : const QStringList
- [read-only] defaultSkipRunTogether : const bool
- [read-only] defaultSkipUppercase : const bool
- [read-only] dictionaryModel : QAbstractListModel* const
- [read-only] modified : bool
- preferredLanguages : QStringList
- skipRunTogether : bool
- skipUppercase : bool
Public Functions
Detailed Description
Member Type Documentation
enum Settings::DictionaryRoles
Roles for dictionaryModel
| Constant | Value | Description |
|---|---|---|
Sonnet::Settings::LanguageCodeRole |
Qt::UserRole + 1 |
Language code of the language. This uses "languageCode" as roleNames. |
Sonnet::Settings::PreferredRole |
258 |
This role holds whether the language is one of the preferred languages. This uses "isPreferred" as roleNames. |
Sonnet::Settings::DefaultRole |
259 |
This role holds whether the language is the default language. This uses "isDefault" as roleNames. |
Property Documentation
autodetectLanguage : bool
This property holds whether Sonnet should autodetect language.
Access functions:
boolautodetectLanguage() constvoidsetAutodetectLanguage(bool)
Notifier signal:
voidautodetectLanguageChanged()
backgroundCheckerEnabled : bool
This property holds whether Sonnet should run spellchecking checks in the background.
Access functions:
boolbackgroundCheckerEnabled() constvoidsetBackgroundCheckerEnabled(bool)
Notifier signal:
voidbackgroundCheckerEnabledChanged()
checkerEnabledByDefault : bool
This property holds whether Sonnet should be enabled by default.
Access functions:
boolcheckerEnabledByDefault() constvoidsetCheckerEnabledByDefault(bool)
Notifier signal:
voidcheckerEnabledByDefaultChanged()
currentIgnoreList : QStringList
This property holds the list of ignored words.
Access functions:
QStringListcurrentIgnoreList() constvoidsetCurrentIgnoreList(constQStringList&ignores)
Notifier signal:
voidcurrentIgnoreListChanged()
[read-only] defaultAutodetectLanguage : const bool
This property holds the default value for the autoDetectLanguage property.
Access functions:
booldefaultAutodetectLanguage()
[read-only] defaultBackgroundCheckerEnabled : const bool
This property holds the default value for the backgroundCheckerEnabled property.
Access functions:
booldefaultBackgroundCheckerEnabled()
[read-only] defaultCheckerEnabledByDefault : const bool
This property holds the default value for the list checkerEnabledByDefault property.
Access functions:
booldefaultCheckerEnabledByDefault()
[read-only] defaultDefaultLanguage : const QString
This property holds the default value for the defaultLanguage property.
Access functions:
QStringdefaultDefaultLanguage()
[read-only] defaultIgnoreList : const QStringList
This property holds the default value for the currentIgnoreList property.
Access functions:
QStringListdefaultIgnoreList()
defaultLanguage : QString
This property holds the default language for spell checking.
Access functions:
QStringdefaultLanguage() constvoidsetDefaultLanguage(constQString&lang)
Notifier signal:
voiddefaultLanguageChanged()
[read-only] defaultPreferredLanguages : const QStringList
This property holds the default value for the preferredLanguages property.
Access functions:
QStringListdefaultPreferredLanguages()
[read-only] defaultSkipRunTogether : const bool
This property holds the default value for the skipRunTogether property.
Access functions:
booldefaultSkipRunTogether()
[read-only] defaultSkipUppercase : const bool
This property holds the default value for the skipUppercase property.
Access functions:
booldefaultSkipUppercase()
[read-only] dictionaryModel : QAbstractListModel* const
This property holds a Qt Model containing all the preferred dictionaries with language description and theirs codes. This model makes the Qt::DisplayRole as well as the roles defined in DictionaryRoles available.
Access functions:
QAbstractListModel*dictionaryModel()
[read-only] modified : bool
Access functions:
boolmodified() const
Notifier signal:
voidmodifiedChanged()
preferredLanguages : QStringList
This property holds the list of preferred languages.
Access functions:
QStringListpreferredLanguages() constvoidsetPreferredLanguages(constQStringList&lang)
Notifier signal:
voidpreferredLanguagesChanged()
skipRunTogether : bool
This property holds whether Sonnet should skip checking compounds words.
Access functions:
boolskipRunTogether() constvoidsetSkipRunTogether(bool)
Notifier signal:
voidskipRunTogetherChanged()
skipUppercase : bool
This property holds whether Sonnet should skip checkign words starting with an uppercase letter.
Access functions:
boolskipUppercase() constvoidsetSkipUppercase(bool)
Notifier signal:
voidskipUppercaseChanged()
Member Function Documentation
[explicit] Settings::Settings(QObject *parent = nullptr)
[invokable] void Settings::save()
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.