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/qwebenginepage.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/qwebenginepage.cpp')
| -rw-r--r-- | lib/widgets/Api/qwebenginepage.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/widgets/Api/qwebenginepage.cpp b/lib/widgets/Api/qwebenginepage.cpp index 037d05aee..0bc6d85e1 100644 --- a/lib/widgets/Api/qwebenginepage.cpp +++ b/lib/widgets/Api/qwebenginepage.cpp @@ -228,10 +228,10 @@ void QWebEnginePage::triggerAction(WebAction action, bool) Q_D(QWebEnginePage); switch (action) { case Back: - d->adapter->navigateHistory(-1); + d->adapter->navigateToOffset(-1); break; case Forward: - d->adapter->navigateHistory(1); + d->adapter->navigateToOffset(1); break; case Stop: d->adapter->stop(); |
