summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-09-17 15:07:23 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-09-17 15:07:23 -0500
commite9fa6f1ca5a2fcb793d1a0f0d50c87be200b6f9a (patch)
treefe5734f46ccb3e39aeed63ac824521394d64e69f /tests
parentb646ed4c554e54e5354edc3dfdfc76edbb7656f0 (diff)
downloadgtk3-tqt-engine-e9fa6f1ca5a2fcb793d1a0f0d50c87be200b6f9a.tar.gz
gtk3-tqt-engine-e9fa6f1ca5a2fcb793d1a0f0d50c87be200b6f9a.zip
Add preliminary font layout support
Add image painting support
Diffstat (limited to 'tests')
-rw-r--r--tests/test-painter.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/test-painter.cpp b/tests/test-painter.cpp
index f458e26..fe1939f 100644
--- a/tests/test-painter.cpp
+++ b/tests/test-painter.cpp
@@ -167,6 +167,12 @@ void runTests(TQPaintDevice* pd) {
p.drawPixmap(200, 10, pixmap, 0, 0, -1, -1);
}
+ // Image tests
+ {
+ TQImage image("open.png");
+ p.drawImage(350, 10, image, 0, 0, -1, -1);
+ }
+
// Font tests
{
p.setPen(TQColor(0,128,255));
@@ -195,8 +201,12 @@ void runTests(TQPaintDevice* pd) {
}
}
- p.setPen(TQColor(255,128,0));
- p.drawText( TQRect(250, 250, 250, 250), 0, TQString("TQt3 renders via Cairo!") );
+ //p.setPen(TQColor(255,128,0));
+ //p.drawText( TQRect(250, 250, 250, 150), TQt::BreakAnywhere, TQString("TQt3 renders via Cairo!") );
+
+ //p.setPen(TQColor(255,0,128));
+ //p.drawText( TQRect(0, 250, 250, 150), TQt::BreakAnywhere | TQt::AlignCenter, TQString("TQt3 renders via Cairo!") );
+ //p.drawText( TQRect(0, 250, 250, 150), TQt::BreakAnywhere | TQt::AlignHCenter | TQt::AlignBottom, TQString("TQt3 renders via Cairo!") );
}
// Clipping tests