summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2016-12-16 15:46:22 +0100
committerMichal Klocek <michal.klocek@qt.io>2016-12-20 16:26:36 +0000
commitb32242eeca3ad1c4f8897c9aa7ee8c04c0d61e58 (patch)
treeb7cdc93967611392a4ea0eb4fd1d50e71814e301 /src/core
parenta1e1b79157a1b725ef722410b94a01da7d0a8c39 (diff)
Fix compilation, add getApplicationLocale() method implementation
This is workaround to not include web_engine_library_info.h for qtwebengine_sources. Change-Id: Idbc86e8e5281a514199ebcd80af045e11f554362 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/core')
-rw-r--r--src/core/renderer/print_web_view_helper_delegate_qt.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/renderer/print_web_view_helper_delegate_qt.cpp b/src/core/renderer/print_web_view_helper_delegate_qt.cpp
index 6d74685fe..872ab1c9a 100644
--- a/src/core/renderer/print_web_view_helper_delegate_qt.cpp
+++ b/src/core/renderer/print_web_view_helper_delegate_qt.cpp
@@ -39,8 +39,8 @@
// found in the LICENSE file.
#include "print_web_view_helper_delegate_qt.h"
-
#include "third_party/WebKit/public/web/WebElement.h"
+#include "web_engine_library_info.h"
namespace QtWebEngineCore {
PrintWebViewHelperDelegateQt::~PrintWebViewHelperDelegateQt()
@@ -70,3 +70,11 @@ bool PrintWebViewHelperDelegateQt::OverridePrint(blink::WebLocalFrame* frame)
}
}
+
+namespace printing {
+// std::string PrintingContextDelegate::GetAppLocale()
+std::string getApplicationLocale()
+{
+ return WebEngineLibraryInfo::getApplicationLocale();
+}
+}