From 0bf8a13a4d0391339bae686e199fb922b64a1dcc Mon Sep 17 00:00:00 2001 From: Michal Klocek Date: Thu, 28 Apr 2016 19:20:33 +0200 Subject: 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 --- src/webengine/api/qquickwebengineprofile.cpp | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'src/webengine/api/qquickwebengineprofile.cpp') diff --git a/src/webengine/api/qquickwebengineprofile.cpp b/src/webengine/api/qquickwebengineprofile.cpp index d7a84c106..cf9d7ab2f 100644 --- a/src/webengine/api/qquickwebengineprofile.cpp +++ b/src/webengine/api/qquickwebengineprofile.cpp @@ -612,31 +612,6 @@ QQuickWebEngineProfile *QQuickWebEngineProfile::defaultProfile() return profile; } -/*! - \qmlmethod void QQuickWebEngineProfile::availableDictionaries() - - 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. - - \since QtWebEngine 1.3 -*/ - -/*! - 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. - - \since QtWebEngine 1.3 -*/ -QStringList QQuickWebEngineProfile::availableDictionaries(const QStringList &languages) -{ - const Q_D(QQuickWebEngineProfile); - return d->browserContext()->spellCheckLanguages(languages); -} - /*! \property QQuickWebEngineProfile::spellCheckLanguage \brief the language used by the spell checker. -- cgit v1.2.1