diff options
author | Michal Klocek <michal.klocek@qt.io> | 2018-08-07 10:16:58 +0200 |
---|---|---|
committer | Michal Klocek <michal.klocek@qt.io> | 2018-08-09 09:40:02 +0000 |
commit | 3b5c6f13348e6ed5eaecc4cec3d88f2089c819e6 (patch) | |
tree | 1c4c848b551655705c8a056a017910ad7417db02 /src/core/web_contents_adapter.cpp | |
parent | db62139e1daea171e08d95592c63f663789d6391 (diff) |
Fix bogus QT_CONFIG usage for printing
If webengine-printing-and-pdf is disabled we do not compile
print_view_manager_qt, therefore print_view_manager_qt.h
should never be included.
Add missing QT_CONFIG check in web_contents_adapter instead.
Change-Id: Ib0477c1f12025cd60ee9799ac06a6b664c65018c
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'src/core/web_contents_adapter.cpp')
-rw-r--r-- | src/core/web_contents_adapter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/web_contents_adapter.cpp b/src/core/web_contents_adapter.cpp index e65ab9d07..84b97412b 100644 --- a/src/core/web_contents_adapter.cpp +++ b/src/core/web_contents_adapter.cpp @@ -49,7 +49,9 @@ #include "devtools_frontend_qt.h" #include "download_manager_delegate_qt.h" #include "media_capture_devices_dispatcher.h" +#if QT_CONFIG(webengine_printing_and_pdf) #include "printing/print_view_manager_qt.h" +#endif #include "profile_qt.h" #include "qwebenginecallback_p.h" #include "render_view_observer_host_qt.h" |