From d364c05de52f9ab39034e56cac4e0a7981dc541d Mon Sep 17 00:00:00 2001 From: Michal Klocek Date: Thu, 28 Apr 2016 11:32:24 +0200 Subject: Remove spellchecking support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Spellchecking API needs a bit more reviews and love. Current API is not intuitive and partly broken. Change-Id: Ie9cd371f38cca2f6b3f56a8699ad874cd332c318 Reviewed-by: Michael BrĂ¼ning --- src/webenginewidgets/api/qwebengineprofile.cpp | 61 -------------------------- 1 file changed, 61 deletions(-) (limited to 'src/webenginewidgets/api/qwebengineprofile.cpp') diff --git a/src/webenginewidgets/api/qwebengineprofile.cpp b/src/webenginewidgets/api/qwebengineprofile.cpp index 361a60944..664323034 100644 --- a/src/webenginewidgets/api/qwebengineprofile.cpp +++ b/src/webenginewidgets/api/qwebengineprofile.cpp @@ -555,67 +555,6 @@ QWebEngineProfile *QWebEngineProfile::defaultProfile() return profile; } -/*! - \since 5.7 - - Sets the current \a language for the spell checker. - The language should match the name of the \c .bdic dictionary. - For example, the \a language \c en-US will load the \c en-US.bdic - dictionary file. - - The web engine checks for the \c qtwebengine_dictionaries subdirectory - first in the local directory and if it is not found in the Qt - installation directory: - - \list - \li QCoreApplication::applicationDirPath()/qtwebengine_dictionaries - \li [QLibraryInfo::DataPath]/qtwebengine_dictionaries - \endlist - - For more information about how to compile \c .bdic dictionaries, see the - \l{WebEngine Widgets Spellchecker Example}{Spellchecker Example}. - -*/ -void QWebEngineProfile::setSpellCheckLanguage(const QString &language) -{ - Q_D(QWebEngineProfile); - d->browserContext()->setSpellCheckLanguage(language); -} - -/*! - \since 5.7 - - Returns the language used by the spell checker. -*/ -QString QWebEngineProfile::spellCheckLanguage() const -{ - const Q_D(QWebEngineProfile); - return d->browserContext()->spellCheckLanguage(); -} - -/*! - \since 5.7 - - Enables spell checker if \a enable is \c true, otherwise disables it. - \sa isSpellCheckEnabled() - */ -void QWebEngineProfile::setSpellCheckEnabled(bool enable) -{ - Q_D(QWebEngineProfile); - d->browserContext()->setSpellCheckEnabled(enable); -} -/*! - \since 5.7 - - Returns \c true if the spell checker is enabled; otherwise returns \c false. - \sa setSpellCheckEnabled() - */ -bool QWebEngineProfile::isSpellCheckEnabled() const -{ - const Q_D(QWebEngineProfile); - return d->browserContext()->isSpellCheckEnabled(); -} - /*! Returns the default settings for all pages in this profile. */ -- cgit v1.2.3