summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael BrĂ¼ning <michael.bruning@digia.com>2014-10-09 12:14:24 +0200
committerMichael Bruning <michael.bruning@digia.com>2014-10-09 15:56:43 +0200
commit07468b60dd917c647b279125915cc5b925fbb07a (patch)
tree42e1b8ac93c3c7343410ec97830aeb48d105395a
parentd609bdf73958d30a6ec8a1097f595f68c7422804 (diff)
downloadqtwebengine-07468b60dd917c647b279125915cc5b925fbb07a.tar.gz
Doc: Correct snippets for QWebEngineView API doc.
Those were using wrong action names and also the wrong trigger methods in the wrong context. Change-Id: If124bf7836a553dc4a632db208cee41fb998c622 Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
-rw-r--r--src/webenginewidgets/doc/snippets/qtwebengine_qwebengineview_snippet.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/webenginewidgets/doc/snippets/qtwebengine_qwebengineview_snippet.cpp b/src/webenginewidgets/doc/snippets/qtwebengine_qwebengineview_snippet.cpp
index 20edd73c6..57e4a7047 100644
--- a/src/webenginewidgets/doc/snippets/qtwebengine_qwebengineview_snippet.cpp
+++ b/src/webenginewidgets/doc/snippets/qtwebengine_qwebengineview_snippet.cpp
@@ -36,22 +36,22 @@ void wrapInFunction()
//! [2]
- view->triggerAction(QWebPage::Copy);
+ view->triggerPageAction(QWebEnginePage::Copy);
//! [2]
//! [3]
- view->page()->triggerPageAction(QWebPage::Stop);
+ view->page()->triggerAction(QWebEnginePage::Stop);
//! [3]
//! [4]
- view->page()->triggerPageAction(QWebPage::GoBack);
+ view->page()->triggerAction(QWebEnginePage::Back);
//! [4]
//! [5]
- view->page()->triggerPageAction(QWebPage::GoForward);
+ view->page()->triggerAction(QWebEnginePage::Forward);
//! [5]
//! [6]