diff options
author | Jocelyn Turcotte <jocelyn.turcotte@digia.com> | 2013-08-19 17:48:19 +0200 |
---|---|---|
committer | Jocelyn Turcotte <jocelyn.turcotte@digia.com> | 2013-08-20 18:16:15 +0200 |
commit | dddfe170077e022f0d428569fe8d5298736a2b68 (patch) | |
tree | 87d6045362ce89da7427b7b385b56a4619aab0f5 /lib/widgets/Api/qwebengineview.cpp | |
parent | 75d9159924fcb2b4c11a43c87e8e62332fdf38fd (diff) | |
download | qtwebengine-dddfe170077e022f0d428569fe8d5298736a2b68.tar.gz |
Implement the basic parts of QWebEngineHistory.
Mark the remaining methods as not implemented to allow enabling most
of the dependent code in the demo browser and in API tests.
Add two new tests to cover cases that might be problematic with the
index-based implementation.
This also renames WebContentsAdapter::navigateHistory to navigateToOffset
in order to avoid confusion with navigateToIndex.
Change-Id: I7c5cb9f5f878e34206fdfe48334a2dc7d9d95a1d
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'lib/widgets/Api/qwebengineview.cpp')
-rw-r--r-- | lib/widgets/Api/qwebengineview.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/widgets/Api/qwebengineview.cpp b/lib/widgets/Api/qwebengineview.cpp index 1bf1acf4d..6ae19ca75 100644 --- a/lib/widgets/Api/qwebengineview.cpp +++ b/lib/widgets/Api/qwebengineview.cpp @@ -114,6 +114,11 @@ void QWebEngineView::load(const QUrl& url) page()->load(url); } +QWebEngineHistory* QWebEngineView::history() const +{ + return page()->history(); +} + QString QWebEngineView::title() const { return page()->title(); |