From beb4ff332ca5b8406a75e8b2146464c5b0a81abd Mon Sep 17 00:00:00 2001 From: Jocelyn Turcotte Date: Thu, 16 Jan 2014 18:20:32 +0100 Subject: Cleanup the QtWebEngineWidgets public headers and API Headers were left intact to leave a trace of the evolution compared to the QtWebKit API and to make it easier to work until we had a basic subset of the API implemented. With the upcoming release, this patch removes this convenience in the aim of starting polishing the headers and the documentation for the upcoming release. Change-Id: Iae436b4ec041d771a7002575e122835802bc9f3e Reviewed-by: Michael Bruning --- .../qwebenginehistoryinterface/tst_qwebenginehistoryinterface.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/auto/widgets/qwebenginehistoryinterface') diff --git a/tests/auto/widgets/qwebenginehistoryinterface/tst_qwebenginehistoryinterface.cpp b/tests/auto/widgets/qwebenginehistoryinterface/tst_qwebenginehistoryinterface.cpp index 180a0f2fe..93714255b 100644 --- a/tests/auto/widgets/qwebenginehistoryinterface/tst_qwebenginehistoryinterface.cpp +++ b/tests/auto/widgets/qwebenginehistoryinterface/tst_qwebenginehistoryinterface.cpp @@ -22,7 +22,9 @@ #include #include +#if defined(QWEBENGINEHISTORYINTERFACE) #include +#endif #include class tst_QWebEngineHistoryInterface : public QObject @@ -73,6 +75,7 @@ void tst_QWebEngineHistoryInterface::cleanup() delete m_view; } +#if defined(QWEBENGINEHISTORYINTERFACE) class FakeHistoryImplementation : public QWebEngineHistoryInterface { public: void addHistoryEntry(const QString&) {} @@ -80,7 +83,7 @@ public: return url == QLatin1String("http://www.trolltech.com/"); } }; - +#endif /* * Test that visited links are properly colored. http://www.trolltech.com is marked -- cgit v1.2.3