From 97f712530f0f22461d16f7d34b5ff8bf6e4c3c7f Mon Sep 17 00:00:00 2001 From: Jens Steinhauser Date: Thu, 3 Sep 2015 14:42:40 +0200 Subject: [PATCH] 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. --- pv/view/ruler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. -- 2.30.2