From 3512a6cfe07cb7108485b3e39d586612aa5ed3d8 Mon Sep 17 00:00:00 2001 From: Jocelyn Turcotte Date: Thu, 20 Mar 2014 16:43:59 +0100 Subject: Implement QWebEngineHistoryItem::lastVisited Change-Id: I105cb2a0a2479b146e2ab68db6d194ac2ac2d3f9 Reviewed-by: Andras Becsi Reviewed-by: Zeno Albisser --- src/core/web_contents_adapter.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/core/web_contents_adapter.cpp') diff --git a/src/core/web_contents_adapter.cpp b/src/core/web_contents_adapter.cpp index 7dad03e45..7fbda1ab6 100644 --- a/src/core/web_contents_adapter.cpp +++ b/src/core/web_contents_adapter.cpp @@ -565,6 +565,13 @@ QString WebContentsAdapter::getNavigationEntryTitle(int index) return entry ? toQt(entry->GetTitle()) : QString(); } +QDateTime WebContentsAdapter::getNavigationEntryTimestamp(int index) +{ + Q_D(WebContentsAdapter); + content::NavigationEntry *entry = d->webContents->GetController().GetEntryAtIndex(index); + return entry ? toQt(entry->GetTimestamp()) : QDateTime(); +} + void WebContentsAdapter::clearNavigationHistory() { Q_D(WebContentsAdapter); -- cgit v1.2.3