summaryrefslogtreecommitdiffstats
path: root/tests/test-painter.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-09-17 18:08:53 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-09-17 18:08:53 -0500
commit2cec804e02eca375250dcd9689a31ab91e4505d9 (patch)
tree12496c776d90be580d1905446b747a143d88fdf8 /tests/test-painter.cpp
parent4038374c679a63f95c57ef21dc11e7cd7207c2ec (diff)
downloadgtk3-tqt-engine-2cec804e02eca375250dcd9689a31ab91e4505d9.tar.gz
gtk3-tqt-engine-2cec804e02eca375250dcd9689a31ab91e4505d9.zip
Implement framework for raster operations
Diffstat (limited to 'tests/test-painter.cpp')
-rw-r--r--tests/test-painter.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test-painter.cpp b/tests/test-painter.cpp
index fe1939f..45e064c 100644
--- a/tests/test-painter.cpp
+++ b/tests/test-painter.cpp
@@ -217,6 +217,15 @@ void runTests(TQPaintDevice* pd) {
TQRegion rectRegion(425,35,50,50);
p.setClipRegion(rectRegion);
p.fillRect(boundary, TQBrush(TQt::green));
+ p.setClipping(false);
+ }
+
+ // Raster operation tests
+ {
+ p.setRasterOp(TQPainter::XorROP);
+ p.setBrush(TQBrush(TQt::white));
+ p.setPen(TQPen());
+ p.drawRect(325, 275, 50, 50);
}
//drawColorWheel(&p, 0.5);