summaryrefslogtreecommitdiff
path: root/vcl/inc/printdlg.hxx
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2020-10-05 11:09:20 +0200
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2020-10-06 08:01:55 +0200
commit93c833e848a4406f36bcb7925928554bb104aa32 (patch)
treeeabab31b2ebcb49e7bbefbf7bfa363faa52ff900 /vcl/inc/printdlg.hxx
parent729f24a9e3639051e6b066cb1fc68fbd1ef4db16 (diff)
Use idle to update preview in print dlg
Otherwise UI blocks while the preview is being updated Change-Id: I98c536b83a31e9ea3f72effc8a602ee190a81e68 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103951 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'vcl/inc/printdlg.hxx')
-rw-r--r--vcl/inc/printdlg.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/inc/printdlg.hxx b/vcl/inc/printdlg.hxx
index 7c6c1005fd12..3e337057d042 100644
--- a/vcl/inc/printdlg.hxx
+++ b/vcl/inc/printdlg.hxx
@@ -22,6 +22,7 @@
#include <vcl/bitmapex.hxx>
#include <vcl/gdimtf.hxx>
+#include <vcl/idle.hxx>
#include <vcl/print.hxx>
#include <vcl/customweld.hxx>
#include <vcl/weld.hxx>
@@ -222,6 +223,11 @@ namespace vcl
Paper mePaper;
+ Idle maUpdatePreviewIdle;
+ DECL_LINK(updatePreviewIdle, Timer*, void);
+ Idle maUpdatePreviewNoCacheIdle;
+ DECL_LINK(updatePreviewNoCacheIdle, Timer*, void);
+
DECL_LINK( ClickHdl, weld::Button&, void );
DECL_LINK( SelectHdl, weld::ComboBox&, void );
DECL_LINK( ActivateHdl, weld::Entry&, bool );