X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fruler.cpp;h=cd72a179cc72a84e46f4e9e65edb82750da42b0b;hp=6313ee5df288abfc794fdedf5f0462cf9d3715c5;hb=97f712530f0f22461d16f7d34b5ff8bf6e4c3c7f;hpb=3ccf0f7f5b1b31ac628a983a2becee6f4c4c1507 diff --git a/pv/view/ruler.cpp b/pv/view/ruler.cpp index 6313ee5..cd72a17 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.