diff options
Diffstat (limited to 'src/webenginewidgets/api/qwebengineprofile.cpp')
-rw-r--r-- | src/webenginewidgets/api/qwebengineprofile.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/webenginewidgets/api/qwebengineprofile.cpp b/src/webenginewidgets/api/qwebengineprofile.cpp index 22d4d088f..3a2254427 100644 --- a/src/webenginewidgets/api/qwebengineprofile.cpp +++ b/src/webenginewidgets/api/qwebengineprofile.cpp @@ -555,22 +555,21 @@ QWebEngineProfile *QWebEngineProfile::defaultProfile() return profile; } -#if !defined(QT_NO_SPELLCHECK) /*! \since 5.7 - Returns the subset of \a acceptLanguages supported by the spell checker. + Returns the subset of \a languages supported by the spell checker. Checks whether the spell checker dictionary is installed for the specified - language from the \a acceptLanguages list. If the dictionary file is missing + language from the \a languages list. If the dictionary file is missing or corrupted, the language is removed from the returned list. \sa setSpellCheckLanguage() */ -QStringList QWebEngineProfile::spellCheckLanguages(const QStringList &acceptLanguages) +QStringList QWebEngineProfile::availableDictionaries(const QStringList &languages) { const Q_D(QWebEngineProfile); - return d->browserContext()->spellCheckLanguages(acceptLanguages); + return d->browserContext()->spellCheckLanguages(languages); } /*! @@ -617,7 +616,6 @@ bool QWebEngineProfile::isSpellCheckEnabled() const const Q_D(QWebEngineProfile); return d->browserContext()->isSpellCheckEnabled(); } -#endif /*! Returns the default settings for all pages in this profile. |