diff options
author | Timothy Pearson <[email protected]> | 2012-11-22 15:17:23 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-11-22 15:17:23 -0600 |
commit | 6953f223818a5a84c8d7a7e12e5f2a2558fd20c5 (patch) | |
tree | 52f0ee885abf2aa442f449bd19238bdb47eaa6c8 /tests/test-painter.cpp | |
parent | e8c3a67b5a6c7b9e737071393d00ab0d6d09983d (diff) | |
download | gtk3-tqt-engine-6953f223818a5a84c8d7a7e12e5f2a2558fd20c5.tar.gz gtk3-tqt-engine-6953f223818a5a84c8d7a7e12e5f2a2558fd20c5.zip |
Fix drawing glitch when line width < 1px
Diffstat (limited to 'tests/test-painter.cpp')
-rw-r--r-- | tests/test-painter.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
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 |