fixed build for qt versions < 5.11
ClosedPublic

Authored by anmolgautam on Sep 29 2018, 1:59 PM.

Details

Summary

Build is broken because QWebEngineRequestJob::initiator is added in 5.11. This patch fixes the build with Qt < 5.11.

Diff Detail

Repository
R875 Falkon
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
anmolgautam created this revision.Sep 29 2018, 1:59 PM
Restricted Application added a project: Falkon. · View Herald TranscriptSep 29 2018, 1:59 PM
Restricted Application added a subscriber: falkon. · View Herald Transcript
anmolgautam requested review of this revision.Sep 29 2018, 1:59 PM
drosca requested changes to this revision.Sep 29 2018, 2:23 PM
src/lib/plugins/qml/api/extensionscheme/qmlwebengineurlrequestjob.cpp
62

Just make it return empty QString when built against QtWebEngine < 5.11.
Also it should check the QtWebEngine version, not QT_VERSION.

This revision now requires changes to proceed.Sep 29 2018, 2:23 PM
  • fixed build when HAVE_LIBINTL is FALSE, also fixed warnings
drosca accepted this revision.Sep 29 2018, 3:08 PM

Translations should work on FreeBSD though, so please fix it another commit.

This revision is now accepted and ready to land.Sep 29 2018, 3:08 PM
This revision was automatically updated to reflect the committed changes.