diff options
author | Michal Klocek <michal.klocek@theqtcompany.com> | 2016-04-28 11:32:24 +0200 |
---|---|---|
committer | Michal Klocek <michal.klocek@theqtcompany.com> | 2016-05-06 20:17:08 +0000 |
commit | d364c05de52f9ab39034e56cac4e0a7981dc541d (patch) | |
tree | 66f9fba711bb49536b577ef3552c4ddf7006ad6b /src/webengine/api/qquickwebenginecontextmenudata.cpp | |
parent | e87ba5b27bf753498adb00eef53f224c1123d25f (diff) | |
download | qtwebengine-d364c05de52f9ab39034e56cac4e0a7981dc541d.tar.gz |
Remove spellchecking support
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 <michael.bruning@theqtcompany.com>
Diffstat (limited to 'src/webengine/api/qquickwebenginecontextmenudata.cpp')
-rw-r--r-- | src/webengine/api/qquickwebenginecontextmenudata.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/webengine/api/qquickwebenginecontextmenudata.cpp b/src/webengine/api/qquickwebenginecontextmenudata.cpp index 221b42245..684903ec0 100644 --- a/src/webengine/api/qquickwebenginecontextmenudata.cpp +++ b/src/webengine/api/qquickwebenginecontextmenudata.cpp @@ -170,30 +170,6 @@ bool QQuickWebEngineContextMenuData::isContentEditable() const return d ? d->isEditable : false; } -/*! - \qmlproperty QString WebEngineDownloadItem::misspelledWord - - If the context is a word considered misspelled by the spell-checker, returns the misspelled word. -*/ -QString QQuickWebEngineContextMenuData::misspelledWord() const -{ - if (d) - return d->misspelledWord; - return QString(); -} - -/*! - \qmlproperty QStringList WebEngineDownloadItem::spellCheckerSuggestions - - If the context is a word considered misspelled by the spell-checker, returns a list of suggested replacements. -*/ -QStringList QQuickWebEngineContextMenuData::spellCheckerSuggestions() const -{ - if (d) - return d->spellCheckerSuggestions; - return QStringList(); -} - void QQuickWebEngineContextMenuData::update(const QtWebEngineCore::WebEngineContextMenuData &update) { const QQuickWebEngineContextMenuData old(d); @@ -222,12 +198,6 @@ void QQuickWebEngineContextMenuData::update(const QtWebEngineCore::WebEngineCont if (isContentEditable() != old.isContentEditable()) Q_EMIT isContentEditableChanged(); - - if (misspelledWord() != old.misspelledWord()) - Q_EMIT misspelledWordChanged(); - - if (spellCheckerSuggestions() != old.spellCheckerSuggestions()) - Q_EMIT spellCheckerSuggestionsChanged(); } QQuickWebEngineContextMenuData::QQuickWebEngineContextMenuData(const QQuickWebEngineContextMenuDataPrivate *p, QObject *parent) |