From: Jens Steinhauser Date: Thu, 3 Sep 2015 12:42:40 +0000 (+0200) Subject: Ruler: Don't draw the tick marks antialiased X-Git-Tag: pulseview-0.3.0~116 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=97f712530f0f22461d16f7d34b5ff8bf6e4c3c7f;p=pulseview.git Ruler: Don't draw the tick marks antialiased Next to the sharp font of the timestamp labels the washed out markers didn't look that good. --- diff --git a/pv/view/ruler.cpp b/pv/view/ruler.cpp index 6313ee5d..cd72a179 100644 --- a/pv/view/ruler.cpp +++ b/pv/view/ruler.cpp @@ -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.