diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 2 | ||||
-rw-r--r-- | tests/test-painter.cpp | 16 |
2 files changed, 17 insertions, 1 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 93f4eee..e4a4c40 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -31,7 +31,7 @@ test_painter_CXXFLAGS = \ $(GTK3_CFLAGS) test_painter_LDADD = \ - $(TDEGTK_LIBADD) ../tdegtk/libtqtcairo.la $(all_libraries) $(CAIRO_LIBS) $(GTK3_LIBS) $(LIB_QT) + $(TDEGTK_LIBADD) ../tdegtk/libtqtcairo.la $(all_libraries) $(CAIRO_LIBS) $(GTK3_LIBS) $(LIB_QT) $(LIB_TDEUI) test_painter_LDFLAGS = \ $(TDEGTK_LDFLAGS) \ diff --git a/tests/test-painter.cpp b/tests/test-painter.cpp index f912009..ad3eb36 100644 --- a/tests/test-painter.cpp +++ b/tests/test-painter.cpp @@ -71,6 +71,22 @@ void runTests(TQPaintDevice* pd) { { p.setPen( TQt::blue ); // set blue pen, 0 pixel width p.drawLine(140,140, 160,160); + p.setPen( TQt::blue ); // set blue pen, 0 pixel width + p.drawLine(470,140, 480,160); + p.setPen( TQt::blue ); // set blue pen, 0 pixel width + p.drawLine(470,170, 490,170); + p.setPen( TQPen(TQt::blue, 1) ); // set blue pen, 1 pixel width + p.drawLine(470,180, 490,180); + p.setPen( TQPen(TQt::blue, 2) ); // set blue pen, 2 pixel width + p.drawLine(470,190, 490,190); + p.setPen( TQPen(TQt::blue, 3) ); // set blue pen, 3 pixel width + p.drawLine(470,200, 490,200); + p.setPen( TQPen(TQt::blue, 4) ); // set blue pen, 4 pixel width + p.drawLine(470,210, 490,210); + p.setPen( TQPen(TQt::blue, 5) ); // set blue pen, 5 pixel width + p.drawLine(470,220, 490,220); + p.setPen( TQPen(TQt::blue, 6) ); // set blue pen, 6 pixel width + p.drawLine(470,230, 490,230); } // Point tests |