summaryrefslogtreecommitdiffstats
path: root/src/webenginewidgets/webenginewidgets.pro
diff options
context:
space:
mode:
authorSzabolcs David <davidsz@inf.u-szeged.hu>2018-10-25 16:36:12 +0200
committerSzabolcs David <davidsz@inf.u-szeged.hu>2018-12-10 15:41:34 +0000
commit8124f0bc1893e0997989913044665fa1c5cf79d7 (patch)
tree02449019fafc3c0a49c5804447a7335272d7894b /src/webenginewidgets/webenginewidgets.pro
parentb6683549626e5a0131a708842f555dd35d413b50 (diff)
Move printing operation to a new thread
Printing operations were blocking the UI thread, so applications were irresponsive when printing in large size or high resolution. Introduce a new worker for the painting logic and use shared pointers to carry the data around and avoid copying PDF data between threads. Task-number: QTBUG-68561 Change-Id: I30633380b75acd14f1a1df87985c99540168a9f1 Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'src/webenginewidgets/webenginewidgets.pro')
-rw-r--r--src/webenginewidgets/webenginewidgets.pro3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/webenginewidgets/webenginewidgets.pro b/src/webenginewidgets/webenginewidgets.pro
index e61575d3a..4669c2bce 100644
--- a/src/webenginewidgets/webenginewidgets.pro
+++ b/src/webenginewidgets/webenginewidgets.pro
@@ -49,6 +49,9 @@ HEADERS = \
qtConfig(webengine-printing-and-pdf) {
QT += printsupport
+
+ SOURCES += printer_worker.cpp
+ HEADERS += printer_worker.h
}
load(qt_module)