summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-12-03 00:34:45 +0900
committerMichele Calgaro <[email protected]>2023-12-03 14:59:47 +0900
commit12a1ec2b37308b1600be67f3c4ce2658a19e687d (patch)
tree8718d387daa8328d1fd1af3d4a981d152f70e685
parentc0011af8f156d637d033318182951439e24c1479 (diff)
downloadktechlab-12a1ec2b37308b1600be67f3c4ce2658a19e687d.tar.gz
ktechlab-12a1ec2b37308b1600be67f3c4ce2658a19e687d.zip
Replaced various '#define' with actual strings - part 5
Signed-off-by: Michele Calgaro <[email protected]>
-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;
}