From: Joel Holdsworth Date: Mon, 8 Dec 2014 23:26:03 +0000 (+0000) Subject: CursorPair: Draw highlight when selected X-Git-Tag: pulseview-0.3.0~374 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=e9f909b8ab36f5d147dc9d6dd429df7c1a7fb650;p=pulseview.git CursorPair: Draw highlight when selected --- diff --git a/pv/view/cursorpair.cpp b/pv/view/cursorpair.cpp index f9f7ba21..2ad8eef6 100644 --- a/pv/view/cursorpair.cpp +++ b/pv/view/cursorpair.cpp @@ -118,6 +118,12 @@ void CursorPair::draw_markers(QPainter &p, const QRect &rect) { const int highlight_radius = delta_rect.height() / 2 - 2; + if (selected()) { + p.setBrush(Qt::transparent); + p.setPen(highlight_pen()); + p.drawRoundedRect(delta_rect, radius, radius); + } + p.setBrush(Cursor::FillColour); p.setPen(Cursor::FillColour.darker()); p.drawRoundedRect(delta_rect, radius, radius);