summaryrefslogtreecommitdiffstats
path: root/examples/widgets/browser/history.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/browser/history.h')
-rw-r--r--examples/widgets/browser/history.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/widgets/browser/history.h b/examples/widgets/browser/history.h
index 201863f4c..4006f3415 100644
--- a/examples/widgets/browser/history.h
+++ b/examples/widgets/browser/history.h
@@ -79,7 +79,12 @@ class AutoSaver;
class HistoryModel;
class HistoryFilterModel;
class HistoryTreeModel;
-class HistoryManager : public QWebEngineHistoryInterface
+class HistoryManager
+#if defined(QWEBENGINEHISTORYINTERFACE)
+ : public QWebEngineHistoryInterface
+#else
+ : public QObject
+#endif
{
Q_OBJECT
Q_PROPERTY(int historyLimit READ historyLimit WRITE setHistoryLimit)