From 926a0886d1961a3f384d3e6c36919e6dd8055dce Mon Sep 17 00:00:00 2001 From: Szabolcs David Date: Mon, 8 Apr 2019 13:25:54 +0200 Subject: Support multiple page ranges in QPrinter Add a new QRangeCollection type to store and manage multiple page ranges. This moves out the parser and validator logic from the platform dependent (UNIX) dialog and makes it publicly available from QPrinter. This improves the usability of QPrinter in those applications which doesn't use print dialog to configure printer. (e.g.: QTextDocument, QWebEnginePage) Change-Id: I0be5a8a64781c411f83b96a24f216605a84958e5 Reviewed-by: Qt CI Bot Reviewed-by: Allan Sandfeld Jensen Reviewed-by: Leena Miettinen --- src/gui/painting/qpagedpaintdevice.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gui/painting/qpagedpaintdevice.cpp') diff --git a/src/gui/painting/qpagedpaintdevice.cpp b/src/gui/painting/qpagedpaintdevice.cpp index 3fdd0206b7..e6d3a38427 100644 --- a/src/gui/painting/qpagedpaintdevice.cpp +++ b/src/gui/painting/qpagedpaintdevice.cpp @@ -80,6 +80,7 @@ class QDummyPagedPaintDevicePrivate : public QPagedPaintDevicePrivate QPagedPaintDevicePrivate::~QPagedPaintDevicePrivate() { + delete rangeCollection; } /*! -- cgit v1.2.3