diff options
author | Michal Klocek <michal.klocek@qt.io> | 2016-12-08 08:51:51 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2016-12-09 14:25:37 +0000 |
commit | 9dffd18d29816cc601d1f3f3d718972ef44ce17e (patch) | |
tree | 041739f34addda224a803204e1dcf1c665f47efc /src/core/web_contents_adapter.cpp | |
parent | 40c6b6c22fe3ce5177ca768e357a6f307a68d2c9 (diff) |
Fix unused-function error for callbackOnPrintingFinished
Change-Id: I689cb8564ce04067499e4c252a6d36e70ee51930
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@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 cafaad93d..80b2cdb81 100644 --- a/src/core/web_contents_adapter.cpp +++ b/src/core/web_contents_adapter.cpp @@ -183,11 +183,13 @@ static void callbackOnEvaluateJS(WebContentsAdapterClient *adapterClient, quint6 adapterClient->didRunJavaScript(requestId, fromJSValue(result)); } +#if defined(ENABLE_BASIC_PRINTING) static void callbackOnPrintingFinished(WebContentsAdapterClient *adapterClient, int requestId, const std::vector<char>& result) { if (requestId) adapterClient->didPrintPage(requestId, QByteArray(result.data(), result.size())); } +#endif static content::WebContents *createBlankWebContents(WebContentsAdapterClient *adapterClient, content::BrowserContext *browserContext) { |