summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-12-03 00:34:45 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-12-04 14:30:22 +0900
commitf5d0ed0eeb91a5470868b0728e1d27b643410578 (patch)
tree8718d387daa8328d1fd1af3d4a981d152f70e685
parent669d1daaa93e070b2f4a854661002fe7210683bf (diff)
downloadktechlab-f5d0ed0eeb91a5470868b0728e1d27b643410578.tar.gz
ktechlab-f5d0ed0eeb91a5470868b0728e1d27b643410578.zip
Replaced various '#define' with actual strings - part 5
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 12a1ec2b37308b1600be67f3c4ce2658a19e687d)
-rw-r--r--src/itemdocument.cpp4
1 files 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;
}