projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3d5a7c
)
TriggerMarker: Don't return "valid" drag point coordinates
author
Soeren Apel
<soeren@apelpie.net>
Tue, 18 Jul 2017 18:40:33 +0000
(20:40 +0200)
committer
Soeren Apel
<soeren@apelpie.net>
Sat, 22 Jul 2017 19:42:50 +0000
(21:42 +0200)
pv/views/trace/triggermarker.cpp
patch
|
blob
|
history
diff --git
a/pv/views/trace/triggermarker.cpp
b/pv/views/trace/triggermarker.cpp
index 2ef4b6badf8663b877b8a693977ee96935954437..031bc5d9d3cb9a03d86eb5dc4736b78c66ef87e0 100644
(file)
--- a/
pv/views/trace/triggermarker.cpp
+++ b/
pv/views/trace/triggermarker.cpp
@@
-62,7
+62,10
@@
float TriggerMarker::get_x() const
QPoint TriggerMarker::drag_point(const QRect &rect) const
{
- return QPoint(get_x(), rect.bottom());
+ (void)rect;
+
+ // The trigger marker cannot be moved, so there is no drag point
+ return QPoint(INT_MIN, INT_MIN);
}
void TriggerMarker::paint_fore(QPainter &p, ViewItemPaintParams &pp)