]> sigrok.org Git - pulseview.git/blobdiff - pv/view/ruler.cpp
Ruler: Don't draw the tick marks antialiased
[pulseview.git] / pv / view / ruler.cpp
index 6313ee5df288abfc794fdedf5f0462cf9d3715c5..cd72a179cc72a84e46f4e9e65edb82750da42b0b 100644 (file)
@@ -154,7 +154,6 @@ void Ruler::paintEvent(QPaintEvent*)
        const int minor_tick_y1 = (major_tick_y1 + ruler_height) / 2;
 
        QPainter p(this);
-       p.setRenderHint(QPainter::Antialiasing);
 
        // Draw the tick marks
        p.setPen(palette().color(foregroundRole()));
@@ -174,6 +173,8 @@ void Ruler::paintEvent(QPaintEvent*)
        // Draw the hover mark
        draw_hover_mark(p, text_height);
 
+       p.setRenderHint(QPainter::Antialiasing);
+
        // The cursor labels are not drawn with the arrows exactly on the
        // bottom line of the widget, because then the selection shadow
        // would be clipped away.