From 12a1ec2b37308b1600be67f3c4ce2658a19e687d Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 3 Dec 2023 00:34:45 +0900 Subject: Replaced various '#define' with actual strings - part 5 Signed-off-by: Michele Calgaro --- src/itemdocument.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/itemdocument.cpp b/src/itemdocument.cpp index 7ed27dd..a8dc42b 100644 --- a/src/itemdocument.cpp +++ b/src/itemdocument.cpp @@ -881,12 +881,12 @@ void ItemDocument::exportToImage() saveArea = m_canvas->rect(); if ( type == "PNG" || type == "BMP" ) - outputImage = TQT_TQPAINTDEVICE(new TQPixmap( saveArea.size() )); + outputImage = new TQPixmap( saveArea.size() ); else if ( type == "SVG" ) { setSVGExport(true); - outputImage = TQT_TQPAINTDEVICE(new TQPicture()); + outputImage = new TQPicture(); // svg can't be cropped using the qimage method. saveArea = cropArea; } -- cgit v1.2.1