summaryrefslogtreecommitdiffstats
path: root/src/webenginewidgets/api/qwebenginepage.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2016-03-08 13:17:40 +0100
committerAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2016-03-30 21:01:17 +0000
commit80ec51d5273e060551a9aa2d4878fee7c0cc1de2 (patch)
tree6ace5a42a4ff4aada5fbae0fd44511d9af5fd9cc /src/webenginewidgets/api/qwebenginepage.h
parent6454b6b2d0f2fbb8d140fa2555af7867964748ce (diff)
Make ReplaceMisspelledWord web-actions more generic
Instead of using four numbered web-actions, use a generic method that can be called using the context data. Change-Id: If31c6f572c54d7ecfc7962edea2e27c555e6d79f Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Diffstat (limited to 'src/webenginewidgets/api/qwebenginepage.h')
-rw-r--r--src/webenginewidgets/api/qwebenginepage.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/webenginewidgets/api/qwebenginepage.h b/src/webenginewidgets/api/qwebenginepage.h
index 6ca79e946..12e7532cc 100644
--- a/src/webenginewidgets/api/qwebenginepage.h
+++ b/src/webenginewidgets/api/qwebenginepage.h
@@ -123,10 +123,6 @@ public:
SavePage,
#if !defined(QT_NO_SPELLCHECK)
ToggleSpellcheck,
- ReplaceMisspelledWord_1,
- ReplaceMisspelledWord_2,
- ReplaceMisspelledWord_3,
- ReplaceMisspelledWord_4,
#endif
WebActionCount
};
@@ -211,6 +207,10 @@ public:
#endif
virtual void triggerAction(WebAction action, bool checked = false);
+#if !defined(QT_NO_SPELLCHECK)
+ void replaceMisspelledWord(const QString &replacement);
+#endif
+
virtual bool event(QEvent*);
#ifdef Q_QDOC
void findText(const QString &subString, FindFlags options = 0);