summaryrefslogtreecommitdiffstats
path: root/examples/webenginewidgets/browser/history.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/webenginewidgets/browser/history.cpp')
-rw-r--r--examples/webenginewidgets/browser/history.cpp17
1 files changed, 2 insertions, 15 deletions
diff --git a/examples/webenginewidgets/browser/history.cpp b/examples/webenginewidgets/browser/history.cpp
index d9d76cd29..ce104e982 100644
--- a/examples/webenginewidgets/browser/history.cpp
+++ b/examples/webenginewidgets/browser/history.cpp
@@ -59,9 +59,6 @@
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QStyle>
-#if defined(QWEBENGINEHISTORYINTERFACE)
-#include <QWebEngineHistoryInterface>
-#endif
#include <QWebEngineSettings>
#include <QtCore/QDebug>
@@ -69,11 +66,8 @@
static const unsigned int HISTORY_VERSION = 23;
HistoryManager::HistoryManager(QObject *parent)
- :
-#if defined(QWEBENGINEHISTORYINTERFACE)
- QWebEngineHistoryInterface(parent),
-#endif
- m_saveTimer(new AutoSaver(this))
+ : QObject(parent)
+ , m_saveTimer(new AutoSaver(this))
, m_historyLimit(30)
, m_historyModel(0)
, m_historyFilterModel(0)
@@ -91,13 +85,6 @@ HistoryManager::HistoryManager(QObject *parent)
m_historyModel = new HistoryModel(this, this);
m_historyFilterModel = new HistoryFilterModel(m_historyModel, this);
m_historyTreeModel = new HistoryTreeModel(m_historyFilterModel, this);
-
-#if defined(QWEBENGINEHISTORYINTERFACE)
- // QWebEngineHistoryInterface will delete the history manager
- QWebEngineHistoryInterface::setDefaultInterface(this);
-#else
- Q_UNUSED(parent);
-#endif
}
HistoryManager::~HistoryManager()