projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
faeb1a2
)
CursorPair: Draw highlight when selected
author
Joel Holdsworth
<joel@airwebreathe.org.uk>
Mon, 8 Dec 2014 23:26:03 +0000
(23:26 +0000)
committer
Uwe Hermann
<uwe@hermann-uwe.de>
Wed, 10 Dec 2014 17:06:16 +0000
(18:06 +0100)
pv/view/cursorpair.cpp
patch
|
blob
|
history
diff --git
a/pv/view/cursorpair.cpp
b/pv/view/cursorpair.cpp
index f9f7ba21ea93faa865653914086e2b4718d3b23b..2ad8eef6b50f818478dfdec875be9031676c7145 100644
(file)
--- 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);