]> sigrok.org Git - pulseview.git/commitdiff
Ruler: Don't draw the tick marks antialiased
authorJens Steinhauser <redacted>
Thu, 3 Sep 2015 12:42:40 +0000 (14:42 +0200)
committerUwe Hermann <redacted>
Fri, 4 Sep 2015 10:54:52 +0000 (12:54 +0200)
Next to the sharp font of the timestamp labels the washed out markers
didn't look that good.

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.