summaryrefslogtreecommitdiff
path: root/src/webenginewidgets/api
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@theqtcompany.com>2016-04-28 19:20:33 +0200
committerMichal Klocek <michal.klocek@theqtcompany.com>2016-05-04 08:38:09 +0000
commit0bf8a13a4d0391339bae686e199fb922b64a1dcc (patch)
tree1a5e0f3a6009cd819510e7a7b11bb2bd34ad11bb /src/webenginewidgets/api
parent194c357aef23bf28befe1d51b343b5ac0683f728 (diff)
downloadqtwebengine-0bf8a13a4d0391339bae686e199fb922b64a1dcc.tar.gz
Remove availableDictionaries from spellcheck api
This method is broken, since SpellcheckerService is lazily initialized and dictionaries might be not loaded yet. Moreover there is a missing implementation on mac. Instead log warning when SpellcheckService can not load dictionary. Change-Id: Ifa2e769d83307543fa6cdf529475e9ab980022f0 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
Diffstat (limited to 'src/webenginewidgets/api')
-rw-r--r--src/webenginewidgets/api/qwebengineprofile.cpp17
-rw-r--r--src/webenginewidgets/api/qwebengineprofile.h1
2 files changed, 0 insertions, 18 deletions
diff --git a/src/webenginewidgets/api/qwebengineprofile.cpp b/src/webenginewidgets/api/qwebengineprofile.cpp
index 2dab0aa08..1f5912667 100644
--- a/src/webenginewidgets/api/qwebengineprofile.cpp
+++ b/src/webenginewidgets/api/qwebengineprofile.cpp
@@ -558,23 +558,6 @@ QWebEngineProfile *QWebEngineProfile::defaultProfile()
/*!
\since 5.7
- 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 languages list. If the dictionary file is missing
- or corrupted, the language is removed from the returned list.
-
- \sa setSpellCheckLanguage()
-*/
-QStringList QWebEngineProfile::availableDictionaries(const QStringList &languages)
-{
- const Q_D(QWebEngineProfile);
- return d->browserContext()->spellCheckLanguages(languages);
-}
-
-/*!
- \since 5.7
-
Sets the current \a language for the spell checker.
*/
void QWebEngineProfile::setSpellCheckLanguage(const QString &language)
diff --git a/src/webenginewidgets/api/qwebengineprofile.h b/src/webenginewidgets/api/qwebengineprofile.h
index 9c473eee9..868b4b0f5 100644
--- a/src/webenginewidgets/api/qwebengineprofile.h
+++ b/src/webenginewidgets/api/qwebengineprofile.h
@@ -121,7 +121,6 @@ public:
void clearHttpCache();
- QStringList availableDictionaries(const QStringList &languages);
void setSpellCheckLanguage(const QString &language);
QString spellCheckLanguage() const;
void setSpellCheckEnabled(bool enabled);