]> sigrok.org Git - pulseview.git/commitdiff
Viewport: Don't draw the cursors and markers antialiased
authorJens Steinhauser <redacted>
Thu, 3 Sep 2015 13:19:20 +0000 (15:19 +0200)
committerUwe Hermann <redacted>
Fri, 4 Sep 2015 10:54:52 +0000 (12:54 +0200)
After adding them or zooming around, the cursors and markers could
appear washed out.

pv/view/viewport.cpp

index d555a792ed5f1ad8a09093709919c1c25c75e48d..a4b6680a7fe57bd02ed6b5b2e59888266a4d2552 100644 (file)
@@ -175,6 +175,8 @@ void Viewport::paintEvent(QPaintEvent*)
        for (const shared_ptr<RowItem> r : row_items)
                r->paint_mid(p, pp);
 
+       p.setRenderHint(QPainter::Antialiasing, false);
+
        for (const shared_ptr<RowItem> r : row_items)
                r->paint_fore(p, pp);
        for (const shared_ptr<TimeItem> t : time_items)