summaryrefslogtreecommitdiffstats
path: root/src/webenginewidgets/api/qwebengineprofile.cpp
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@theqtcompany.com>2016-04-11 15:31:36 +0200
committerMichael BrĂ¼ning <michael.bruning@theqtcompany.com>2016-04-18 13:10:09 +0000
commit7d172fcf39fa2a5d7d5202f20c599eb678f6cb58 (patch)
tree98ece282fa13332cc52352b65f941126f0fc88d5 /src/webenginewidgets/api/qwebengineprofile.cpp
parentee2b1e71a80f88de90a03e10a89ba491ef99d308 (diff)
Update spellchecker APIs
* marks new properties in QQuickWebEngineProfile as FINAL * removes QT_NO_SPELLCHECK from API headers * renames spellCheckLanguages() to availableDictionaries() * removes "togle spellcheck" methods and actions * use WEBENGINE_CONFIG instead of CONFIG for disable the feature at compile time: WEBENGINE_CONFIG+=no_spellcheck Done-With: Peter Varga <pvarga@inf.u-szeged.hu> Task-number: QTBUG-52371 Change-Id: I8c8eff497b9e7afe0cec2edc97dec248151487f2 Reviewed-by: Michael BrĂ¼ning <michael.bruning@theqtcompany.com>
Diffstat (limited to 'src/webenginewidgets/api/qwebengineprofile.cpp')
-rw-r--r--src/webenginewidgets/api/qwebengineprofile.cpp10
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.